@@ -34,7 +34,7 @@ export default () => {
34
34
const getCurrentValueRange = async ( ) => {
35
35
const editor = getActiveRegularEditor ( )
36
36
if ( ! editor ) return
37
- const result = await sendCommand ( 'getRangeOfSpecialValue' )
37
+ const result = await sendCommand ( 'getRangeOfSpecialValue' , { } )
38
38
if ( ! result ) return
39
39
const range = tsRangeToVscode ( editor . document , result . range )
40
40
return range . with ( { start : range . start . translate ( 0 , / * { ? / . exec ( editor . document . lineAt ( range . start ) . text . slice ( range . start . character ) ) ! [ 0 ] ! . length ) } )
@@ -118,7 +118,7 @@ export default () => {
118
118
registerExtensionCommand ( 'pickAndInsertFunctionArguments' , async ( ) => {
119
119
const editor = getActiveRegularEditor ( )
120
120
if ( ! editor ) return
121
- const result = await sendCommand ( 'pickAndInsertFunctionArguments' )
121
+ const result = await sendCommand ( 'pickAndInsertFunctionArguments' , { } )
122
122
if ( ! result ) return
123
123
124
124
const renderArgs = ( args : Array < [ name : string , type : string ] > ) => `${ args . map ( ( [ name , type ] ) => ( type ? `${ name } : ${ type } ` : name ) ) . join ( ', ' ) } `
@@ -162,7 +162,7 @@ export default () => {
162
162
const editor = vscode . window . activeTextEditor
163
163
if ( ! editor ) return
164
164
const { document } = editor
165
- const result = await sendCommand ( 'filterBySyntaxKind' )
165
+ const result = await sendCommand ( 'filterBySyntaxKind' , { } )
166
166
if ( ! result ) return
167
167
// todo optimize
168
168
if ( filterWithSelection ) {
@@ -241,7 +241,7 @@ export default () => {
241
241
const editor = vscode . window . activeTextEditor
242
242
if ( ! editor ) return
243
243
if ( ! getExtensionSetting ( 'experiments.enableInsertNameOfSuggestionFix' ) && editor . document . languageId !== 'vue' ) {
244
- const result = await sendCommand ( 'getLastResolvedCompletion' )
244
+ const result = await sendCommand ( 'getLastResolvedCompletion' , { } )
245
245
if ( ! result ) return
246
246
const position = editor . selection . active
247
247
const range = result . range ? tsRangeToVscode ( editor . document , result . range ) : editor . document . getWordRangeAtPosition ( position )
@@ -280,14 +280,14 @@ export default () => {
280
280
} )
281
281
282
282
registerExtensionCommand ( 'copyFullType' , async ( ) => {
283
- const response = await sendCommand ( 'getFullType' )
283
+ const response = await sendCommand ( 'getFullType' , { } )
284
284
if ( ! response ) return
285
285
const { text } = response
286
286
await vscode . env . clipboard . writeText ( text )
287
287
} )
288
288
289
289
registerExtensionCommand ( 'getArgumentReferencesFromCurrentParameter' , async ( ) => {
290
- const result = await sendCommand ( 'getArgumentReferencesFromCurrentParameter' )
290
+ const result = await sendCommand ( 'getArgumentReferencesFromCurrentParameter' , { } )
291
291
if ( ! result ) return
292
292
const editor = vscode . window . activeTextEditor !
293
293
const { uri } = editor . document
0 commit comments