diff options
author | Jean Pierre <jeanp413@hotmail.com> | 2021-04-02 01:21:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 17:21:07 +1100 |
commit | 035f7b0ca037aaff37428d339b5f4abc796320fc (patch) | |
tree | 835ba72b435a64838cbc36e1343904566de67789 /cli/tsc | |
parent | f50385b2a5c9bed99709522edc9ab759ce5f07ba (diff) |
feat(lsp): implement textDocument/foldingRange (#9900)
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Diffstat (limited to 'cli/tsc')
-rw-r--r-- | cli/tsc/99_main_compiler.js | 8 | ||||
-rw-r--r-- | cli/tsc/compiler.d.ts | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index 8aba3dca9..9396ba4ad 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -675,6 +675,14 @@ delete Object.prototype.__proto__; languageService.getNavigationTree(request.specifier), ); } + case "getOutliningSpans": { + return respond( + id, + languageService.getOutliningSpans( + request.specifier, + ), + ); + } case "getQuickInfo": { return respond( id, diff --git a/cli/tsc/compiler.d.ts b/cli/tsc/compiler.d.ts index bdbc89a87..ec82af1e2 100644 --- a/cli/tsc/compiler.d.ts +++ b/cli/tsc/compiler.d.ts @@ -58,6 +58,7 @@ declare global { | GetDocumentHighlightsRequest | GetImplementationRequest | GetNavigationTree + | GetOutliningSpans | GetQuickInfoRequest | GetReferencesRequest | GetSignatureHelpItemsRequest @@ -151,6 +152,11 @@ declare global { specifier: string; } + interface GetOutliningSpans extends BaseLanguageServerRequest { + method: "getOutliningSpans"; + specifier: string; + } + interface GetQuickInfoRequest extends BaseLanguageServerRequest { method: "getQuickInfo"; specifier: string; |