diff options
Diffstat (limited to 'cli/tsc')
-rw-r--r-- | cli/tsc/99_main_compiler.js | 9 | ||||
-rw-r--r-- | cli/tsc/compiler.d.ts | 10 |
2 files changed, 18 insertions, 1 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index ab43af38d..b39f56cf6 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -898,6 +898,15 @@ delete Object.prototype.__proto__; ), ); } + case "provideInlayHints": + return respond( + id, + languageService.provideInlayHints( + request.specifier, + request.span, + request.preferences, + ), + ); default: throw new TypeError( // @ts-ignore exhausted case statement sets type to never diff --git a/cli/tsc/compiler.d.ts b/cli/tsc/compiler.d.ts index 31c8b8c64..ffd4695ae 100644 --- a/cli/tsc/compiler.d.ts +++ b/cli/tsc/compiler.d.ts @@ -77,7 +77,8 @@ declare global { | GetTypeDefinitionRequest | PrepareCallHierarchy | ProvideCallHierarchyIncomingCalls - | ProvideCallHierarchyOutgoingCalls; + | ProvideCallHierarchyOutgoingCalls + | ProvideInlayHints; interface BaseLanguageServerRequest { id: number; @@ -255,6 +256,13 @@ declare global { position: number; } + interface ProvideInlayHints extends BaseLanguageServerRequest { + method: "provideInlayHints"; + specifier: string; + span: ts.TextSpan; + preferences?: ts.UserPreferences; + } + interface Restart extends BaseLanguageServerRequest { method: "restart"; } |