typescript-language-server 2.1.0 → 2.3.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 +27 -0
- package/README.md +2 -0
- package/lib/calls.d.ts +1 -1
- package/lib/calls.d.ts.map +1 -1
- package/lib/calls.js +5 -4
- package/lib/calls.js.map +1 -1
- package/lib/completion.d.ts +2 -3
- package/lib/completion.d.ts.map +1 -1
- package/lib/completion.js +29 -31
- package/lib/completion.js.map +1 -1
- package/lib/configuration-manager.d.ts +2 -3
- package/lib/configuration-manager.d.ts.map +1 -1
- package/lib/configuration-manager.js +8 -6
- 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/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 +1 -1
- package/lib/hover.d.ts.map +1 -1
- package/lib/lsp-connection.d.ts.map +1 -1
- package/lib/lsp-connection.js +2 -0
- 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 +8 -4
- package/lib/lsp-server.d.ts.map +1 -1
- package/lib/lsp-server.js +87 -57
- package/lib/lsp-server.js.map +1 -1
- package/lib/lsp-server.spec.js +6 -6
- 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 +2 -2
- package/lib/protocol-translation.d.ts.map +1 -1
- package/lib/protocol-translation.js +10 -14
- 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 +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 +4 -4
- package/lib/refactor.js.map +1 -1
- package/lib/ts-protocol.d.ts +29 -14
- 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 +9 -2
- package/lib/tsServer/serverProcess.js.map +1 -1
- package/lib/tsServer/spawner.js +3 -3
- package/lib/tsServer/spawner.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.js +1 -1
- 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 +10 -2
- package/lib/tsp-client.js.map +1 -1
- package/lib/tsp-client.spec.js +11 -9
- package/lib/tsp-client.spec.js.map +1 -1
- 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/logger.d.ts +1 -1
- package/lib/utils/logger.d.ts.map +1 -1
- package/lib/utils/logger.js +1 -3
- package/lib/utils/logger.js.map +1 -1
- package/lib/utils/previewer.d.ts +1 -1
- package/lib/utils/previewer.d.ts.map +1 -1
- package/lib/utils/previewer.js.map +1 -1
- package/lib/utils/tsconfig.d.ts +1 -1
- package/lib/utils/tsconfig.d.ts.map +1 -1
- package/lib/utils/tsconfig.js +5 -4
- package/lib/utils/tsconfig.js.map +1 -1
- 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
|
@@ -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,gBAA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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,CA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