typescript-language-server 2.0.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/README.md +73 -6
- package/lib/calls.d.ts +1 -1
- package/lib/calls.d.ts.map +1 -1
- package/lib/calls.js +4 -3
- package/lib/calls.js.map +1 -1
- package/lib/cli.js +4 -8
- package/lib/cli.js.map +1 -1
- package/lib/commands.d.ts +1 -0
- package/lib/commands.d.ts.map +1 -1
- package/lib/commands.js +1 -0
- package/lib/commands.js.map +1 -1
- package/lib/completion.d.ts +4 -4
- package/lib/completion.d.ts.map +1 -1
- package/lib/completion.js +22 -22
- package/lib/completion.js.map +1 -1
- package/lib/configuration-manager.d.ts +12 -4
- package/lib/configuration-manager.d.ts.map +1 -1
- package/lib/configuration-manager.js +18 -5
- package/lib/configuration-manager.js.map +1 -1
- package/lib/diagnostic-queue.d.ts +1 -2
- package/lib/diagnostic-queue.d.ts.map +1 -1
- package/lib/diagnostic-queue.js.map +1 -1
- package/lib/document-symbol.d.ts +1 -1
- package/lib/document-symbol.d.ts.map +1 -1
- package/lib/document-symbol.js +2 -2
- package/lib/document-symbol.js.map +1 -1
- package/lib/document.d.ts +4 -1
- package/lib/document.d.ts.map +1 -1
- package/lib/document.js +9 -0
- package/lib/document.js.map +1 -1
- package/lib/features/fix-all.d.ts.map +1 -1
- package/lib/features/fix-all.js +8 -6
- package/lib/features/fix-all.js.map +1 -1
- package/lib/features/inlay-hints.d.ts.map +1 -1
- package/lib/features/inlay-hints.js +2 -1
- package/lib/features/inlay-hints.js.map +1 -1
- package/lib/features/source-definition.js +2 -1
- package/lib/features/source-definition.js.map +1 -1
- package/lib/hover.d.ts +3 -2
- package/lib/hover.d.ts.map +1 -1
- package/lib/hover.js +13 -15
- package/lib/hover.js.map +1 -1
- package/lib/lsp-connection.d.ts +2 -2
- package/lib/lsp-connection.d.ts.map +1 -1
- package/lib/lsp-connection.js +3 -2
- package/lib/lsp-connection.js.map +1 -1
- package/lib/lsp-protocol.inlayHints.proposed.d.ts +5 -5
- package/lib/lsp-protocol.inlayHints.proposed.d.ts.map +1 -1
- package/lib/lsp-server.d.ts +9 -5
- package/lib/lsp-server.d.ts.map +1 -1
- package/lib/lsp-server.js +121 -92
- package/lib/lsp-server.js.map +1 -1
- package/lib/lsp-server.spec.js +4 -4
- package/lib/lsp-server.spec.js.map +1 -1
- package/lib/organize-imports.d.ts +1 -1
- package/lib/organize-imports.d.ts.map +1 -1
- package/lib/organize-imports.js.map +1 -1
- package/lib/organize-imports.spec.js.map +1 -1
- package/lib/protocol-translation.d.ts +1 -10
- package/lib/protocol-translation.d.ts.map +1 -1
- package/lib/protocol-translation.js +4 -80
- package/lib/protocol-translation.js.map +1 -1
- package/lib/quickfix.d.ts +1 -1
- package/lib/quickfix.d.ts.map +1 -1
- package/lib/quickfix.js.map +1 -1
- package/lib/refactor.d.ts +1 -2
- package/lib/refactor.d.ts.map +1 -1
- package/lib/refactor.js.map +1 -1
- package/lib/test-utils.js +1 -1
- package/lib/test-utils.js.map +1 -1
- package/lib/ts-protocol.d.ts +43 -15
- package/lib/ts-protocol.d.ts.map +1 -1
- package/lib/ts-protocol.js +50 -13
- package/lib/ts-protocol.js.map +1 -1
- package/lib/tsServer/callbackMap.d.ts +1 -1
- package/lib/tsServer/callbackMap.d.ts.map +1 -1
- package/lib/tsServer/callbackMap.js.map +1 -1
- package/lib/tsServer/requestQueue.d.ts +1 -1
- package/lib/tsServer/requestQueue.d.ts.map +1 -1
- package/lib/tsServer/requests.d.ts +4 -3
- package/lib/tsServer/requests.d.ts.map +1 -1
- package/lib/tsServer/requests.js +2 -0
- package/lib/tsServer/requests.js.map +1 -1
- package/lib/tsServer/server.d.ts +9 -4
- package/lib/tsServer/server.d.ts.map +1 -1
- package/lib/tsServer/server.js +7 -0
- package/lib/tsServer/server.js.map +1 -1
- package/lib/tsServer/serverError.d.ts +1 -1
- package/lib/tsServer/serverError.d.ts.map +1 -1
- package/lib/tsServer/serverError.js +4 -4
- package/lib/tsServer/serverError.js.map +1 -1
- package/lib/tsServer/serverProcess.d.ts.map +1 -1
- package/lib/tsServer/serverProcess.js +8 -1
- package/lib/tsServer/serverProcess.js.map +1 -1
- package/lib/tsServer/tracer.d.ts +2 -2
- package/lib/tsServer/tracer.d.ts.map +1 -1
- package/lib/tsServer/versionProvider.d.ts +3 -7
- package/lib/tsServer/versionProvider.d.ts.map +1 -1
- package/lib/tsServer/versionProvider.js +19 -21
- package/lib/tsServer/versionProvider.js.map +1 -1
- package/lib/tsp-client.d.ts +2 -2
- package/lib/tsp-client.d.ts.map +1 -1
- package/lib/tsp-client.js +18 -13
- package/lib/tsp-client.js.map +1 -1
- package/lib/tsp-client.spec.js +12 -10
- package/lib/tsp-client.spec.js.map +1 -1
- package/lib/utils/MarkdownString.d.ts +15 -0
- package/lib/utils/MarkdownString.d.ts.map +1 -0
- package/lib/utils/MarkdownString.js +45 -0
- package/lib/utils/MarkdownString.js.map +1 -0
- package/lib/utils/SnippetString.js +4 -4
- package/lib/utils/SnippetString.js.map +1 -1
- package/lib/utils/api.d.ts +2 -0
- package/lib/utils/api.d.ts.map +1 -1
- package/lib/utils/api.js +17 -15
- package/lib/utils/api.js.map +1 -1
- package/lib/utils/configuration.d.ts +2 -1
- package/lib/utils/configuration.d.ts.map +1 -1
- package/lib/utils/configuration.js +4 -1
- package/lib/utils/configuration.js.map +1 -1
- package/lib/utils/logger.d.ts +1 -1
- package/lib/utils/logger.d.ts.map +1 -1
- package/lib/utils/previewer.d.ts +15 -0
- package/lib/utils/previewer.d.ts.map +1 -0
- package/lib/utils/previewer.js +185 -0
- package/lib/utils/previewer.js.map +1 -0
- package/lib/utils/previewer.spec.d.ts +2 -0
- package/lib/utils/previewer.spec.d.ts.map +1 -0
- package/lib/utils/previewer.spec.js +123 -0
- package/lib/utils/previewer.spec.js.map +1 -0
- package/lib/utils/tsconfig.d.ts +4 -0
- package/lib/utils/tsconfig.d.ts.map +1 -0
- package/lib/utils/tsconfig.js +41 -0
- package/lib/utils/tsconfig.js.map +1 -0
- package/lib/utils/typeConverters.d.ts +1 -1
- package/lib/utils/typeConverters.d.ts.map +1 -1
- package/package.json +16 -16
- package/lib/tsp-command-types.d.ts +0 -188
- package/lib/tsp-command-types.d.ts.map +0 -1
- package/lib/tsp-command-types.js +0 -99
- package/lib/tsp-command-types.js.map +0 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (C) 2022 TypeFox and others.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
|
|
9
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*/
|
|
11
|
+
import { tsp } from '../ts-protocol.js';
|
|
12
|
+
const DEFAULT_PROJECT_CONFIG = Object.freeze({
|
|
13
|
+
module: tsp.ModuleKind.ESNext,
|
|
14
|
+
moduleResolution: tsp.ModuleResolutionKind.Node,
|
|
15
|
+
target: tsp.ScriptTarget.ES2020,
|
|
16
|
+
jsx: tsp.JsxEmit.React,
|
|
17
|
+
});
|
|
18
|
+
export function getInferredProjectCompilerOptions(workspaceConfig) {
|
|
19
|
+
const projectConfig = { ...DEFAULT_PROJECT_CONFIG };
|
|
20
|
+
if (workspaceConfig.checkJs) {
|
|
21
|
+
projectConfig.checkJs = true;
|
|
22
|
+
}
|
|
23
|
+
if (workspaceConfig.experimentalDecorators) {
|
|
24
|
+
projectConfig.experimentalDecorators = true;
|
|
25
|
+
}
|
|
26
|
+
if (workspaceConfig.strictNullChecks) {
|
|
27
|
+
projectConfig.strictNullChecks = true;
|
|
28
|
+
}
|
|
29
|
+
if (workspaceConfig.strictFunctionTypes) {
|
|
30
|
+
projectConfig.strictFunctionTypes = true;
|
|
31
|
+
}
|
|
32
|
+
if (workspaceConfig.module) {
|
|
33
|
+
projectConfig.module = workspaceConfig.module;
|
|
34
|
+
}
|
|
35
|
+
if (workspaceConfig.target) {
|
|
36
|
+
projectConfig.target = workspaceConfig.target;
|
|
37
|
+
}
|
|
38
|
+
projectConfig.sourceMap = true;
|
|
39
|
+
return projectConfig;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=tsconfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsconfig.js","sourceRoot":"","sources":["../../src/utils/tsconfig.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;;;;GAKG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,MAAM,sBAAsB,GAAuC,MAAM,CAAC,MAAM,CAAC;IAC7E,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,MAAM;IAC7B,gBAAgB,EAAE,GAAG,CAAC,oBAAoB,CAAC,IAAI;IAC/C,MAAM,EAAE,GAAG,CAAC,YAAY,CAAC,MAAM;IAC/B,GAAG,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK;CACzB,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC7C,eAA0E;IAE1E,MAAM,aAAa,GAAG,EAAE,GAAG,sBAAsB,EAAE,CAAC;IAEpD,IAAI,eAAe,CAAC,OAAO,EAAE;QACzB,aAAa,CAAC,OAAO,GAAG,IAAI,CAAC;KAChC;IAED,IAAI,eAAe,CAAC,sBAAsB,EAAE;QACxC,aAAa,CAAC,sBAAsB,GAAG,IAAI,CAAC;KAC/C;IAED,IAAI,eAAe,CAAC,gBAAgB,EAAE;QAClC,aAAa,CAAC,gBAAgB,GAAG,IAAI,CAAC;KACzC;IAED,IAAI,eAAe,CAAC,mBAAmB,EAAE;QACrC,aAAa,CAAC,mBAAmB,GAAG,IAAI,CAAC;KAC5C;IAED,IAAI,eAAe,CAAC,MAAM,EAAE;QACxB,aAAa,CAAC,MAAM,GAAG,eAAe,CAAC,MAAwB,CAAC;KACnE;IAED,IAAI,eAAe,CAAC,MAAM,EAAE;QACxB,aAAa,CAAC,MAAM,GAAG,eAAe,CAAC,MAA0B,CAAC;KACrE;IAED,aAAa,CAAC,SAAS,GAAG,IAAI,CAAC;IAE/B,OAAO,aAAa,CAAC;AACzB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Helpers for converting FROM LanguageServer types language-server ts types
|
|
3
3
|
*/
|
|
4
4
|
import * as lsp from 'vscode-languageserver-protocol';
|
|
5
|
-
import type tsp from '
|
|
5
|
+
import type { tsp } from '../ts-protocol.js';
|
|
6
6
|
export declare namespace Range {
|
|
7
7
|
const fromTextSpan: (span: tsp.TextSpan) => lsp.Range;
|
|
8
8
|
const toTextSpan: (range: lsp.Range) => tsp.TextSpan;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeConverters.d.ts","sourceRoot":"","sources":["../../src/utils/typeConverters.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,KAAK,GAAG,MAAM,gCAAgC,CAAC;AACtD,OAAO,KAAK,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"typeConverters.d.ts","sourceRoot":"","sources":["../../src/utils/typeConverters.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,KAAK,GAAG,MAAM,gCAAgC,CAAC;AACtD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAE7C,yBAAiB,KAAK,CAAC;IACZ,MAAM,YAAY,SAAU,IAAI,QAAQ,KAAG,SAAgD,CAAC;IAE5F,MAAM,UAAU,UAAW,SAAS,KAAG,IAAI,QAGhD,CAAC;IAEI,MAAM,aAAa,UAAW,YAAY,OAAO,YAAY,KAAG,SAGR,CAAC;IAEzD,MAAM,sBAAsB,SAAU,MAAM,SAAS,SAAS,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typescript-language-server",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Language Server Protocol (LSP) implementation for TypeScript using tsserver",
|
|
5
5
|
"author": "TypeFox and others",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
12
12
|
"engines": {
|
|
13
|
-
"node": ">=14.
|
|
13
|
+
"node": ">=14.17"
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"lib"
|
|
@@ -43,36 +43,36 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"commander": "^9.4.1",
|
|
45
45
|
"deepmerge": "^4.2.2",
|
|
46
|
-
"fs-extra": "^
|
|
46
|
+
"fs-extra": "^11.1.0",
|
|
47
47
|
"p-debounce": "^4.0.0",
|
|
48
48
|
"pkg-up": "^4.0.0",
|
|
49
49
|
"semver": "^7.3.8",
|
|
50
50
|
"tempy": "^3.0.0",
|
|
51
51
|
"vscode-languageserver": "^8.0.2",
|
|
52
52
|
"vscode-languageserver-protocol": "^3.17.2",
|
|
53
|
-
"vscode-languageserver-textdocument": "1.0.
|
|
53
|
+
"vscode-languageserver-textdocument": "1.0.8",
|
|
54
54
|
"vscode-uri": "^3.0.6",
|
|
55
|
-
"which": "^
|
|
55
|
+
"which": "^3.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@types/chai": "^4.3.
|
|
58
|
+
"@types/chai": "^4.3.4",
|
|
59
59
|
"@types/deepmerge": "^2.2.0",
|
|
60
60
|
"@types/fs-extra": "^9.0.13",
|
|
61
|
-
"@types/mocha": "^10.0.
|
|
62
|
-
"@types/node": "^16.
|
|
63
|
-
"@types/semver": "^7.3.
|
|
61
|
+
"@types/mocha": "^10.0.1",
|
|
62
|
+
"@types/node": "^16.18.7",
|
|
63
|
+
"@types/semver": "^7.3.13",
|
|
64
64
|
"@types/which": "^2.0.1",
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
66
|
-
"@typescript-eslint/parser": "^5.
|
|
67
|
-
"chai": "^4.3.
|
|
68
|
-
"concurrently": "^7.
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^5.46.0",
|
|
66
|
+
"@typescript-eslint/parser": "^5.46.0",
|
|
67
|
+
"chai": "^4.3.7",
|
|
68
|
+
"concurrently": "^7.6.0",
|
|
69
69
|
"cross-env": "^7.0.3",
|
|
70
|
-
"eslint": "^8.
|
|
70
|
+
"eslint": "^8.29.0",
|
|
71
71
|
"husky": "4.x",
|
|
72
|
-
"mocha": "^10.
|
|
72
|
+
"mocha": "^10.1.0",
|
|
73
73
|
"rimraf": "^3.0.2",
|
|
74
74
|
"source-map-support": "^0.5.21",
|
|
75
75
|
"ts-node": "^10.9.1",
|
|
76
|
-
"typescript": "^4.
|
|
76
|
+
"typescript": "^4.9.4"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* copied over from typescript/lib/protocol.d.ts due to https://github.com/Microsoft/TypeScript/issues/18468
|
|
3
|
-
*/
|
|
4
|
-
/******************************************************************************
|
|
5
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
7
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
8
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
11
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
12
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
13
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
14
|
-
|
|
15
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
16
|
-
and limitations under the License.
|
|
17
|
-
***************************************************************************** */
|
|
18
|
-
export declare const enum CommandTypes {
|
|
19
|
-
JsxClosingTag = "jsxClosingTag",
|
|
20
|
-
Brace = "brace",
|
|
21
|
-
BraceCompletion = "braceCompletion",
|
|
22
|
-
GetSpanOfEnclosingComment = "getSpanOfEnclosingComment",
|
|
23
|
-
Change = "change",
|
|
24
|
-
Close = "close",
|
|
25
|
-
CompletionInfo = "completionInfo",
|
|
26
|
-
CompletionDetails = "completionEntryDetails",
|
|
27
|
-
CompileOnSaveAffectedFileList = "compileOnSaveAffectedFileList",
|
|
28
|
-
CompileOnSaveEmitFile = "compileOnSaveEmitFile",
|
|
29
|
-
Configure = "configure",
|
|
30
|
-
Definition = "definition",
|
|
31
|
-
DefinitionAndBoundSpan = "definitionAndBoundSpan",
|
|
32
|
-
Implementation = "implementation",
|
|
33
|
-
Exit = "exit",
|
|
34
|
-
FileReferences = "fileReferences",
|
|
35
|
-
FindSourceDefinition = "findSourceDefinition",
|
|
36
|
-
Format = "format",
|
|
37
|
-
Formatonkey = "formatonkey",
|
|
38
|
-
Geterr = "geterr",
|
|
39
|
-
GeterrForProject = "geterrForProject",
|
|
40
|
-
SemanticDiagnosticsSync = "semanticDiagnosticsSync",
|
|
41
|
-
SyntacticDiagnosticsSync = "syntacticDiagnosticsSync",
|
|
42
|
-
SuggestionDiagnosticsSync = "suggestionDiagnosticsSync",
|
|
43
|
-
NavBar = "navbar",
|
|
44
|
-
Navto = "navto",
|
|
45
|
-
NavTree = "navtree",
|
|
46
|
-
NavTreeFull = "navtree-full",
|
|
47
|
-
/** @deprecated */
|
|
48
|
-
Occurrences = "occurrences",
|
|
49
|
-
DocumentHighlights = "documentHighlights",
|
|
50
|
-
Open = "open",
|
|
51
|
-
Quickinfo = "quickinfo",
|
|
52
|
-
References = "references",
|
|
53
|
-
Reload = "reload",
|
|
54
|
-
Rename = "rename",
|
|
55
|
-
Saveto = "saveto",
|
|
56
|
-
SignatureHelp = "signatureHelp",
|
|
57
|
-
Status = "status",
|
|
58
|
-
TypeDefinition = "typeDefinition",
|
|
59
|
-
ProjectInfo = "projectInfo",
|
|
60
|
-
ReloadProjects = "reloadProjects",
|
|
61
|
-
Unknown = "unknown",
|
|
62
|
-
OpenExternalProject = "openExternalProject",
|
|
63
|
-
OpenExternalProjects = "openExternalProjects",
|
|
64
|
-
CloseExternalProject = "closeExternalProject",
|
|
65
|
-
UpdateOpen = "updateOpen",
|
|
66
|
-
GetOutliningSpans = "getOutliningSpans",
|
|
67
|
-
TodoComments = "todoComments",
|
|
68
|
-
Indentation = "indentation",
|
|
69
|
-
DocCommentTemplate = "docCommentTemplate",
|
|
70
|
-
CompilerOptionsForInferredProjects = "compilerOptionsForInferredProjects",
|
|
71
|
-
GetCodeFixes = "getCodeFixes",
|
|
72
|
-
GetCombinedCodeFix = "getCombinedCodeFix",
|
|
73
|
-
ApplyCodeActionCommand = "applyCodeActionCommand",
|
|
74
|
-
GetSupportedCodeFixes = "getSupportedCodeFixes",
|
|
75
|
-
GetApplicableRefactors = "getApplicableRefactors",
|
|
76
|
-
GetEditsForRefactor = "getEditsForRefactor",
|
|
77
|
-
OrganizeImports = "organizeImports",
|
|
78
|
-
GetEditsForFileRename = "getEditsForFileRename",
|
|
79
|
-
ConfigurePlugin = "configurePlugin",
|
|
80
|
-
SelectionRange = "selectionRange",
|
|
81
|
-
ToggleLineComment = "toggleLineComment",
|
|
82
|
-
ToggleMultilineComment = "toggleMultilineComment",
|
|
83
|
-
CommentSelection = "commentSelection",
|
|
84
|
-
UncommentSelection = "uncommentSelection",
|
|
85
|
-
PrepareCallHierarchy = "prepareCallHierarchy",
|
|
86
|
-
ProvideCallHierarchyIncomingCalls = "provideCallHierarchyIncomingCalls",
|
|
87
|
-
ProvideCallHierarchyOutgoingCalls = "provideCallHierarchyOutgoingCalls",
|
|
88
|
-
ProvideInlayHints = "provideInlayHints",
|
|
89
|
-
EncodedSemanticClassificationsFull = "encodedSemanticClassifications-full"
|
|
90
|
-
}
|
|
91
|
-
export declare const enum EventTypes {
|
|
92
|
-
ConfigFileDiag = "configFileDiag",
|
|
93
|
-
RequestCompleted = "requestCompleted",
|
|
94
|
-
SyntaxDiag = "syntaxDiag",
|
|
95
|
-
SementicDiag = "semanticDiag",
|
|
96
|
-
SuggestionDiag = "suggestionDiag",
|
|
97
|
-
Telemetry = "telemetry",
|
|
98
|
-
ProjectLoadingStart = "projectLoadingStart",
|
|
99
|
-
ProjectLoadingFinish = "projectLoadingFinish"
|
|
100
|
-
}
|
|
101
|
-
export declare enum ScriptElementKind {
|
|
102
|
-
unknown = "",
|
|
103
|
-
warning = "warning",
|
|
104
|
-
/** predefined type (void) or keyword (class) */
|
|
105
|
-
keyword = "keyword",
|
|
106
|
-
/** top level script node */
|
|
107
|
-
scriptElement = "script",
|
|
108
|
-
/** module foo {} */
|
|
109
|
-
moduleElement = "module",
|
|
110
|
-
/** class X {} */
|
|
111
|
-
classElement = "class",
|
|
112
|
-
/** var x = class X {} */
|
|
113
|
-
localClassElement = "local class",
|
|
114
|
-
/** interface Y {} */
|
|
115
|
-
interfaceElement = "interface",
|
|
116
|
-
/** type T = ... */
|
|
117
|
-
typeElement = "type",
|
|
118
|
-
/** enum E */
|
|
119
|
-
enumElement = "enum",
|
|
120
|
-
enumMemberElement = "enum member",
|
|
121
|
-
/**
|
|
122
|
-
* Inside module and script only
|
|
123
|
-
* const v = ..
|
|
124
|
-
*/
|
|
125
|
-
variableElement = "var",
|
|
126
|
-
/** Inside function */
|
|
127
|
-
localVariableElement = "local var",
|
|
128
|
-
/**
|
|
129
|
-
* Inside module and script only
|
|
130
|
-
* function f() { }
|
|
131
|
-
*/
|
|
132
|
-
functionElement = "function",
|
|
133
|
-
/** Inside function */
|
|
134
|
-
localFunctionElement = "local function",
|
|
135
|
-
/** class X { [public|private]* foo() {} } */
|
|
136
|
-
memberFunctionElement = "method",
|
|
137
|
-
/** class X { [public|private]* [get|set] foo:number; } */
|
|
138
|
-
memberGetAccessorElement = "getter",
|
|
139
|
-
memberSetAccessorElement = "setter",
|
|
140
|
-
/**
|
|
141
|
-
* class X { [public|private]* foo:number; }
|
|
142
|
-
* interface Y { foo:number; }
|
|
143
|
-
*/
|
|
144
|
-
memberVariableElement = "property",
|
|
145
|
-
/** class X { constructor() { } } */
|
|
146
|
-
constructorImplementationElement = "constructor",
|
|
147
|
-
/** interface Y { ():number; } */
|
|
148
|
-
callSignatureElement = "call",
|
|
149
|
-
/** interface Y { []:number; } */
|
|
150
|
-
indexSignatureElement = "index",
|
|
151
|
-
/** interface Y { new():Y; } */
|
|
152
|
-
constructSignatureElement = "construct",
|
|
153
|
-
/** function foo(*Y*: string) */
|
|
154
|
-
parameterElement = "parameter",
|
|
155
|
-
typeParameterElement = "type parameter",
|
|
156
|
-
primitiveType = "primitive type",
|
|
157
|
-
label = "label",
|
|
158
|
-
alias = "alias",
|
|
159
|
-
constElement = "const",
|
|
160
|
-
letElement = "let",
|
|
161
|
-
directory = "directory",
|
|
162
|
-
externalModuleName = "external module name",
|
|
163
|
-
/**
|
|
164
|
-
* <JsxTagName attribute1 attribute2={0} />
|
|
165
|
-
*/
|
|
166
|
-
jsxAttribute = "JSX attribute",
|
|
167
|
-
/** String literal */
|
|
168
|
-
string = "string",
|
|
169
|
-
/** Jsdoc @link: in `{@link C link text}`, the before and after text "{@link " and "}" */
|
|
170
|
-
link = "link",
|
|
171
|
-
/** Jsdoc @link: in `{@link C link text}`, the entity name "C" */
|
|
172
|
-
linkName = "link name",
|
|
173
|
-
/** Jsdoc @link: in `{@link C link text}`, the link text "link text" */
|
|
174
|
-
linkText = "link text"
|
|
175
|
-
}
|
|
176
|
-
export declare class KindModifiers {
|
|
177
|
-
static readonly optional = "optional";
|
|
178
|
-
static readonly deprecated = "deprecated";
|
|
179
|
-
static readonly color = "color";
|
|
180
|
-
static readonly dtsFile = ".d.ts";
|
|
181
|
-
static readonly tsFile = ".ts";
|
|
182
|
-
static readonly tsxFile = ".tsx";
|
|
183
|
-
static readonly jsFile = ".js";
|
|
184
|
-
static readonly jsxFile = ".jsx";
|
|
185
|
-
static readonly jsonFile = ".json";
|
|
186
|
-
static readonly fileExtensionKindModifiers: string[];
|
|
187
|
-
}
|
|
188
|
-
//# sourceMappingURL=tsp-command-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tsp-command-types.d.ts","sourceRoot":"","sources":["../src/tsp-command-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;;;;;;gFAagF;AAEhF,0BAAkB,YAAY;IAC1B,aAAa,kBAAkB;IAC/B,KAAK,UAAU;IACf,eAAe,oBAAoB;IACnC,yBAAyB,8BAA8B;IACvD,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,cAAc,mBAAmB;IACjC,iBAAiB,2BAA2B;IAC5C,6BAA6B,kCAAkC;IAC/D,qBAAqB,0BAA0B;IAC/C,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,sBAAsB,2BAA2B;IACjD,cAAc,mBAAmB;IACjC,IAAI,SAAS;IACb,cAAc,mBAAmB;IACjC,oBAAoB,yBAAyB;IAC7C,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,gBAAgB,qBAAqB;IACrC,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;IACvD,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,WAAW,iBAAiB;IAC5B,kBAAkB;IAClB,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,OAAO,YAAY;IACnB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oB,cAAc;IAClC;;;OAGG;IACH,eAAe,aAAa;IAC5B,sBAAsB;IACtB,oBAAoB,mBAAmB;IACvC,6CAA6C;IAC7C,qBAAqB,WAAW;IAChC,0DAA0D;IAC1D,wBAAwB,WAAW;IACnC,wBAAwB,WAAW;IACnC;;;OAGG;IACH,qBAAqB,aAAa;IAClC,oCAAoC;IACpC,gCAAgC,gBAAgB;IAChD,iCAAiC;IACjC,oBAAoB,SAAS;IAC7B,iCAAiC;IACjC,qBAAqB,UAAU;IAC/B,+BAA+B;IAC/B,yBAAyB,cAAc;IACvC,gCAAgC;IAChC,gBAAgB,cAAc;IAC9B,oBAAoB,mBAAmB;IACvC,aAAa,mBAAmB;IAChC,KAAK,UAAU;IACf,KAAK,UAAU;IACf,YAAY,UAAU;IACtB,UAAU,QAAQ;IAClB,SAAS,cAAc;IACvB,kBAAkB,yBAAyB;IAC3C;;OAEG;IACH,YAAY,kBAAkB;IAC9B,qBAAqB;IACrB,MAAM,WAAW;IACjB,yFAAyF;IACzF,IAAI,SAAS;IACb,iEAAiE;IACjE,QAAQ,cAAc;IACtB,uEAAuE;IACvE,QAAQ,cAAc;CACzB;AAED,qBAAa,aAAa;IACtB,gBAAuB,QAAQ,cAAc;IAC7C,gBAAuB,UAAU,gBAAgB;IACjD,gBAAuB,KAAK,WAAW;IAEvC,gBAAuB,OAAO,WAAW;IACzC,gBAAuB,MAAM,SAAS;IACtC,gBAAuB,OAAO,UAAU;IACxC,gBAAuB,MAAM,SAAS;IACtC,gBAAuB,OAAO,UAAU;IACxC,gBAAuB,QAAQ,WAAW;IAE1C,gBAAuB,0BAA0B,WAO/C;CACL"}
|
package/lib/tsp-command-types.js
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* copied over from typescript/lib/protocol.d.ts due to https://github.com/Microsoft/TypeScript/issues/18468
|
|
3
|
-
*/
|
|
4
|
-
export var ScriptElementKind;
|
|
5
|
-
(function (ScriptElementKind) {
|
|
6
|
-
ScriptElementKind["unknown"] = "";
|
|
7
|
-
ScriptElementKind["warning"] = "warning";
|
|
8
|
-
/** predefined type (void) or keyword (class) */
|
|
9
|
-
ScriptElementKind["keyword"] = "keyword";
|
|
10
|
-
/** top level script node */
|
|
11
|
-
ScriptElementKind["scriptElement"] = "script";
|
|
12
|
-
/** module foo {} */
|
|
13
|
-
ScriptElementKind["moduleElement"] = "module";
|
|
14
|
-
/** class X {} */
|
|
15
|
-
ScriptElementKind["classElement"] = "class";
|
|
16
|
-
/** var x = class X {} */
|
|
17
|
-
ScriptElementKind["localClassElement"] = "local class";
|
|
18
|
-
/** interface Y {} */
|
|
19
|
-
ScriptElementKind["interfaceElement"] = "interface";
|
|
20
|
-
/** type T = ... */
|
|
21
|
-
ScriptElementKind["typeElement"] = "type";
|
|
22
|
-
/** enum E */
|
|
23
|
-
ScriptElementKind["enumElement"] = "enum";
|
|
24
|
-
ScriptElementKind["enumMemberElement"] = "enum member";
|
|
25
|
-
/**
|
|
26
|
-
* Inside module and script only
|
|
27
|
-
* const v = ..
|
|
28
|
-
*/
|
|
29
|
-
ScriptElementKind["variableElement"] = "var";
|
|
30
|
-
/** Inside function */
|
|
31
|
-
ScriptElementKind["localVariableElement"] = "local var";
|
|
32
|
-
/**
|
|
33
|
-
* Inside module and script only
|
|
34
|
-
* function f() { }
|
|
35
|
-
*/
|
|
36
|
-
ScriptElementKind["functionElement"] = "function";
|
|
37
|
-
/** Inside function */
|
|
38
|
-
ScriptElementKind["localFunctionElement"] = "local function";
|
|
39
|
-
/** class X { [public|private]* foo() {} } */
|
|
40
|
-
ScriptElementKind["memberFunctionElement"] = "method";
|
|
41
|
-
/** class X { [public|private]* [get|set] foo:number; } */
|
|
42
|
-
ScriptElementKind["memberGetAccessorElement"] = "getter";
|
|
43
|
-
ScriptElementKind["memberSetAccessorElement"] = "setter";
|
|
44
|
-
/**
|
|
45
|
-
* class X { [public|private]* foo:number; }
|
|
46
|
-
* interface Y { foo:number; }
|
|
47
|
-
*/
|
|
48
|
-
ScriptElementKind["memberVariableElement"] = "property";
|
|
49
|
-
/** class X { constructor() { } } */
|
|
50
|
-
ScriptElementKind["constructorImplementationElement"] = "constructor";
|
|
51
|
-
/** interface Y { ():number; } */
|
|
52
|
-
ScriptElementKind["callSignatureElement"] = "call";
|
|
53
|
-
/** interface Y { []:number; } */
|
|
54
|
-
ScriptElementKind["indexSignatureElement"] = "index";
|
|
55
|
-
/** interface Y { new():Y; } */
|
|
56
|
-
ScriptElementKind["constructSignatureElement"] = "construct";
|
|
57
|
-
/** function foo(*Y*: string) */
|
|
58
|
-
ScriptElementKind["parameterElement"] = "parameter";
|
|
59
|
-
ScriptElementKind["typeParameterElement"] = "type parameter";
|
|
60
|
-
ScriptElementKind["primitiveType"] = "primitive type";
|
|
61
|
-
ScriptElementKind["label"] = "label";
|
|
62
|
-
ScriptElementKind["alias"] = "alias";
|
|
63
|
-
ScriptElementKind["constElement"] = "const";
|
|
64
|
-
ScriptElementKind["letElement"] = "let";
|
|
65
|
-
ScriptElementKind["directory"] = "directory";
|
|
66
|
-
ScriptElementKind["externalModuleName"] = "external module name";
|
|
67
|
-
/**
|
|
68
|
-
* <JsxTagName attribute1 attribute2={0} />
|
|
69
|
-
*/
|
|
70
|
-
ScriptElementKind["jsxAttribute"] = "JSX attribute";
|
|
71
|
-
/** String literal */
|
|
72
|
-
ScriptElementKind["string"] = "string";
|
|
73
|
-
/** Jsdoc @link: in `{@link C link text}`, the before and after text "{@link " and "}" */
|
|
74
|
-
ScriptElementKind["link"] = "link";
|
|
75
|
-
/** Jsdoc @link: in `{@link C link text}`, the entity name "C" */
|
|
76
|
-
ScriptElementKind["linkName"] = "link name";
|
|
77
|
-
/** Jsdoc @link: in `{@link C link text}`, the link text "link text" */
|
|
78
|
-
ScriptElementKind["linkText"] = "link text";
|
|
79
|
-
})(ScriptElementKind = ScriptElementKind || (ScriptElementKind = {}));
|
|
80
|
-
export class KindModifiers {
|
|
81
|
-
}
|
|
82
|
-
KindModifiers.optional = 'optional';
|
|
83
|
-
KindModifiers.deprecated = 'deprecated';
|
|
84
|
-
KindModifiers.color = 'color';
|
|
85
|
-
KindModifiers.dtsFile = '.d.ts';
|
|
86
|
-
KindModifiers.tsFile = '.ts';
|
|
87
|
-
KindModifiers.tsxFile = '.tsx';
|
|
88
|
-
KindModifiers.jsFile = '.js';
|
|
89
|
-
KindModifiers.jsxFile = '.jsx';
|
|
90
|
-
KindModifiers.jsonFile = '.json';
|
|
91
|
-
KindModifiers.fileExtensionKindModifiers = [
|
|
92
|
-
KindModifiers.dtsFile,
|
|
93
|
-
KindModifiers.tsFile,
|
|
94
|
-
KindModifiers.tsxFile,
|
|
95
|
-
KindModifiers.jsFile,
|
|
96
|
-
KindModifiers.jsxFile,
|
|
97
|
-
KindModifiers.jsonFile,
|
|
98
|
-
];
|
|
99
|
-
//# sourceMappingURL=tsp-command-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tsp-command-types.js","sourceRoot":"","sources":["../src/tsp-command-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAsGH,MAAM,CAAN,IAAY,iBA0EX;AA1ED,WAAY,iBAAiB;IACzB,iCAAY,CAAA;IACZ,wCAAmB,CAAA;IACnB,gDAAgD;IAChD,wCAAmB,CAAA;IACnB,4BAA4B;IAC5B,6CAAwB,CAAA;IACxB,oBAAoB;IACpB,6CAAwB,CAAA;IACxB,iBAAiB;IACjB,2CAAsB,CAAA;IACtB,yBAAyB;IACzB,sDAAiC,CAAA;IACjC,qBAAqB;IACrB,mDAA8B,CAAA;IAC9B,mBAAmB;IACnB,yCAAoB,CAAA;IACpB,aAAa;IACb,yCAAoB,CAAA;IACpB,sDAAiC,CAAA;IACjC;;;OAGG;IACH,4CAAuB,CAAA;IACvB,sBAAsB;IACtB,uDAAkC,CAAA;IAClC;;;OAGG;IACH,iDAA4B,CAAA;IAC5B,sBAAsB;IACtB,4DAAuC,CAAA;IACvC,6CAA6C;IAC7C,qDAAgC,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