summaryrefslogtreecommitdiff
path: root/cli/tsc/compiler.d.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-02-05 05:53:02 +1100
committerGitHub <noreply@github.com>2021-02-05 05:53:02 +1100
commitb77fcbc518428429e39f5ba94e41fcd0418ee7a0 (patch)
tree0051cc7e5ac0c8f83278de093a2be7209cf9fcfc /cli/tsc/compiler.d.ts
parent644a7ff2d70cbd8bfba4c87b75a047e79830c4b6 (diff)
feat(lsp): add TS quick fix code actions (#9396)
Diffstat (limited to 'cli/tsc/compiler.d.ts')
-rw-r--r--cli/tsc/compiler.d.ts24
1 files changed, 23 insertions, 1 deletions
diff --git a/cli/tsc/compiler.d.ts b/cli/tsc/compiler.d.ts
index 17d6ddb38..4e5dcdb96 100644
--- a/cli/tsc/compiler.d.ts
+++ b/cli/tsc/compiler.d.ts
@@ -44,6 +44,8 @@ declare global {
| ConfigureRequest
| FindRenameLocationsRequest
| GetAsset
+ | GetCodeFixes
+ | GetCombinedCodeFix
| GetCompletionsRequest
| GetDefinitionRequest
| GetDiagnosticsRequest
@@ -51,7 +53,8 @@ declare global {
| GetImplementationRequest
| GetNavigationTree
| GetQuickInfoRequest
- | GetReferencesRequest;
+ | GetReferencesRequest
+ | GetSupportedCodeFixes;
interface BaseLanguageServerRequest {
id: number;
@@ -78,6 +81,21 @@ declare global {
specifier: string;
}
+ interface GetCodeFixes extends BaseLanguageServerRequest {
+ method: "getCodeFixes";
+ specifier: string;
+ startPosition: number;
+ endPosition: number;
+ errorCodes: string[];
+ }
+
+ interface GetCombinedCodeFix extends BaseLanguageServerRequest {
+ method: "getCombinedCodeFix";
+ specifier: string;
+ // deno-lint-ignore ban-types
+ fixId: {};
+ }
+
interface GetCompletionsRequest extends BaseLanguageServerRequest {
method: "getCompletions";
specifier: string;
@@ -125,4 +143,8 @@ declare global {
specifier: string;
position: number;
}
+
+ interface GetSupportedCodeFixes extends BaseLanguageServerRequest {
+ method: "getSupportedCodeFixes";
+ }
}