@teambit/ts-server 0.0.0-b5e3d30a4fe58fedfeafa7448ff4bad8debf4e32
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/dist/format-diagnostics.d.ts +9 -0
- package/dist/format-diagnostics.js +53 -0
- package/dist/format-diagnostics.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/modules-resolver.d.ts +6 -0
- package/dist/modules-resolver.js +59 -0
- package/dist/modules-resolver.js.map +1 -0
- package/dist/process-based-tsserver.d.ts +150 -0
- package/dist/process-based-tsserver.js +262 -0
- package/dist/process-based-tsserver.js.map +1 -0
- package/dist/ts-server-client.d.ts +112 -0
- package/dist/ts-server-client.js +382 -0
- package/dist/ts-server-client.js.map +1 -0
- package/dist/tsp-command-types.d.ts +181 -0
- package/dist/tsp-command-types.js +193 -0
- package/dist/tsp-command-types.js.map +1 -0
- package/dist/utils.d.ts +9 -0
- package/dist/utils.js +33 -0
- package/dist/utils.js.map +1 -0
- package/format-diagnostics.ts +58 -0
- package/index.ts +2 -0
- package/modules-resolver.ts +36 -0
- package/package.json +43 -0
- package/process-based-tsserver.ts +373 -0
- package/ts-server-client.ts +362 -0
- package/tsp-command-types.ts +187 -0
- package/types/asset.d.ts +41 -0
- package/types/style.d.ts +42 -0
- package/utils.ts +28 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* copied over from https://github.com/typescript-language-server/typescript-language-server/blob/master/src/tsp-command-types.ts
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* copied over from typescript/lib/protocol.d.ts due to https://github.com/Microsoft/TypeScript/issues/18468
|
|
6
|
+
*/
|
|
7
|
+
/******************************************************************************
|
|
8
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
10
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
11
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
|
|
13
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
15
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
16
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
17
|
+
|
|
18
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
19
|
+
and limitations under the License.
|
|
20
|
+
***************************************************************************** */
|
|
21
|
+
export declare enum CommandTypes {
|
|
22
|
+
JsxClosingTag = "jsxClosingTag",
|
|
23
|
+
Brace = "brace",
|
|
24
|
+
BraceCompletion = "braceCompletion",
|
|
25
|
+
GetSpanOfEnclosingComment = "getSpanOfEnclosingComment",
|
|
26
|
+
Change = "change",
|
|
27
|
+
Close = "close",
|
|
28
|
+
CompletionInfo = "completionInfo",
|
|
29
|
+
CompletionDetails = "completionEntryDetails",
|
|
30
|
+
CompileOnSaveAffectedFileList = "compileOnSaveAffectedFileList",
|
|
31
|
+
CompileOnSaveEmitFile = "compileOnSaveEmitFile",
|
|
32
|
+
Configure = "configure",
|
|
33
|
+
Definition = "definition",
|
|
34
|
+
DefinitionAndBoundSpan = "definitionAndBoundSpan",
|
|
35
|
+
Implementation = "implementation",
|
|
36
|
+
Exit = "exit",
|
|
37
|
+
FileReferences = "fileReferences",
|
|
38
|
+
Format = "format",
|
|
39
|
+
Formatonkey = "formatonkey",
|
|
40
|
+
Geterr = "geterr",
|
|
41
|
+
GeterrForProject = "geterrForProject",
|
|
42
|
+
SemanticDiagnosticsSync = "semanticDiagnosticsSync",
|
|
43
|
+
SyntacticDiagnosticsSync = "syntacticDiagnosticsSync",
|
|
44
|
+
SuggestionDiagnosticsSync = "suggestionDiagnosticsSync",
|
|
45
|
+
NavBar = "navbar",
|
|
46
|
+
Navto = "navto",
|
|
47
|
+
NavTree = "navtree",
|
|
48
|
+
NavTreeFull = "navtree-full",
|
|
49
|
+
/** @deprecated */
|
|
50
|
+
Occurrences = "occurrences",
|
|
51
|
+
DocumentHighlights = "documentHighlights",
|
|
52
|
+
Open = "open",
|
|
53
|
+
Quickinfo = "quickinfo",
|
|
54
|
+
References = "references",
|
|
55
|
+
Reload = "reload",
|
|
56
|
+
Rename = "rename",
|
|
57
|
+
Saveto = "saveto",
|
|
58
|
+
SignatureHelp = "signatureHelp",
|
|
59
|
+
Status = "status",
|
|
60
|
+
TypeDefinition = "typeDefinition",
|
|
61
|
+
ProjectInfo = "projectInfo",
|
|
62
|
+
ReloadProjects = "reloadProjects",
|
|
63
|
+
Unknown = "unknown",
|
|
64
|
+
OpenExternalProject = "openExternalProject",
|
|
65
|
+
OpenExternalProjects = "openExternalProjects",
|
|
66
|
+
CloseExternalProject = "closeExternalProject",
|
|
67
|
+
UpdateOpen = "updateOpen",
|
|
68
|
+
GetOutliningSpans = "getOutliningSpans",
|
|
69
|
+
TodoComments = "todoComments",
|
|
70
|
+
Indentation = "indentation",
|
|
71
|
+
DocCommentTemplate = "docCommentTemplate",
|
|
72
|
+
CompilerOptionsForInferredProjects = "compilerOptionsForInferredProjects",
|
|
73
|
+
GetCodeFixes = "getCodeFixes",
|
|
74
|
+
GetCombinedCodeFix = "getCombinedCodeFix",
|
|
75
|
+
ApplyCodeActionCommand = "applyCodeActionCommand",
|
|
76
|
+
GetSupportedCodeFixes = "getSupportedCodeFixes",
|
|
77
|
+
GetApplicableRefactors = "getApplicableRefactors",
|
|
78
|
+
GetEditsForRefactor = "getEditsForRefactor",
|
|
79
|
+
OrganizeImports = "organizeImports",
|
|
80
|
+
GetEditsForFileRename = "getEditsForFileRename",
|
|
81
|
+
ConfigurePlugin = "configurePlugin",
|
|
82
|
+
SelectionRange = "selectionRange",
|
|
83
|
+
ToggleLineComment = "toggleLineComment",
|
|
84
|
+
ToggleMultilineComment = "toggleMultilineComment",
|
|
85
|
+
CommentSelection = "commentSelection",
|
|
86
|
+
UncommentSelection = "uncommentSelection",
|
|
87
|
+
PrepareCallHierarchy = "prepareCallHierarchy",
|
|
88
|
+
ProvideCallHierarchyIncomingCalls = "provideCallHierarchyIncomingCalls",
|
|
89
|
+
ProvideCallHierarchyOutgoingCalls = "provideCallHierarchyOutgoingCalls",
|
|
90
|
+
ProvideInlayHints = "provideInlayHints"
|
|
91
|
+
}
|
|
92
|
+
export declare enum EventName {
|
|
93
|
+
syntaxDiag = "syntaxDiag",
|
|
94
|
+
semanticDiag = "semanticDiag",
|
|
95
|
+
suggestionDiag = "suggestionDiag",
|
|
96
|
+
configFileDiag = "configFileDiag",
|
|
97
|
+
telemetry = "telemetry",
|
|
98
|
+
projectLanguageServiceState = "projectLanguageServiceState",
|
|
99
|
+
projectsUpdatedInBackground = "projectsUpdatedInBackground",
|
|
100
|
+
beginInstallTypes = "beginInstallTypes",
|
|
101
|
+
endInstallTypes = "endInstallTypes",
|
|
102
|
+
typesInstallerInitializationFailed = "typesInstallerInitializationFailed",
|
|
103
|
+
surveyReady = "surveyReady",
|
|
104
|
+
projectLoadingStart = "projectLoadingStart",
|
|
105
|
+
projectLoadingFinish = "projectLoadingFinish"
|
|
106
|
+
}
|
|
107
|
+
export declare enum ScriptElementKind {
|
|
108
|
+
unknown = "",
|
|
109
|
+
warning = "warning",
|
|
110
|
+
/** predefined type (void) or keyword (class) */
|
|
111
|
+
keyword = "keyword",
|
|
112
|
+
/** top level script node */
|
|
113
|
+
scriptElement = "script",
|
|
114
|
+
/** module foo {} */
|
|
115
|
+
moduleElement = "module",
|
|
116
|
+
/** class X {} */
|
|
117
|
+
classElement = "class",
|
|
118
|
+
/** var x = class X {} */
|
|
119
|
+
localClassElement = "local class",
|
|
120
|
+
/** interface Y {} */
|
|
121
|
+
interfaceElement = "interface",
|
|
122
|
+
/** type T = ... */
|
|
123
|
+
typeElement = "type",
|
|
124
|
+
/** enum E */
|
|
125
|
+
enumElement = "enum",
|
|
126
|
+
enumMemberElement = "enum member",
|
|
127
|
+
/**
|
|
128
|
+
* Inside module and script only
|
|
129
|
+
* const v = ..
|
|
130
|
+
*/
|
|
131
|
+
variableElement = "var",
|
|
132
|
+
/** Inside function */
|
|
133
|
+
localVariableElement = "local var",
|
|
134
|
+
/**
|
|
135
|
+
* Inside module and script only
|
|
136
|
+
* function f() { }
|
|
137
|
+
*/
|
|
138
|
+
functionElement = "function",
|
|
139
|
+
/** Inside function */
|
|
140
|
+
localFunctionElement = "local function",
|
|
141
|
+
/** class X { [public|private]* foo() {} } */
|
|
142
|
+
memberFunctionElement = "method",
|
|
143
|
+
/** class X { [public|private]* [get|set] foo:number; } */
|
|
144
|
+
memberGetAccessorElement = "getter",
|
|
145
|
+
memberSetAccessorElement = "setter",
|
|
146
|
+
/**
|
|
147
|
+
* class X { [public|private]* foo:number; }
|
|
148
|
+
* interface Y { foo:number; }
|
|
149
|
+
*/
|
|
150
|
+
memberVariableElement = "property",
|
|
151
|
+
/** class X { constructor() { } } */
|
|
152
|
+
constructorImplementationElement = "constructor",
|
|
153
|
+
/** interface Y { ():number; } */
|
|
154
|
+
callSignatureElement = "call",
|
|
155
|
+
/** interface Y { []:number; } */
|
|
156
|
+
indexSignatureElement = "index",
|
|
157
|
+
/** interface Y { new():Y; } */
|
|
158
|
+
constructSignatureElement = "construct",
|
|
159
|
+
/** function foo(*Y*: string) */
|
|
160
|
+
parameterElement = "parameter",
|
|
161
|
+
typeParameterElement = "type parameter",
|
|
162
|
+
primitiveType = "primitive type",
|
|
163
|
+
label = "label",
|
|
164
|
+
alias = "alias",
|
|
165
|
+
constElement = "const",
|
|
166
|
+
letElement = "let",
|
|
167
|
+
directory = "directory",
|
|
168
|
+
externalModuleName = "external module name",
|
|
169
|
+
/**
|
|
170
|
+
* <JsxTagName attribute1 attribute2={0} />
|
|
171
|
+
*/
|
|
172
|
+
jsxAttribute = "JSX attribute",
|
|
173
|
+
/** String literal */
|
|
174
|
+
string = "string",
|
|
175
|
+
/** Jsdoc @link: in `{@link C link text}`, the before and after text "{@link " and "}" */
|
|
176
|
+
link = "link",
|
|
177
|
+
/** Jsdoc @link: in `{@link C link text}`, the entity name "C" */
|
|
178
|
+
linkName = "link name",
|
|
179
|
+
/** Jsdoc @link: in `{@link C link text}`, the link text "link text" */
|
|
180
|
+
linkText = "link text"
|
|
181
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ScriptElementKind = exports.EventName = exports.CommandTypes = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* copied over from https://github.com/typescript-language-server/typescript-language-server/blob/master/src/tsp-command-types.ts
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* copied over from typescript/lib/protocol.d.ts due to https://github.com/Microsoft/TypeScript/issues/18468
|
|
12
|
+
*/
|
|
13
|
+
// eslint-disable-next-line spaced-comment
|
|
14
|
+
/******************************************************************************
|
|
15
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
16
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
17
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
18
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
19
|
+
|
|
20
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
21
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
22
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
23
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
24
|
+
|
|
25
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
26
|
+
and limitations under the License.
|
|
27
|
+
***************************************************************************** */
|
|
28
|
+
let CommandTypes = exports.CommandTypes = /*#__PURE__*/function (CommandTypes) {
|
|
29
|
+
CommandTypes["JsxClosingTag"] = "jsxClosingTag";
|
|
30
|
+
CommandTypes["Brace"] = "brace";
|
|
31
|
+
CommandTypes["BraceCompletion"] = "braceCompletion";
|
|
32
|
+
CommandTypes["GetSpanOfEnclosingComment"] = "getSpanOfEnclosingComment";
|
|
33
|
+
CommandTypes["Change"] = "change";
|
|
34
|
+
CommandTypes["Close"] = "close";
|
|
35
|
+
CommandTypes["CompletionInfo"] = "completionInfo";
|
|
36
|
+
CommandTypes["CompletionDetails"] = "completionEntryDetails";
|
|
37
|
+
CommandTypes["CompileOnSaveAffectedFileList"] = "compileOnSaveAffectedFileList";
|
|
38
|
+
CommandTypes["CompileOnSaveEmitFile"] = "compileOnSaveEmitFile";
|
|
39
|
+
CommandTypes["Configure"] = "configure";
|
|
40
|
+
CommandTypes["Definition"] = "definition";
|
|
41
|
+
CommandTypes["DefinitionAndBoundSpan"] = "definitionAndBoundSpan";
|
|
42
|
+
CommandTypes["Implementation"] = "implementation";
|
|
43
|
+
CommandTypes["Exit"] = "exit";
|
|
44
|
+
CommandTypes["FileReferences"] = "fileReferences";
|
|
45
|
+
CommandTypes["Format"] = "format";
|
|
46
|
+
CommandTypes["Formatonkey"] = "formatonkey";
|
|
47
|
+
CommandTypes["Geterr"] = "geterr";
|
|
48
|
+
CommandTypes["GeterrForProject"] = "geterrForProject";
|
|
49
|
+
CommandTypes["SemanticDiagnosticsSync"] = "semanticDiagnosticsSync";
|
|
50
|
+
CommandTypes["SyntacticDiagnosticsSync"] = "syntacticDiagnosticsSync";
|
|
51
|
+
CommandTypes["SuggestionDiagnosticsSync"] = "suggestionDiagnosticsSync";
|
|
52
|
+
CommandTypes["NavBar"] = "navbar";
|
|
53
|
+
CommandTypes["Navto"] = "navto";
|
|
54
|
+
CommandTypes["NavTree"] = "navtree";
|
|
55
|
+
CommandTypes["NavTreeFull"] = "navtree-full";
|
|
56
|
+
/** @deprecated */
|
|
57
|
+
CommandTypes["Occurrences"] = "occurrences";
|
|
58
|
+
CommandTypes["DocumentHighlights"] = "documentHighlights";
|
|
59
|
+
CommandTypes["Open"] = "open";
|
|
60
|
+
CommandTypes["Quickinfo"] = "quickinfo";
|
|
61
|
+
CommandTypes["References"] = "references";
|
|
62
|
+
CommandTypes["Reload"] = "reload";
|
|
63
|
+
CommandTypes["Rename"] = "rename";
|
|
64
|
+
CommandTypes["Saveto"] = "saveto";
|
|
65
|
+
CommandTypes["SignatureHelp"] = "signatureHelp";
|
|
66
|
+
CommandTypes["Status"] = "status";
|
|
67
|
+
CommandTypes["TypeDefinition"] = "typeDefinition";
|
|
68
|
+
CommandTypes["ProjectInfo"] = "projectInfo";
|
|
69
|
+
CommandTypes["ReloadProjects"] = "reloadProjects";
|
|
70
|
+
CommandTypes["Unknown"] = "unknown";
|
|
71
|
+
CommandTypes["OpenExternalProject"] = "openExternalProject";
|
|
72
|
+
CommandTypes["OpenExternalProjects"] = "openExternalProjects";
|
|
73
|
+
CommandTypes["CloseExternalProject"] = "closeExternalProject";
|
|
74
|
+
CommandTypes["UpdateOpen"] = "updateOpen";
|
|
75
|
+
CommandTypes["GetOutliningSpans"] = "getOutliningSpans";
|
|
76
|
+
CommandTypes["TodoComments"] = "todoComments";
|
|
77
|
+
CommandTypes["Indentation"] = "indentation";
|
|
78
|
+
CommandTypes["DocCommentTemplate"] = "docCommentTemplate";
|
|
79
|
+
CommandTypes["CompilerOptionsForInferredProjects"] = "compilerOptionsForInferredProjects";
|
|
80
|
+
CommandTypes["GetCodeFixes"] = "getCodeFixes";
|
|
81
|
+
CommandTypes["GetCombinedCodeFix"] = "getCombinedCodeFix";
|
|
82
|
+
CommandTypes["ApplyCodeActionCommand"] = "applyCodeActionCommand";
|
|
83
|
+
CommandTypes["GetSupportedCodeFixes"] = "getSupportedCodeFixes";
|
|
84
|
+
CommandTypes["GetApplicableRefactors"] = "getApplicableRefactors";
|
|
85
|
+
CommandTypes["GetEditsForRefactor"] = "getEditsForRefactor";
|
|
86
|
+
CommandTypes["OrganizeImports"] = "organizeImports";
|
|
87
|
+
CommandTypes["GetEditsForFileRename"] = "getEditsForFileRename";
|
|
88
|
+
CommandTypes["ConfigurePlugin"] = "configurePlugin";
|
|
89
|
+
CommandTypes["SelectionRange"] = "selectionRange";
|
|
90
|
+
CommandTypes["ToggleLineComment"] = "toggleLineComment";
|
|
91
|
+
CommandTypes["ToggleMultilineComment"] = "toggleMultilineComment";
|
|
92
|
+
CommandTypes["CommentSelection"] = "commentSelection";
|
|
93
|
+
CommandTypes["UncommentSelection"] = "uncommentSelection";
|
|
94
|
+
CommandTypes["PrepareCallHierarchy"] = "prepareCallHierarchy";
|
|
95
|
+
CommandTypes["ProvideCallHierarchyIncomingCalls"] = "provideCallHierarchyIncomingCalls";
|
|
96
|
+
CommandTypes["ProvideCallHierarchyOutgoingCalls"] = "provideCallHierarchyOutgoingCalls";
|
|
97
|
+
CommandTypes["ProvideInlayHints"] = "provideInlayHints";
|
|
98
|
+
return CommandTypes;
|
|
99
|
+
}({});
|
|
100
|
+
let EventName = exports.EventName = /*#__PURE__*/function (EventName) {
|
|
101
|
+
EventName["syntaxDiag"] = "syntaxDiag";
|
|
102
|
+
EventName["semanticDiag"] = "semanticDiag";
|
|
103
|
+
EventName["suggestionDiag"] = "suggestionDiag";
|
|
104
|
+
EventName["configFileDiag"] = "configFileDiag";
|
|
105
|
+
EventName["telemetry"] = "telemetry";
|
|
106
|
+
EventName["projectLanguageServiceState"] = "projectLanguageServiceState";
|
|
107
|
+
EventName["projectsUpdatedInBackground"] = "projectsUpdatedInBackground";
|
|
108
|
+
EventName["beginInstallTypes"] = "beginInstallTypes";
|
|
109
|
+
EventName["endInstallTypes"] = "endInstallTypes";
|
|
110
|
+
EventName["typesInstallerInitializationFailed"] = "typesInstallerInitializationFailed";
|
|
111
|
+
EventName["surveyReady"] = "surveyReady";
|
|
112
|
+
EventName["projectLoadingStart"] = "projectLoadingStart";
|
|
113
|
+
EventName["projectLoadingFinish"] = "projectLoadingFinish";
|
|
114
|
+
return EventName;
|
|
115
|
+
}({});
|
|
116
|
+
let ScriptElementKind = exports.ScriptElementKind = /*#__PURE__*/function (ScriptElementKind) {
|
|
117
|
+
ScriptElementKind["unknown"] = "";
|
|
118
|
+
ScriptElementKind["warning"] = "warning";
|
|
119
|
+
/** predefined type (void) or keyword (class) */
|
|
120
|
+
ScriptElementKind["keyword"] = "keyword";
|
|
121
|
+
/** top level script node */
|
|
122
|
+
ScriptElementKind["scriptElement"] = "script";
|
|
123
|
+
/** module foo {} */
|
|
124
|
+
ScriptElementKind["moduleElement"] = "module";
|
|
125
|
+
/** class X {} */
|
|
126
|
+
ScriptElementKind["classElement"] = "class";
|
|
127
|
+
/** var x = class X {} */
|
|
128
|
+
ScriptElementKind["localClassElement"] = "local class";
|
|
129
|
+
/** interface Y {} */
|
|
130
|
+
ScriptElementKind["interfaceElement"] = "interface";
|
|
131
|
+
/** type T = ... */
|
|
132
|
+
ScriptElementKind["typeElement"] = "type";
|
|
133
|
+
/** enum E */
|
|
134
|
+
ScriptElementKind["enumElement"] = "enum";
|
|
135
|
+
ScriptElementKind["enumMemberElement"] = "enum member";
|
|
136
|
+
/**
|
|
137
|
+
* Inside module and script only
|
|
138
|
+
* const v = ..
|
|
139
|
+
*/
|
|
140
|
+
ScriptElementKind["variableElement"] = "var";
|
|
141
|
+
/** Inside function */
|
|
142
|
+
ScriptElementKind["localVariableElement"] = "local var";
|
|
143
|
+
/**
|
|
144
|
+
* Inside module and script only
|
|
145
|
+
* function f() { }
|
|
146
|
+
*/
|
|
147
|
+
ScriptElementKind["functionElement"] = "function";
|
|
148
|
+
/** Inside function */
|
|
149
|
+
ScriptElementKind["localFunctionElement"] = "local function";
|
|
150
|
+
/** class X { [public|private]* foo() {} } */
|
|
151
|
+
ScriptElementKind["memberFunctionElement"] = "method";
|
|
152
|
+
/** class X { [public|private]* [get|set] foo:number; } */
|
|
153
|
+
ScriptElementKind["memberGetAccessorElement"] = "getter";
|
|
154
|
+
ScriptElementKind["memberSetAccessorElement"] = "setter";
|
|
155
|
+
/**
|
|
156
|
+
* class X { [public|private]* foo:number; }
|
|
157
|
+
* interface Y { foo:number; }
|
|
158
|
+
*/
|
|
159
|
+
ScriptElementKind["memberVariableElement"] = "property";
|
|
160
|
+
/** class X { constructor() { } } */
|
|
161
|
+
ScriptElementKind["constructorImplementationElement"] = "constructor";
|
|
162
|
+
/** interface Y { ():number; } */
|
|
163
|
+
ScriptElementKind["callSignatureElement"] = "call";
|
|
164
|
+
/** interface Y { []:number; } */
|
|
165
|
+
ScriptElementKind["indexSignatureElement"] = "index";
|
|
166
|
+
/** interface Y { new():Y; } */
|
|
167
|
+
ScriptElementKind["constructSignatureElement"] = "construct";
|
|
168
|
+
/** function foo(*Y*: string) */
|
|
169
|
+
ScriptElementKind["parameterElement"] = "parameter";
|
|
170
|
+
ScriptElementKind["typeParameterElement"] = "type parameter";
|
|
171
|
+
ScriptElementKind["primitiveType"] = "primitive type";
|
|
172
|
+
ScriptElementKind["label"] = "label";
|
|
173
|
+
ScriptElementKind["alias"] = "alias";
|
|
174
|
+
ScriptElementKind["constElement"] = "const";
|
|
175
|
+
ScriptElementKind["letElement"] = "let";
|
|
176
|
+
ScriptElementKind["directory"] = "directory";
|
|
177
|
+
ScriptElementKind["externalModuleName"] = "external module name";
|
|
178
|
+
/**
|
|
179
|
+
* <JsxTagName attribute1 attribute2={0} />
|
|
180
|
+
*/
|
|
181
|
+
ScriptElementKind["jsxAttribute"] = "JSX attribute";
|
|
182
|
+
/** String literal */
|
|
183
|
+
ScriptElementKind["string"] = "string";
|
|
184
|
+
/** Jsdoc @link: in `{@link C link text}`, the before and after text "{@link " and "}" */
|
|
185
|
+
ScriptElementKind["link"] = "link";
|
|
186
|
+
/** Jsdoc @link: in `{@link C link text}`, the entity name "C" */
|
|
187
|
+
ScriptElementKind["linkName"] = "link name";
|
|
188
|
+
/** Jsdoc @link: in `{@link C link text}`, the link text "link text" */
|
|
189
|
+
ScriptElementKind["linkText"] = "link text";
|
|
190
|
+
return ScriptElementKind;
|
|
191
|
+
}({});
|
|
192
|
+
|
|
193
|
+
//# sourceMappingURL=tsp-command-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["CommandTypes","exports","EventName","ScriptElementKind"],"sources":["tsp-command-types.ts"],"sourcesContent":["/**\n * copied over from https://github.com/typescript-language-server/typescript-language-server/blob/master/src/tsp-command-types.ts\n */\n\n/**\n * copied over from typescript/lib/protocol.d.ts due to https://github.com/Microsoft/TypeScript/issues/18468\n */\n\n// eslint-disable-next-line spaced-comment\n/******************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\nexport enum CommandTypes {\n JsxClosingTag = 'jsxClosingTag',\n Brace = 'brace',\n BraceCompletion = 'braceCompletion',\n GetSpanOfEnclosingComment = 'getSpanOfEnclosingComment',\n Change = 'change',\n Close = 'close',\n CompletionInfo = 'completionInfo',\n CompletionDetails = 'completionEntryDetails',\n CompileOnSaveAffectedFileList = 'compileOnSaveAffectedFileList',\n CompileOnSaveEmitFile = 'compileOnSaveEmitFile',\n Configure = 'configure',\n Definition = 'definition',\n DefinitionAndBoundSpan = 'definitionAndBoundSpan',\n Implementation = 'implementation',\n Exit = 'exit',\n FileReferences = 'fileReferences',\n Format = 'format',\n Formatonkey = 'formatonkey',\n Geterr = 'geterr',\n GeterrForProject = 'geterrForProject',\n SemanticDiagnosticsSync = 'semanticDiagnosticsSync',\n SyntacticDiagnosticsSync = 'syntacticDiagnosticsSync',\n SuggestionDiagnosticsSync = 'suggestionDiagnosticsSync',\n NavBar = 'navbar',\n Navto = 'navto',\n NavTree = 'navtree',\n NavTreeFull = 'navtree-full',\n /** @deprecated */\n Occurrences = 'occurrences',\n DocumentHighlights = 'documentHighlights',\n Open = 'open',\n Quickinfo = 'quickinfo',\n References = 'references',\n Reload = 'reload',\n Rename = 'rename',\n Saveto = 'saveto',\n SignatureHelp = 'signatureHelp',\n Status = 'status',\n TypeDefinition = 'typeDefinition',\n ProjectInfo = 'projectInfo',\n ReloadProjects = 'reloadProjects',\n Unknown = 'unknown',\n OpenExternalProject = 'openExternalProject',\n OpenExternalProjects = 'openExternalProjects',\n CloseExternalProject = 'closeExternalProject',\n UpdateOpen = 'updateOpen',\n GetOutliningSpans = 'getOutliningSpans',\n TodoComments = 'todoComments',\n Indentation = 'indentation',\n DocCommentTemplate = 'docCommentTemplate',\n CompilerOptionsForInferredProjects = 'compilerOptionsForInferredProjects',\n GetCodeFixes = 'getCodeFixes',\n GetCombinedCodeFix = 'getCombinedCodeFix',\n ApplyCodeActionCommand = 'applyCodeActionCommand',\n GetSupportedCodeFixes = 'getSupportedCodeFixes',\n GetApplicableRefactors = 'getApplicableRefactors',\n GetEditsForRefactor = 'getEditsForRefactor',\n OrganizeImports = 'organizeImports',\n GetEditsForFileRename = 'getEditsForFileRename',\n ConfigurePlugin = 'configurePlugin',\n SelectionRange = 'selectionRange',\n ToggleLineComment = 'toggleLineComment',\n ToggleMultilineComment = 'toggleMultilineComment',\n CommentSelection = 'commentSelection',\n UncommentSelection = 'uncommentSelection',\n PrepareCallHierarchy = 'prepareCallHierarchy',\n ProvideCallHierarchyIncomingCalls = 'provideCallHierarchyIncomingCalls',\n ProvideCallHierarchyOutgoingCalls = 'provideCallHierarchyOutgoingCalls',\n ProvideInlayHints = 'provideInlayHints',\n}\n\nexport enum EventName {\n syntaxDiag = 'syntaxDiag',\n semanticDiag = 'semanticDiag',\n suggestionDiag = 'suggestionDiag',\n configFileDiag = 'configFileDiag',\n telemetry = 'telemetry',\n projectLanguageServiceState = 'projectLanguageServiceState',\n projectsUpdatedInBackground = 'projectsUpdatedInBackground',\n beginInstallTypes = 'beginInstallTypes',\n endInstallTypes = 'endInstallTypes',\n typesInstallerInitializationFailed = 'typesInstallerInitializationFailed',\n surveyReady = 'surveyReady',\n projectLoadingStart = 'projectLoadingStart',\n projectLoadingFinish = 'projectLoadingFinish',\n}\n\nexport enum ScriptElementKind {\n unknown = '',\n warning = 'warning',\n /** predefined type (void) or keyword (class) */\n keyword = 'keyword',\n /** top level script node */\n scriptElement = 'script',\n /** module foo {} */\n moduleElement = 'module',\n /** class X {} */\n classElement = 'class',\n /** var x = class X {} */\n localClassElement = 'local class',\n /** interface Y {} */\n interfaceElement = 'interface',\n /** type T = ... */\n typeElement = 'type',\n /** enum E */\n enumElement = 'enum',\n enumMemberElement = 'enum member',\n /**\n * Inside module and script only\n * const v = ..\n */\n variableElement = 'var',\n /** Inside function */\n localVariableElement = 'local var',\n /**\n * Inside module and script only\n * function f() { }\n */\n functionElement = 'function',\n /** Inside function */\n localFunctionElement = 'local function',\n /** class X { [public|private]* foo() {} } */\n memberFunctionElement = 'method',\n /** class X { [public|private]* [get|set] foo:number; } */\n memberGetAccessorElement = 'getter',\n memberSetAccessorElement = 'setter',\n /**\n * class X { [public|private]* foo:number; }\n * interface Y { foo:number; }\n */\n memberVariableElement = 'property',\n /** class X { constructor() { } } */\n constructorImplementationElement = 'constructor',\n /** interface Y { ():number; } */\n callSignatureElement = 'call',\n /** interface Y { []:number; } */\n indexSignatureElement = 'index',\n /** interface Y { new():Y; } */\n constructSignatureElement = 'construct',\n /** function foo(*Y*: string) */\n parameterElement = 'parameter',\n typeParameterElement = 'type parameter',\n primitiveType = 'primitive type',\n label = 'label',\n alias = 'alias',\n constElement = 'const',\n letElement = 'let',\n directory = 'directory',\n externalModuleName = 'external module name',\n /**\n * <JsxTagName attribute1 attribute2={0} />\n */\n jsxAttribute = 'JSX attribute',\n /** String literal */\n string = 'string',\n /** Jsdoc @link: in `{@link C link text}`, the before and after text \"{@link \" and \"}\" */\n link = 'link',\n /** Jsdoc @link: in `{@link C link text}`, the entity name \"C\" */\n linkName = 'link name',\n /** Jsdoc @link: in `{@link C link text}`, the link text \"link text\" */\n linkText = 'link text',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAbA,IAeYA,YAAY,GAAAC,OAAA,CAAAD,YAAA,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EA4BtB;EA5BUA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAAA,IAwEZE,SAAS,GAAAD,OAAA,CAAAC,SAAA,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA;AAAA,IAgBTC,iBAAiB,GAAAF,OAAA,CAAAE,iBAAA,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAG3B;EAHUA,iBAAiB;EAK3B;EALUA,iBAAiB;EAO3B;EAPUA,iBAAiB;EAS3B;EATUA,iBAAiB;EAW3B;EAXUA,iBAAiB;EAa3B;EAbUA,iBAAiB;EAe3B;EAfUA,iBAAiB;EAiB3B;EAjBUA,iBAAiB;EAAjBA,iBAAiB;EAoB3B;AACF;AACA;AACA;EAvBYA,iBAAiB;EAyB3B;EAzBUA,iBAAiB;EA2B3B;AACF;AACA;AACA;EA9BYA,iBAAiB;EAgC3B;EAhCUA,iBAAiB;EAkC3B;EAlCUA,iBAAiB;EAoC3B;EApCUA,iBAAiB;EAAjBA,iBAAiB;EAuC3B;AACF;AACA;AACA;EA1CYA,iBAAiB;EA4C3B;EA5CUA,iBAAiB;EA8C3B;EA9CUA,iBAAiB;EAgD3B;EAhDUA,iBAAiB;EAkD3B;EAlDUA,iBAAiB;EAoD3B;EApDUA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EA8D3B;AACF;AACA;EAhEYA,iBAAiB;EAkE3B;EAlEUA,iBAAiB;EAoE3B;EApEUA,iBAAiB;EAsE3B;EAtEUA,iBAAiB;EAwE3B;EAxEUA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA","ignoreList":[]}
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* copied over from https://github.com/typescript-language-server/typescript-language-server/blob/master/src/utils.ts
|
|
3
|
+
*/
|
|
4
|
+
export declare class Deferred<T> {
|
|
5
|
+
resolve: (value: T) => void;
|
|
6
|
+
reject: (err?: unknown) => void;
|
|
7
|
+
promise: Promise<T>;
|
|
8
|
+
}
|
|
9
|
+
export declare function getTsserverExecutable(): string;
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Deferred = void 0;
|
|
7
|
+
exports.getTsserverExecutable = getTsserverExecutable;
|
|
8
|
+
/**
|
|
9
|
+
* copied over from https://github.com/typescript-language-server/typescript-language-server/blob/master/src/utils.ts
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* Copyright (C) 2017, 2018 TypeFox and others.
|
|
14
|
+
*
|
|
15
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
|
|
16
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
class Deferred {
|
|
20
|
+
promise = new Promise((resolve, reject) => {
|
|
21
|
+
this.resolve = resolve;
|
|
22
|
+
this.reject = reject;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
exports.Deferred = Deferred;
|
|
26
|
+
function getTsserverExecutable() {
|
|
27
|
+
return isWindows() ? 'tsserver.cmd' : 'tsserver';
|
|
28
|
+
}
|
|
29
|
+
function isWindows() {
|
|
30
|
+
return process.platform.startsWith('win');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Deferred","promise","Promise","resolve","reject","exports","getTsserverExecutable","isWindows","process","platform","startsWith"],"sources":["utils.ts"],"sourcesContent":["/**\n * copied over from https://github.com/typescript-language-server/typescript-language-server/blob/master/src/utils.ts\n */\n\n/*\n * Copyright (C) 2017, 2018 TypeFox and others.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0\n */\n\nexport class Deferred<T> {\n resolve: (value: T) => void;\n reject: (err?: unknown) => void;\n\n promise = new Promise<T>((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n });\n}\n\nexport function getTsserverExecutable(): string {\n return isWindows() ? 'tsserver.cmd' : 'tsserver';\n}\n\nfunction isWindows(): boolean {\n return process.platform.startsWith('win');\n}\n"],"mappings":";;;;;;;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,QAAQ,CAAI;EAIvBC,OAAO,GAAG,IAAIC,OAAO,CAAI,CAACC,OAAO,EAAEC,MAAM,KAAK;IAC5C,IAAI,CAACD,OAAO,GAAGA,OAAO;IACtB,IAAI,CAACC,MAAM,GAAGA,MAAM;EACtB,CAAC,CAAC;AACJ;AAACC,OAAA,CAAAL,QAAA,GAAAA,QAAA;AAEM,SAASM,qBAAqBA,CAAA,EAAW;EAC9C,OAAOC,SAAS,CAAC,CAAC,GAAG,cAAc,GAAG,UAAU;AAClD;AAEA,SAASA,SAASA,CAAA,EAAY;EAC5B,OAAOC,OAAO,CAACC,QAAQ,CAACC,UAAU,CAAC,KAAK,CAAC;AAC3C","ignoreList":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { DiagnosticMessageChain, server } from 'typescript';
|
|
2
|
+
|
|
3
|
+
export type Diagnostic = server.protocol.Diagnostic;
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* mostly taken from ts repo, src/compiler/program.ts "formatDiagnosticsWithColorAndContext" method.
|
|
7
|
+
* sadly, it's impossible to use that method for the diagnostic format coming from ts-server. it only
|
|
8
|
+
* works with the diagnostic format of "ts" APIs.
|
|
9
|
+
*/
|
|
10
|
+
export function formatDiagnostics(diagnostics: readonly Diagnostic[], filePath: string): string {
|
|
11
|
+
let output = '';
|
|
12
|
+
|
|
13
|
+
for (const diagnostic of diagnostics) {
|
|
14
|
+
output += formatDiagnostic(diagnostic, filePath);
|
|
15
|
+
}
|
|
16
|
+
return output;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const diagnosticCategoryName = (diagnostic: Diagnostic) => diagnostic.category;
|
|
20
|
+
|
|
21
|
+
export function formatDiagnostic(diagnostic: Diagnostic, filePath: string): string {
|
|
22
|
+
const errorMessage = `${diagnosticCategoryName(diagnostic)} TS${diagnostic.code}: ${flattenDiagnosticMessageText(
|
|
23
|
+
diagnostic.text,
|
|
24
|
+
'\n'
|
|
25
|
+
)}${'\n'}`;
|
|
26
|
+
|
|
27
|
+
const { line, offset } = diagnostic.start;
|
|
28
|
+
return `${filePath}(${line},${offset}): ${errorMessage}`;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function flattenDiagnosticMessageText(
|
|
32
|
+
diag: string | DiagnosticMessageChain | undefined,
|
|
33
|
+
newLine: string,
|
|
34
|
+
indent = 0
|
|
35
|
+
): string {
|
|
36
|
+
if (typeof diag === 'string') {
|
|
37
|
+
return diag;
|
|
38
|
+
}
|
|
39
|
+
if (diag === undefined) {
|
|
40
|
+
return '';
|
|
41
|
+
}
|
|
42
|
+
let result = '';
|
|
43
|
+
if (indent) {
|
|
44
|
+
result += newLine;
|
|
45
|
+
|
|
46
|
+
for (let i = 0; i < indent; i += 1) {
|
|
47
|
+
result += ' ';
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
result += diag.messageText;
|
|
51
|
+
indent += 1;
|
|
52
|
+
if (diag.next) {
|
|
53
|
+
for (const kid of diag.next) {
|
|
54
|
+
result += flattenDiagnosticMessageText(kid, newLine, indent);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return result;
|
|
58
|
+
}
|
package/index.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* copied over from https://github.com/typescript-language-server/typescript-language-server/blob/master/src/modules-resolver.ts
|
|
3
|
+
* modified to accommodate Bit needs
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Copyright (C) 2017, 2018 TypeFox and others.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*/
|
|
12
|
+
import * as fs from 'fs';
|
|
13
|
+
import * as path from 'path';
|
|
14
|
+
|
|
15
|
+
export function findPathToModule(dir: string, moduleName: string): string | undefined {
|
|
16
|
+
try {
|
|
17
|
+
return require.resolve(moduleName, { paths: [dir] });
|
|
18
|
+
} catch {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function findPathToYarnSdk(dir: string, moduleName: string): string | undefined {
|
|
24
|
+
const stat = fs.statSync(dir);
|
|
25
|
+
if (stat.isDirectory()) {
|
|
26
|
+
const candidate = path.resolve(dir, '.yarn', 'sdks', moduleName);
|
|
27
|
+
if (fs.existsSync(candidate)) {
|
|
28
|
+
return candidate;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const parent = path.resolve(dir, '..');
|
|
32
|
+
if (parent !== dir) {
|
|
33
|
+
return findPathToYarnSdk(parent, moduleName);
|
|
34
|
+
}
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@teambit/ts-server",
|
|
3
|
+
"version": "0.0.0-b5e3d30a4fe58fedfeafa7448ff4bad8debf4e32",
|
|
4
|
+
"homepage": "https://bit.cloud/teambit/typescript/ts-server",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"componentId": {
|
|
7
|
+
"scope": "teambit.typescript",
|
|
8
|
+
"name": "ts-server",
|
|
9
|
+
"version": "b5e3d30a4fe58fedfeafa7448ff4bad8debf4e32"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"typescript": "5.5.3",
|
|
13
|
+
"tempy": "1.0.1",
|
|
14
|
+
"vscode-jsonrpc": "6.0.0",
|
|
15
|
+
"command-exists": "1.2.9",
|
|
16
|
+
"fs-extra": "10.0.0",
|
|
17
|
+
"vscode-languageserver-types": "3.16.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@types/fs-extra": "9.0.7",
|
|
21
|
+
"@types/mocha": "10.0.1",
|
|
22
|
+
"chai": "4.3.0",
|
|
23
|
+
"@teambit/node.envs.node-babel-mocha": "0.1.5"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {},
|
|
26
|
+
"license": "Apache-2.0",
|
|
27
|
+
"optionalDependencies": {},
|
|
28
|
+
"peerDependenciesMeta": {},
|
|
29
|
+
"private": false,
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=16.0.0"
|
|
32
|
+
},
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "https://github.com/teambit/bit"
|
|
36
|
+
},
|
|
37
|
+
"keywords": [
|
|
38
|
+
"bit",
|
|
39
|
+
"components",
|
|
40
|
+
"collaboration",
|
|
41
|
+
"web"
|
|
42
|
+
]
|
|
43
|
+
}
|