@volar/language-server 1.4.0-alpha.8 → 1.4.0-alpha.9
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/out/common/project.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface ProjectContext {
|
|
|
12
12
|
}
|
|
13
13
|
export type Project = ReturnType<typeof createProject>;
|
|
14
14
|
export declare function createProject(context: ProjectContext): Promise<{
|
|
15
|
-
tsConfig:
|
|
15
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
16
16
|
scripts: {
|
|
17
17
|
clear: () => void;
|
|
18
18
|
values: () => IterableIterator<{
|
package/out/common/project.js
CHANGED
|
@@ -57,11 +57,9 @@ async function createProject(context) {
|
|
|
57
57
|
if (!languageService) {
|
|
58
58
|
let config = (context.workspace.rootUri.scheme === 'file' ? (0, serverConfig_1.loadConfig)(context.workspace.rootUri.path, context.workspace.workspaces.initOptions.configFilePath) : {}) ?? {};
|
|
59
59
|
const options = {
|
|
60
|
+
modules: { typescript: context.workspace.workspaces.ts },
|
|
60
61
|
uriToFileName,
|
|
61
62
|
fileNameToUri,
|
|
62
|
-
getOpenedTextDocumentLanguageId: uri => {
|
|
63
|
-
return context.workspace.workspaces.documents.data.uriGet(uri)?.languageId;
|
|
64
|
-
},
|
|
65
63
|
locale: context.workspace.workspaces.initParams.locale,
|
|
66
64
|
rootUri: context.rootUri,
|
|
67
65
|
capabilities: context.workspace.workspaces.initParams.capabilities,
|
|
@@ -170,9 +168,6 @@ async function createProject(context) {
|
|
|
170
168
|
getCompilationSettings: () => parsedCommandLine.options,
|
|
171
169
|
getScriptVersion,
|
|
172
170
|
getScriptSnapshot,
|
|
173
|
-
getTypeScriptModule: context.workspace.workspaces.ts ? () => {
|
|
174
|
-
return context.workspace.workspaces.ts;
|
|
175
|
-
} : undefined,
|
|
176
171
|
getScriptLanguageId: (fileName) => {
|
|
177
172
|
return context.workspace.workspaces.documents.data.pathGet(fileName)?.languageId;
|
|
178
173
|
},
|
|
@@ -13,7 +13,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
13
13
|
projects: {
|
|
14
14
|
clear: () => void;
|
|
15
15
|
values: () => IterableIterator<Promise<{
|
|
16
|
-
tsConfig:
|
|
16
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
17
17
|
scripts: {
|
|
18
18
|
clear: () => void;
|
|
19
19
|
values: () => IterableIterator<{
|
|
@@ -155,7 +155,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
155
155
|
}>>;
|
|
156
156
|
uriDelete: (_uri: string) => boolean;
|
|
157
157
|
uriGet: (_uri: string) => Promise<{
|
|
158
|
-
tsConfig:
|
|
158
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
159
159
|
scripts: {
|
|
160
160
|
clear: () => void;
|
|
161
161
|
values: () => IterableIterator<{
|
|
@@ -297,7 +297,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
297
297
|
}> | undefined;
|
|
298
298
|
uriHas: (_uri: string) => boolean;
|
|
299
299
|
uriSet: (_uri: string, item: Promise<{
|
|
300
|
-
tsConfig:
|
|
300
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
301
301
|
scripts: {
|
|
302
302
|
clear: () => void;
|
|
303
303
|
values: () => IterableIterator<{
|
|
@@ -439,7 +439,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
439
439
|
}>) => void;
|
|
440
440
|
pathDelete: (path: string) => boolean;
|
|
441
441
|
pathGet: (path: string) => Promise<{
|
|
442
|
-
tsConfig:
|
|
442
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
443
443
|
scripts: {
|
|
444
444
|
clear: () => void;
|
|
445
445
|
values: () => IterableIterator<{
|
|
@@ -580,7 +580,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
580
580
|
dispose: () => void;
|
|
581
581
|
}> | undefined;
|
|
582
582
|
pathHas: (path: string) => Promise<{
|
|
583
|
-
tsConfig:
|
|
583
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
584
584
|
scripts: {
|
|
585
585
|
clear: () => void;
|
|
586
586
|
values: () => IterableIterator<{
|
|
@@ -721,7 +721,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
721
721
|
dispose: () => void;
|
|
722
722
|
}> | undefined;
|
|
723
723
|
pathSet: (path: string, item: Promise<{
|
|
724
|
-
tsConfig:
|
|
724
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
725
725
|
scripts: {
|
|
726
726
|
clear: () => void;
|
|
727
727
|
values: () => IterableIterator<{
|
|
@@ -866,7 +866,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
866
866
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
867
867
|
tsconfig: string;
|
|
868
868
|
project: {
|
|
869
|
-
tsConfig:
|
|
869
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
870
870
|
scripts: {
|
|
871
871
|
clear: () => void;
|
|
872
872
|
values: () => IterableIterator<{
|
|
@@ -1008,7 +1008,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1008
1008
|
} | undefined;
|
|
1009
1009
|
} | undefined>;
|
|
1010
1010
|
getInferredProject: () => Promise<{
|
|
1011
|
-
tsConfig:
|
|
1011
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
1012
1012
|
scripts: {
|
|
1013
1013
|
clear: () => void;
|
|
1014
1014
|
values: () => IterableIterator<{
|
|
@@ -1149,7 +1149,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1149
1149
|
dispose: () => void;
|
|
1150
1150
|
}>;
|
|
1151
1151
|
getInferredProjectDontCreate: () => Promise<{
|
|
1152
|
-
tsConfig:
|
|
1152
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
1153
1153
|
scripts: {
|
|
1154
1154
|
clear: () => void;
|
|
1155
1155
|
values: () => IterableIterator<{
|
|
@@ -26,7 +26,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
26
26
|
projects: {
|
|
27
27
|
clear: () => void;
|
|
28
28
|
values: () => IterableIterator<Promise<{
|
|
29
|
-
tsConfig:
|
|
29
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
30
30
|
scripts: {
|
|
31
31
|
clear: () => void;
|
|
32
32
|
values: () => IterableIterator<{
|
|
@@ -168,7 +168,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
168
168
|
}>>;
|
|
169
169
|
uriDelete: (_uri: string) => boolean;
|
|
170
170
|
uriGet: (_uri: string) => Promise<{
|
|
171
|
-
tsConfig:
|
|
171
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
172
172
|
scripts: {
|
|
173
173
|
clear: () => void;
|
|
174
174
|
values: () => IterableIterator<{
|
|
@@ -310,7 +310,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
310
310
|
}> | undefined;
|
|
311
311
|
uriHas: (_uri: string) => boolean;
|
|
312
312
|
uriSet: (_uri: string, item: Promise<{
|
|
313
|
-
tsConfig:
|
|
313
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
314
314
|
scripts: {
|
|
315
315
|
clear: () => void;
|
|
316
316
|
values: () => IterableIterator<{
|
|
@@ -452,7 +452,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
452
452
|
}>) => void;
|
|
453
453
|
pathDelete: (path: string) => boolean;
|
|
454
454
|
pathGet: (path: string) => Promise<{
|
|
455
|
-
tsConfig:
|
|
455
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
456
456
|
scripts: {
|
|
457
457
|
clear: () => void;
|
|
458
458
|
values: () => IterableIterator<{
|
|
@@ -593,7 +593,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
593
593
|
dispose: () => void;
|
|
594
594
|
}> | undefined;
|
|
595
595
|
pathHas: (path: string) => Promise<{
|
|
596
|
-
tsConfig:
|
|
596
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
597
597
|
scripts: {
|
|
598
598
|
clear: () => void;
|
|
599
599
|
values: () => IterableIterator<{
|
|
@@ -734,7 +734,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
734
734
|
dispose: () => void;
|
|
735
735
|
}> | undefined;
|
|
736
736
|
pathSet: (path: string, item: Promise<{
|
|
737
|
-
tsConfig:
|
|
737
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
738
738
|
scripts: {
|
|
739
739
|
clear: () => void;
|
|
740
740
|
values: () => IterableIterator<{
|
|
@@ -879,7 +879,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
879
879
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
880
880
|
tsconfig: string;
|
|
881
881
|
project: {
|
|
882
|
-
tsConfig:
|
|
882
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
883
883
|
scripts: {
|
|
884
884
|
clear: () => void;
|
|
885
885
|
values: () => IterableIterator<{
|
|
@@ -1021,7 +1021,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1021
1021
|
} | undefined;
|
|
1022
1022
|
} | undefined>;
|
|
1023
1023
|
getInferredProject: () => Promise<{
|
|
1024
|
-
tsConfig:
|
|
1024
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1025
1025
|
scripts: {
|
|
1026
1026
|
clear: () => void;
|
|
1027
1027
|
values: () => IterableIterator<{
|
|
@@ -1162,7 +1162,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1162
1162
|
dispose: () => void;
|
|
1163
1163
|
}>;
|
|
1164
1164
|
getInferredProjectDontCreate: () => Promise<{
|
|
1165
|
-
tsConfig:
|
|
1165
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1166
1166
|
scripts: {
|
|
1167
1167
|
clear: () => void;
|
|
1168
1168
|
values: () => IterableIterator<{
|
|
@@ -1308,7 +1308,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1308
1308
|
getProject: (uri: string) => Promise<{
|
|
1309
1309
|
tsconfig: string;
|
|
1310
1310
|
project: {
|
|
1311
|
-
tsConfig:
|
|
1311
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1312
1312
|
scripts: {
|
|
1313
1313
|
clear: () => void;
|
|
1314
1314
|
values: () => IterableIterator<{
|
|
@@ -1451,7 +1451,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1451
1451
|
} | {
|
|
1452
1452
|
tsconfig: undefined;
|
|
1453
1453
|
project: {
|
|
1454
|
-
tsConfig:
|
|
1454
|
+
tsConfig: path.PosixPath | ts.CompilerOptions;
|
|
1455
1455
|
scripts: {
|
|
1456
1456
|
clear: () => void;
|
|
1457
1457
|
values: () => IterableIterator<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "1.4.0-alpha.
|
|
3
|
+
"version": "1.4.0-alpha.9",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"directory": "packages/language-server"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@volar/language-core": "1.4.0-alpha.
|
|
21
|
-
"@volar/language-service": "1.4.0-alpha.
|
|
20
|
+
"@volar/language-core": "1.4.0-alpha.9",
|
|
21
|
+
"@volar/language-service": "1.4.0-alpha.9",
|
|
22
22
|
"@vscode/l10n": "^0.0.11",
|
|
23
23
|
"request-light": "^0.7.0",
|
|
24
24
|
"typesafe-path": "^0.2.2",
|
|
@@ -27,5 +27,6 @@
|
|
|
27
27
|
"vscode-languageserver-protocol": "^3.17.3",
|
|
28
28
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
29
29
|
"vscode-uri": "^3.0.7"
|
|
30
|
-
}
|
|
30
|
+
},
|
|
31
|
+
"gitHead": "d3993bafc6a8fac5ab34cee2ab5d682a5b405831"
|
|
31
32
|
}
|