summaryrefslogtreecommitdiff
path: root/cli/tsc/compiler.d.ts
diff options
context:
space:
mode:
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";
+ }
}