summaryrefslogtreecommitdiff
path: root/cli/tsc/compiler.d.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-03-16 09:01:41 +1100
committerGitHub <noreply@github.com>2021-03-16 09:01:41 +1100
commit506b321d472005d0cf916823dfa8ea37fa0b064a (patch)
tree6e4da0350772c1143a6efcfaabf99155623fe724 /cli/tsc/compiler.d.ts
parent2ff9b01551d4bdb3a820774252706d4e58bceaba (diff)
refactor(lsp): refactor completions and add tests (#9789)
Diffstat (limited to 'cli/tsc/compiler.d.ts')
-rw-r--r--cli/tsc/compiler.d.ts14
1 files changed, 13 insertions, 1 deletions
diff --git a/cli/tsc/compiler.d.ts b/cli/tsc/compiler.d.ts
index d37b56c06..a3200469c 100644
--- a/cli/tsc/compiler.d.ts
+++ b/cli/tsc/compiler.d.ts
@@ -51,6 +51,7 @@ declare global {
| GetAsset
| GetCodeFixes
| GetCombinedCodeFix
+ | GetCompletionDetails
| GetCompletionsRequest
| GetDefinitionRequest
| GetDiagnosticsRequest
@@ -102,11 +103,22 @@ declare global {
fixId: {};
}
+ interface GetCompletionDetails extends BaseLanguageServerRequest {
+ method: "getCompletionDetails";
+ args: {
+ specifier: string;
+ position: number;
+ name: string;
+ source?: string;
+ data?: unknown;
+ };
+ }
+
interface GetCompletionsRequest extends BaseLanguageServerRequest {
method: "getCompletions";
specifier: string;
position: number;
- preferences: ts.UserPreferences;
+ preferences: ts.GetCompletionsAtPositionOptions;
}
interface GetDiagnosticsRequest extends BaseLanguageServerRequest {