@volar/language-server 1.2.0-alpha.2 → 1.2.0-alpha.4
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
|
@@ -14,7 +14,7 @@ export interface ProjectContext {
|
|
|
14
14
|
}
|
|
15
15
|
export type Project = ReturnType<typeof createProject>;
|
|
16
16
|
export declare function createProject(context: ProjectContext): Promise<{
|
|
17
|
-
tsConfig:
|
|
17
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
18
18
|
scripts: {
|
|
19
19
|
clear: () => void;
|
|
20
20
|
values: () => IterableIterator<{
|
package/out/common/project.js
CHANGED
|
@@ -62,12 +62,12 @@ function createProject(context) {
|
|
|
62
62
|
dispose,
|
|
63
63
|
};
|
|
64
64
|
function getLanguageService() {
|
|
65
|
-
var _a, _b, _c, _d
|
|
65
|
+
var _a, _b, _c, _d;
|
|
66
66
|
if (!languageService) {
|
|
67
67
|
const config = {
|
|
68
|
-
languages: Object.assign({}, (
|
|
69
|
-
plugins: Object.assign({}, (
|
|
70
|
-
rules: Object.assign({}, (
|
|
68
|
+
languages: Object.assign({}, (_a = context.serverConfig) === null || _a === void 0 ? void 0 : _a.languages),
|
|
69
|
+
plugins: Object.assign({}, (_b = context.serverConfig) === null || _b === void 0 ? void 0 : _b.plugins),
|
|
70
|
+
rules: Object.assign({}, (_c = context.serverConfig) === null || _c === void 0 ? void 0 : _c.rules),
|
|
71
71
|
};
|
|
72
72
|
const env = {
|
|
73
73
|
rootUri: context.rootUri,
|
|
@@ -90,7 +90,7 @@ function createProject(context) {
|
|
|
90
90
|
host: languageServiceHost,
|
|
91
91
|
};
|
|
92
92
|
for (const plugin of context.workspace.workspaces.plugins) {
|
|
93
|
-
(
|
|
93
|
+
(_d = plugin.resolveConfig) === null || _d === void 0 ? void 0 : _d.call(plugin, config, lsCtx);
|
|
94
94
|
}
|
|
95
95
|
languageService = embeddedLS.createLanguageService(languageServiceHost, config, env, context.documentRegistry);
|
|
96
96
|
}
|
|
@@ -12,7 +12,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
12
12
|
projects: {
|
|
13
13
|
clear: () => void;
|
|
14
14
|
values: () => IterableIterator<Promise<{
|
|
15
|
-
tsConfig:
|
|
15
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
16
16
|
scripts: {
|
|
17
17
|
clear: () => void;
|
|
18
18
|
values: () => IterableIterator<{
|
|
@@ -162,7 +162,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
162
162
|
}>>;
|
|
163
163
|
uriDelete: (_uri: string) => boolean;
|
|
164
164
|
uriGet: (_uri: string) => Promise<{
|
|
165
|
-
tsConfig:
|
|
165
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
166
166
|
scripts: {
|
|
167
167
|
clear: () => void;
|
|
168
168
|
values: () => IterableIterator<{
|
|
@@ -312,7 +312,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
312
312
|
}> | undefined;
|
|
313
313
|
uriHas: (_uri: string) => boolean;
|
|
314
314
|
uriSet: (_uri: string, item: Promise<{
|
|
315
|
-
tsConfig:
|
|
315
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
316
316
|
scripts: {
|
|
317
317
|
clear: () => void;
|
|
318
318
|
values: () => IterableIterator<{
|
|
@@ -462,7 +462,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
462
462
|
}>) => void;
|
|
463
463
|
pathDelete: (path: string) => boolean;
|
|
464
464
|
pathGet: (path: string) => Promise<{
|
|
465
|
-
tsConfig:
|
|
465
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
466
466
|
scripts: {
|
|
467
467
|
clear: () => void;
|
|
468
468
|
values: () => IterableIterator<{
|
|
@@ -611,7 +611,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
611
611
|
dispose: () => void;
|
|
612
612
|
}> | undefined;
|
|
613
613
|
pathHas: (path: string) => Promise<{
|
|
614
|
-
tsConfig:
|
|
614
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
615
615
|
scripts: {
|
|
616
616
|
clear: () => void;
|
|
617
617
|
values: () => IterableIterator<{
|
|
@@ -760,7 +760,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
760
760
|
dispose: () => void;
|
|
761
761
|
}> | undefined;
|
|
762
762
|
pathSet: (path: string, item: Promise<{
|
|
763
|
-
tsConfig:
|
|
763
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
764
764
|
scripts: {
|
|
765
765
|
clear: () => void;
|
|
766
766
|
values: () => IterableIterator<{
|
|
@@ -913,7 +913,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
913
913
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
914
914
|
tsconfig: string;
|
|
915
915
|
project: {
|
|
916
|
-
tsConfig:
|
|
916
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
917
917
|
scripts: {
|
|
918
918
|
clear: () => void;
|
|
919
919
|
values: () => IterableIterator<{
|
|
@@ -1063,7 +1063,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1063
1063
|
} | undefined;
|
|
1064
1064
|
} | undefined>;
|
|
1065
1065
|
getInferredProject: () => Promise<{
|
|
1066
|
-
tsConfig:
|
|
1066
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1067
1067
|
scripts: {
|
|
1068
1068
|
clear: () => void;
|
|
1069
1069
|
values: () => IterableIterator<{
|
|
@@ -1212,7 +1212,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1212
1212
|
dispose: () => void;
|
|
1213
1213
|
}>;
|
|
1214
1214
|
getInferredProjectDontCreate: () => Promise<{
|
|
1215
|
-
tsConfig:
|
|
1215
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1216
1216
|
scripts: {
|
|
1217
1217
|
clear: () => void;
|
|
1218
1218
|
values: () => IterableIterator<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="
|
|
1
|
+
/// <reference types="typesafe-path" />
|
|
2
2
|
import { ConfigurationHost } from '@volar/language-service';
|
|
3
3
|
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
4
4
|
import * as vscode from 'vscode-languageserver';
|
|
@@ -26,7 +26,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
26
26
|
projects: {
|
|
27
27
|
clear: () => void;
|
|
28
28
|
values: () => IterableIterator<Promise<{
|
|
29
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
29
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
30
30
|
scripts: {
|
|
31
31
|
clear: () => void;
|
|
32
32
|
values: () => IterableIterator<{
|
|
@@ -176,7 +176,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
176
176
|
}>>;
|
|
177
177
|
uriDelete: (_uri: string) => boolean;
|
|
178
178
|
uriGet: (_uri: string) => Promise<{
|
|
179
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
179
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
180
180
|
scripts: {
|
|
181
181
|
clear: () => void;
|
|
182
182
|
values: () => IterableIterator<{
|
|
@@ -326,7 +326,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
326
326
|
}> | undefined;
|
|
327
327
|
uriHas: (_uri: string) => boolean;
|
|
328
328
|
uriSet: (_uri: string, item: Promise<{
|
|
329
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
329
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
330
330
|
scripts: {
|
|
331
331
|
clear: () => void;
|
|
332
332
|
values: () => IterableIterator<{
|
|
@@ -476,7 +476,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
476
476
|
}>) => void;
|
|
477
477
|
pathDelete: (path: string) => boolean;
|
|
478
478
|
pathGet: (path: string) => Promise<{
|
|
479
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
479
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
480
480
|
scripts: {
|
|
481
481
|
clear: () => void;
|
|
482
482
|
values: () => IterableIterator<{
|
|
@@ -625,7 +625,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
625
625
|
dispose: () => void;
|
|
626
626
|
}> | undefined;
|
|
627
627
|
pathHas: (path: string) => Promise<{
|
|
628
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
628
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
629
629
|
scripts: {
|
|
630
630
|
clear: () => void;
|
|
631
631
|
values: () => IterableIterator<{
|
|
@@ -774,7 +774,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
774
774
|
dispose: () => void;
|
|
775
775
|
}> | undefined;
|
|
776
776
|
pathSet: (path: string, item: Promise<{
|
|
777
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
777
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
778
778
|
scripts: {
|
|
779
779
|
clear: () => void;
|
|
780
780
|
values: () => IterableIterator<{
|
|
@@ -927,7 +927,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
927
927
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
928
928
|
tsconfig: string;
|
|
929
929
|
project: {
|
|
930
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
930
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
931
931
|
scripts: {
|
|
932
932
|
clear: () => void;
|
|
933
933
|
values: () => IterableIterator<{
|
|
@@ -1077,7 +1077,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1077
1077
|
} | undefined;
|
|
1078
1078
|
} | undefined>;
|
|
1079
1079
|
getInferredProject: () => Promise<{
|
|
1080
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
1080
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
1081
1081
|
scripts: {
|
|
1082
1082
|
clear: () => void;
|
|
1083
1083
|
values: () => IterableIterator<{
|
|
@@ -1226,7 +1226,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1226
1226
|
dispose: () => void;
|
|
1227
1227
|
}>;
|
|
1228
1228
|
getInferredProjectDontCreate: () => Promise<{
|
|
1229
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
1229
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
1230
1230
|
scripts: {
|
|
1231
1231
|
clear: () => void;
|
|
1232
1232
|
values: () => IterableIterator<{
|
|
@@ -1380,7 +1380,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1380
1380
|
getProject: (uri: string) => Promise<{
|
|
1381
1381
|
tsconfig: string;
|
|
1382
1382
|
project: {
|
|
1383
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
1383
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
1384
1384
|
scripts: {
|
|
1385
1385
|
clear: () => void;
|
|
1386
1386
|
values: () => IterableIterator<{
|
|
@@ -1531,7 +1531,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1531
1531
|
} | {
|
|
1532
1532
|
tsconfig: undefined;
|
|
1533
1533
|
project: {
|
|
1534
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
1534
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
1535
1535
|
scripts: {
|
|
1536
1536
|
clear: () => void;
|
|
1537
1537
|
values: () => IterableIterator<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.4",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"directory": "packages/language-server"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@volar/language-core": "1.2.0-alpha.
|
|
21
|
-
"@volar/language-service": "1.2.0-alpha.
|
|
22
|
-
"@volar/shared": "1.2.0-alpha.
|
|
20
|
+
"@volar/language-core": "1.2.0-alpha.4",
|
|
21
|
+
"@volar/language-service": "1.2.0-alpha.4",
|
|
22
|
+
"@volar/shared": "1.2.0-alpha.4",
|
|
23
23
|
"@vscode/l10n": "^0.0.10",
|
|
24
24
|
"request-light": "^0.6.0",
|
|
25
25
|
"typesafe-path": "^0.2.2",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
30
30
|
"vscode-uri": "^3.0.7"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "cce402aa84061635c951e27c4423408d0b56e46d"
|
|
33
33
|
}
|