@@ -3967,8 +3967,14 @@ declare namespace ts {
39673967 isValidBraceCompletionAtPosition ( fileName : string , position : number , openingBrace : number ) : boolean ;
39683968 getSpanOfEnclosingComment ( fileName : string , position : number , onlyMultiLine : boolean ) : TextSpan ;
39693969 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 */
39703974 applyCodeActionCommand ( fileName : string , action : CodeActionCommand ) : Promise < ApplyCodeActionCommandResult > ;
3975+ /** @deprecated `fileName` will be ignored */
39713976 applyCodeActionCommand ( fileName : string , action : CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult [ ] > ;
3977+ /** @deprecated `fileName` will be ignored */
39723978 applyCodeActionCommand ( fileName : string , action : CodeActionCommand | CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult | ApplyCodeActionCommandResult [ ] > ;
39733979 getApplicableRefactors ( fileName : string , positionOrRaneg : number | TextRange ) : ApplicableRefactorInfo [ ] ;
39743980 getEditsForRefactor ( fileName : string , formatOptions : FormatCodeSettings , positionOrRange : number | TextRange , refactorName : string , actionName : string ) : RefactorEditInfo | undefined ;
@@ -5262,7 +5268,7 @@ declare namespace ts.server.protocol {
52625268 */
52635269 errorCodes ?: number [ ] ;
52645270 }
5265- interface ApplyCodeActionCommandRequestArgs extends FileRequestArgs {
5271+ interface ApplyCodeActionCommandRequestArgs {
52665272 /** May also be an array of commands. */
52675273 command : { } ;
52685274 }
0 commit comments