@@ -3967,8 +3967,14 @@ declare namespace ts {
3967
3967
isValidBraceCompletionAtPosition ( fileName : string , position : number , openingBrace : number ) : boolean ;
3968
3968
getSpanOfEnclosingComment ( fileName : string , position : number , onlyMultiLine : boolean ) : TextSpan ;
3969
3969
getCodeFixesAtPosition ( fileName : string , start : number , end : number , errorCodes : number [ ] , formatOptions : FormatCodeSettings ) : CodeAction [ ] ;
3970
+ applyCodeActionCommand ( action : CodeActionCommand ) : Promise < ApplyCodeActionCommandResult > ;
3971
+ applyCodeActionCommand ( action : CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult [ ] > ;
3972
+ applyCodeActionCommand ( action : CodeActionCommand | CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult | ApplyCodeActionCommandResult [ ] > ;
3973
+ /** @deprecated `fileName` will be ignored */
3970
3974
applyCodeActionCommand ( fileName : string , action : CodeActionCommand ) : Promise < ApplyCodeActionCommandResult > ;
3975
+ /** @deprecated `fileName` will be ignored */
3971
3976
applyCodeActionCommand ( fileName : string , action : CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult [ ] > ;
3977
+ /** @deprecated `fileName` will be ignored */
3972
3978
applyCodeActionCommand ( fileName : string , action : CodeActionCommand | CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult | ApplyCodeActionCommandResult [ ] > ;
3973
3979
getApplicableRefactors ( fileName : string , positionOrRaneg : number | TextRange ) : ApplicableRefactorInfo [ ] ;
3974
3980
getEditsForRefactor ( fileName : string , formatOptions : FormatCodeSettings , positionOrRange : number | TextRange , refactorName : string , actionName : string ) : RefactorEditInfo | undefined ;
@@ -5262,7 +5268,7 @@ declare namespace ts.server.protocol {
5262
5268
*/
5263
5269
errorCodes ?: number [ ] ;
5264
5270
}
5265
- interface ApplyCodeActionCommandRequestArgs extends FileRequestArgs {
5271
+ interface ApplyCodeActionCommandRequestArgs {
5266
5272
/** May also be an array of commands. */
5267
5273
command : { } ;
5268
5274
}
0 commit comments