@@ -3975,8 +3975,14 @@ declare namespace ts {
39753975 isValidBraceCompletionAtPosition ( fileName : string , position : number , openingBrace : number ) : boolean ;
39763976 getSpanOfEnclosingComment ( fileName : string , position : number , onlyMultiLine : boolean ) : TextSpan ;
39773977 getCodeFixesAtPosition ( fileName : string , start : number , end : number , errorCodes : number [ ] , formatOptions : FormatCodeSettings ) : CodeAction [ ] ;
3978+ applyCodeActionCommand ( action : CodeActionCommand ) : Promise < ApplyCodeActionCommandResult > ;
3979+ applyCodeActionCommand ( action : CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult [ ] > ;
3980+ applyCodeActionCommand ( action : CodeActionCommand | CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult | ApplyCodeActionCommandResult [ ] > ;
3981+ /** @deprecated `fileName` will be ignored */
39783982 applyCodeActionCommand ( fileName : string , action : CodeActionCommand ) : Promise < ApplyCodeActionCommandResult > ;
3983+ /** @deprecated `fileName` will be ignored */
39793984 applyCodeActionCommand ( fileName : string , action : CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult [ ] > ;
3985+ /** @deprecated `fileName` will be ignored */
39803986 applyCodeActionCommand ( fileName : string , action : CodeActionCommand | CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult | ApplyCodeActionCommandResult [ ] > ;
39813987 getApplicableRefactors ( fileName : string , positionOrRaneg : number | TextRange ) : ApplicableRefactorInfo [ ] ;
39823988 getEditsForRefactor ( fileName : string , formatOptions : FormatCodeSettings , positionOrRange : number | TextRange , refactorName : string , actionName : string ) : RefactorEditInfo | undefined ;
@@ -5275,7 +5281,7 @@ declare namespace ts.server.protocol {
52755281 */
52765282 errorCodes ?: number [ ] ;
52775283 }
5278- interface ApplyCodeActionCommandRequestArgs extends FileRequestArgs {
5284+ interface ApplyCodeActionCommandRequestArgs {
52795285 /** May also be an array of commands. */
52805286 command : { } ;
52815287 }
0 commit comments