summaryrefslogtreecommitdiff
path: root/cli/tsc/99_main_compiler.js
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/99_main_compiler.js
parent2ff9b01551d4bdb3a820774252706d4e58bceaba (diff)
refactor(lsp): refactor completions and add tests (#9789)
Diffstat (limited to 'cli/tsc/99_main_compiler.js')
-rw-r--r--cli/tsc/99_main_compiler.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js
index f8eabc890..c84c2365c 100644
--- a/cli/tsc/99_main_compiler.js
+++ b/cli/tsc/99_main_compiler.js
@@ -594,6 +594,22 @@ delete Object.prototype.__proto__;
),
);
}
+ case "getCompletionDetails": {
+ debug("request", request);
+ return respond(
+ id,
+ languageService.getCompletionEntryDetails(
+ request.args.specifier,
+ request.args.position,
+ request.args.name,
+ undefined,
+ request.args.source,
+ undefined,
+ // @ts-expect-error this exists in 4.3 but not part of the d.ts
+ request.args.data,
+ ),
+ );
+ }
case "getCompletions": {
return respond(
id,