@@ -11,12 +11,7 @@ import {
11
11
listPickerNames ,
12
12
loadUserCustom ,
13
13
} 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" ;
20
15
import { action as buildActionSource } from "../extension/source/action.ts" ;
21
16
import { Picker } from "../picker.ts" ;
22
17
import type { SubmatchContext } from "./submatch.ts" ;
@@ -63,23 +58,6 @@ export const main: Entrypoint = (denops) => {
63
58
return listPickerNames ( ) . filter ( ( name ) => name . startsWith ( arglead ) ) ;
64
59
} ,
65
60
) ,
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
- } ,
83
61
} ;
84
62
} ;
85
63
@@ -172,22 +150,12 @@ async function startPicker(
172
150
) ;
173
151
}
174
152
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
- } ,
185
153
// Secret attribute for @vim -fall/std/builtin/action/submatch
186
154
_submatch : {
187
155
pickerParams,
188
156
} ,
189
157
...resultItem ,
190
- } as const satisfies SubmatchContext & { _submatchContext : unknown } ;
158
+ } as const satisfies SubmatchContext ;
191
159
if ( await ensurePromise ( action . invoke ( denops , actionParams , { signal } ) ) ) {
192
160
// Picker should not be closed
193
161
continue ;
0 commit comments