File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Extension/src/LanguageServer/Providers Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,6 @@ interface GetCodeActionsResult {
34
34
commands : CodeActionCommand [ ] ;
35
35
}
36
36
37
- export interface CreateDeclDefnCommandArguments {
38
- sender : string ;
39
- range : Range ;
40
- }
41
-
42
37
export const GetCodeActionsRequest : RequestType < GetCodeActionsRequestParams , GetCodeActionsResult , void > =
43
38
new RequestType < GetCodeActionsRequestParams , GetCodeActionsResult , void > ( 'cpptools/getCodeActions' ) ;
44
39
@@ -196,12 +191,8 @@ export class CodeActionProvider implements vscode.CodeActionProvider {
196
191
return ;
197
192
} else if ( ( command . command === 'C_Cpp.CreateDeclarationOrDefinition' || command . command === 'C_Cpp.CopyDeclarationOrDefinition' )
198
193
&& ( command . arguments ?? [ ] ) . length === 0 && command . range !== undefined ) {
199
- const args : CreateDeclDefnCommandArguments = {
200
- sender : 'codeAction' ,
201
- range : command . range
202
- } ;
203
194
command . arguments = [ ] ;
204
- command . arguments . push ( args ) ;
195
+ command . arguments . push ( { sender : 'codeAction' , range : command . range } ) ;
205
196
} else if ( command . command === "C_Cpp.SelectIntelliSenseConfiguration" ) {
206
197
command . arguments = [ 'codeAction' ] ;
207
198
hasSelectIntelliSenseConfiguration = true ;
You can’t perform that action at this time.
0 commit comments