@@ -3983,8 +3983,7 @@ declare namespace ts {
3983
3983
getDocCommentTemplateAtPosition ( fileName : string , position : number ) : TextInsertion ;
3984
3984
isValidBraceCompletionAtPosition ( fileName : string , position : number , openingBrace : number ) : boolean ;
3985
3985
getSpanOfEnclosingComment ( fileName : string , position : number , onlyMultiLine : boolean ) : TextSpan ;
3986
- getCodeFixesAtPosition ( fileName : string , start : number , end : number , errorCodes : number [ ] , formatOptions : FormatCodeSettings ) : CodeFixAction [ ] ;
3987
- getCombinedCodeFix ( scope : CombinedCodeFixScope , fixId : { } , formatOptions : FormatCodeSettings ) : CombinedCodeActions ;
3986
+ getCodeFixesAtPosition ( fileName : string , start : number , end : number , errorCodes : number [ ] , formatOptions : FormatCodeSettings ) : CodeAction [ ] ;
3988
3987
applyCodeActionCommand ( action : CodeActionCommand ) : Promise < ApplyCodeActionCommandResult > ;
3989
3988
applyCodeActionCommand ( action : CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult [ ] > ;
3990
3989
applyCodeActionCommand ( action : CodeActionCommand | CodeActionCommand [ ] ) : Promise < ApplyCodeActionCommandResult | ApplyCodeActionCommandResult [ ] > ;
@@ -4000,10 +3999,6 @@ declare namespace ts {
4000
3999
getProgram ( ) : Program ;
4001
4000
dispose ( ) : void ;
4002
4001
}
4003
- interface CombinedCodeFixScope {
4004
- type : "file" ;
4005
- fileName : string ;
4006
- }
4007
4002
interface GetCompletionsAtPositionOptions {
4008
4003
includeExternalModuleExports : boolean ;
4009
4004
}
@@ -4080,14 +4075,6 @@ declare namespace ts {
4080
4075
*/
4081
4076
commands ?: CodeActionCommand [ ] ;
4082
4077
}
4083
- interface CodeFixAction extends CodeAction {
4084
- /** If present, one may call 'getCombinedCodeFix' with this fixId. */
4085
- fixId ?: { } ;
4086
- }
4087
- interface CombinedCodeActions {
4088
- changes : FileTextChanges [ ] ;
4089
- commands : CodeActionCommand [ ] | undefined ;
4090
- }
4091
4078
type CodeActionCommand = InstallPackageAction ;
4092
4079
interface InstallPackageAction {
4093
4080
}
@@ -4929,7 +4916,6 @@ declare namespace ts.server.protocol {
4929
4916
DocCommentTemplate = "docCommentTemplate" ,
4930
4917
CompilerOptionsForInferredProjects = "compilerOptionsForInferredProjects" ,
4931
4918
GetCodeFixes = "getCodeFixes" ,
4932
- GetCombinedCodeFix = "getCombinedCodeFix" ,
4933
4919
ApplyCodeActionCommand = "applyCodeActionCommand" ,
4934
4920
GetSupportedCodeFixes = "getSupportedCodeFixes" ,
4935
4921
GetApplicableRefactors = "getApplicableRefactors" ,
@@ -5277,13 +5263,6 @@ declare namespace ts.server.protocol {
5277
5263
command : CommandTypes . GetCodeFixes ;
5278
5264
arguments : CodeFixRequestArgs ;
5279
5265
}
5280
- interface GetCombinedCodeFixRequest extends Request {
5281
- command : CommandTypes . GetCombinedCodeFix ;
5282
- arguments : GetCombinedCodeFixRequestArgs ;
5283
- }
5284
- interface GetCombinedCodeFixResponse extends Response {
5285
- body : CombinedCodeActions ;
5286
- }
5287
5266
interface ApplyCodeActionCommandRequest extends Request {
5288
5267
command : CommandTypes . ApplyCodeActionCommand ;
5289
5268
arguments : ApplyCodeActionCommandRequestArgs ;
@@ -5317,14 +5296,6 @@ declare namespace ts.server.protocol {
5317
5296
*/
5318
5297
errorCodes ?: number [ ] ;
5319
5298
}
5320
- interface GetCombinedCodeFixRequestArgs {
5321
- scope : GetCombinedCodeFixScope ;
5322
- fixId : { } ;
5323
- }
5324
- interface GetCombinedCodeFixScope {
5325
- type : "file" ;
5326
- args : FileRequestArgs ;
5327
- }
5328
5299
interface ApplyCodeActionCommandRequestArgs {
5329
5300
/** May also be an array of commands. */
5330
5301
command : { } ;
@@ -6067,7 +6038,7 @@ declare namespace ts.server.protocol {
6067
6038
}
6068
6039
interface CodeFixResponse extends Response {
6069
6040
/** The code actions that are available */
6070
- body ?: CodeFixAction [ ] ;
6041
+ body ?: CodeAction [ ] ;
6071
6042
}
6072
6043
interface CodeAction {
6073
6044
/** Description of the code action to display in the UI of the editor */
@@ -6077,14 +6048,6 @@ declare namespace ts.server.protocol {
6077
6048
/** A command is an opaque object that should be passed to `ApplyCodeActionCommandRequestArgs` without modification. */
6078
6049
commands ?: { } [ ] ;
6079
6050
}
6080
- interface CombinedCodeActions {
6081
- changes : FileCodeEdits [ ] ;
6082
- commands ?: { } [ ] ;
6083
- }
6084
- interface CodeFixAction extends CodeAction {
6085
- /** If present, one may call 'getCombinedCodeFix' with this fixId. */
6086
- fixId ?: { } ;
6087
- }
6088
6051
/**
6089
6052
* Format and format on key response message.
6090
6053
*/
0 commit comments