Skip to content

Commit 16b89d8

Browse files
committed
feat!: remove backword compatibility
1 parent cd5802f commit 16b89d8

File tree

1 file changed

+2
-34
lines changed

1 file changed

+2
-34
lines changed

denops/fall/main/picker.ts

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ import {
1111
listPickerNames,
1212
loadUserCustom,
1313
} from "../custom.ts";
14-
import {
15-
isOptions,
16-
isPickerParams,
17-
isSetting,
18-
isStringArray,
19-
} from "../util/predicate.ts";
14+
import { isOptions, isPickerParams, isStringArray } from "../util/predicate.ts";
2015
import { action as buildActionSource } from "../extension/source/action.ts";
2116
import { Picker } from "../picker.ts";
2217
import type { SubmatchContext } from "./submatch.ts";
@@ -63,23 +58,6 @@ export const main: Entrypoint = (denops) => {
6358
return listPickerNames().filter((name) => name.startsWith(arglead));
6459
},
6560
),
66-
// TODO: Remove this API prior to release v1.0.0
67-
// DEPRECATED: Use "submatch:start" instead
68-
"picker:start": async (_args, _screen, params, options) => {
69-
console.warn(
70-
"The 'picker:start' is deprecated. Use 'submatch:start' instead.",
71-
"It is probably caused by '@vim-fall/std/builtin/action/submatch' action.",
72-
);
73-
assert(
74-
params,
75-
is.IntersectionOf([
76-
isSetting,
77-
isPickerParams,
78-
]),
79-
);
80-
assert(options, isOptions);
81-
return await startPicker(denops, [], params, options);
82-
},
8361
};
8462
};
8563

@@ -172,22 +150,12 @@ async function startPicker(
172150
);
173151
}
174152
const actionParams = {
175-
// TODO: Drop the following attributes prior to release v1.0.0
176-
// Attributes used before @vim-fall/std@0.6.0
177-
_submatchContext: {
178-
setting,
179-
pickerParams: {
180-
...setting,
181-
...pickerParams,
182-
},
183-
screen: { width: 0, height: 0 },
184-
},
185153
// Secret attribute for @vim-fall/std/builtin/action/submatch
186154
_submatch: {
187155
pickerParams,
188156
},
189157
...resultItem,
190-
} as const satisfies SubmatchContext & { _submatchContext: unknown };
158+
} as const satisfies SubmatchContext;
191159
if (await ensurePromise(action.invoke(denops, actionParams, { signal }))) {
192160
// Picker should not be closed
193161
continue;

0 commit comments

Comments
 (0)