@volar/language-server 1.7.0 → 1.7.1
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/features/customFeatures.js +14 -14
- package/out/common/project.d.ts +7 -25
- package/out/common/project.js +4 -18
- package/out/common/workspace.d.ts +63 -225
- package/out/common/workspaces.d.ts +77 -275
- package/out/protocol.js +12 -12
- package/out/types.js +2 -2
- package/package.json +6 -6
|
@@ -79,21 +79,21 @@ function register(connection, workspaces, env) {
|
|
|
79
79
|
});
|
|
80
80
|
connection.onRequest(protocol_1.GetVirtualFileRequest.type, async (params) => {
|
|
81
81
|
const project = await workspaces.getProject(params.sourceFileUri);
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
return {
|
|
92
|
-
content: virtualFile.snapshot.getText(0, virtualFile.snapshot.getLength()),
|
|
93
|
-
mappings,
|
|
94
|
-
codegenStacks: virtualFile.codegenStacks,
|
|
95
|
-
};
|
|
82
|
+
const service = project?.project?.getLanguageService();
|
|
83
|
+
if (service) {
|
|
84
|
+
let content = '';
|
|
85
|
+
let codegenStacks = [];
|
|
86
|
+
const mappings = {};
|
|
87
|
+
for (const [file, map] of service.context.documents.getMapsByVirtualFileName(params.virtualFileName)) {
|
|
88
|
+
content = map.virtualFileDocument.getText();
|
|
89
|
+
codegenStacks = file.codegenStacks;
|
|
90
|
+
mappings[map.sourceFileDocument.uri] = map.map.mappings;
|
|
96
91
|
}
|
|
92
|
+
return {
|
|
93
|
+
content,
|
|
94
|
+
mappings,
|
|
95
|
+
codegenStacks,
|
|
96
|
+
};
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
connection.onNotification(protocol_1.ReloadProjectNotification.type, () => {
|
package/out/common/project.d.ts
CHANGED
|
@@ -13,36 +13,18 @@ export interface ProjectContext extends WorkspaceContext {
|
|
|
13
13
|
export type Project = ReturnType<typeof createProject>;
|
|
14
14
|
export declare function createProject(context: ProjectContext): Promise<{
|
|
15
15
|
context: ProjectContext;
|
|
16
|
-
tsConfig:
|
|
16
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
17
17
|
scripts: {
|
|
18
18
|
clear: () => void;
|
|
19
|
-
values: () => IterableIterator<
|
|
20
|
-
snapshot: ts.IScriptSnapshot;
|
|
21
|
-
version: number;
|
|
22
|
-
} | undefined>;
|
|
19
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
23
20
|
uriDelete: (_uri: string) => boolean;
|
|
24
|
-
uriGet: (_uri: string) =>
|
|
25
|
-
snapshot: ts.IScriptSnapshot;
|
|
26
|
-
version: number;
|
|
27
|
-
} | undefined;
|
|
21
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
28
22
|
uriHas: (_uri: string) => boolean;
|
|
29
|
-
uriSet: (_uri: string, item:
|
|
30
|
-
snapshot: ts.IScriptSnapshot;
|
|
31
|
-
version: number;
|
|
32
|
-
} | undefined) => void;
|
|
23
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
33
24
|
pathDelete: (path: string) => boolean;
|
|
34
|
-
pathGet: (path: string) =>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} | undefined;
|
|
38
|
-
pathHas: (path: string) => {
|
|
39
|
-
snapshot: ts.IScriptSnapshot;
|
|
40
|
-
version: number;
|
|
41
|
-
} | undefined;
|
|
42
|
-
pathSet: (path: string, item: {
|
|
43
|
-
snapshot: ts.IScriptSnapshot;
|
|
44
|
-
version: number;
|
|
45
|
-
} | undefined) => void;
|
|
25
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
26
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
27
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
46
28
|
};
|
|
47
29
|
languageHost: TypeScriptLanguageHost;
|
|
48
30
|
getLanguageService: () => {
|
package/out/common/project.js
CHANGED
|
@@ -34,16 +34,6 @@ async function createProject(context) {
|
|
|
34
34
|
const languageHost = {
|
|
35
35
|
getProjectVersion: () => projectVersion,
|
|
36
36
|
getScriptFileNames: () => parsedCommandLine.fileNames,
|
|
37
|
-
getScriptVersion: (fileName) => {
|
|
38
|
-
const doc = context.workspaces.documents.data.pathGet(fileName);
|
|
39
|
-
if (doc) {
|
|
40
|
-
return doc.version.toString();
|
|
41
|
-
}
|
|
42
|
-
const fsSnapshot = fsScriptsCache.pathGet(fileName);
|
|
43
|
-
if (fsSnapshot) {
|
|
44
|
-
return fsSnapshot.version.toString();
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
37
|
getScriptSnapshot: (fileName) => {
|
|
48
38
|
askedFiles.pathSet(fileName, true);
|
|
49
39
|
const doc = context.workspaces.documents.data.pathGet(fileName);
|
|
@@ -52,7 +42,7 @@ async function createProject(context) {
|
|
|
52
42
|
}
|
|
53
43
|
const fsSnapshot = fsScriptsCache.pathGet(fileName);
|
|
54
44
|
if (fsSnapshot) {
|
|
55
|
-
return fsSnapshot
|
|
45
|
+
return fsSnapshot;
|
|
56
46
|
}
|
|
57
47
|
},
|
|
58
48
|
getLanguageId: (fileName) => context.workspaces.documents.data.pathGet(fileName)?.languageId,
|
|
@@ -126,14 +116,10 @@ async function createProject(context) {
|
|
|
126
116
|
}
|
|
127
117
|
async function updateRootScriptSnapshot(uri) {
|
|
128
118
|
const text = await context.server.runtimeEnv.fs.readFile(uri);
|
|
129
|
-
const oldVersion = fsScriptsCache.uriGet(uri)?.version ?? 0;
|
|
130
119
|
fsScriptsCache.uriSet(uri, text !== undefined ? {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
getChangeRange: () => undefined,
|
|
135
|
-
},
|
|
136
|
-
version: oldVersion + 1,
|
|
120
|
+
getText: (start, end) => text.substring(start, end),
|
|
121
|
+
getLength: () => text.length,
|
|
122
|
+
getChangeRange: () => undefined,
|
|
137
123
|
} : undefined);
|
|
138
124
|
}
|
|
139
125
|
async function onWorkspaceFilesChanged(changes) {
|
|
@@ -14,36 +14,18 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
14
14
|
clear: () => void;
|
|
15
15
|
values: () => IterableIterator<Promise<{
|
|
16
16
|
context: import("./project").ProjectContext;
|
|
17
|
-
tsConfig:
|
|
17
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
18
18
|
scripts: {
|
|
19
19
|
clear: () => void;
|
|
20
|
-
values: () => IterableIterator<
|
|
21
|
-
snapshot: ts.IScriptSnapshot;
|
|
22
|
-
version: number;
|
|
23
|
-
} | undefined>;
|
|
20
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
24
21
|
uriDelete: (_uri: string) => boolean;
|
|
25
|
-
uriGet: (_uri: string) =>
|
|
26
|
-
snapshot: ts.IScriptSnapshot;
|
|
27
|
-
version: number;
|
|
28
|
-
} | undefined;
|
|
22
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
29
23
|
uriHas: (_uri: string) => boolean;
|
|
30
|
-
uriSet: (_uri: string, item:
|
|
31
|
-
snapshot: ts.IScriptSnapshot;
|
|
32
|
-
version: number;
|
|
33
|
-
} | undefined) => void;
|
|
24
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
34
25
|
pathDelete: (path: string) => boolean;
|
|
35
|
-
pathGet: (path: string) =>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} | undefined;
|
|
39
|
-
pathHas: (path: string) => {
|
|
40
|
-
snapshot: ts.IScriptSnapshot;
|
|
41
|
-
version: number;
|
|
42
|
-
} | undefined;
|
|
43
|
-
pathSet: (path: string, item: {
|
|
44
|
-
snapshot: ts.IScriptSnapshot;
|
|
45
|
-
version: number;
|
|
46
|
-
} | undefined) => void;
|
|
26
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
27
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
28
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
47
29
|
};
|
|
48
30
|
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
49
31
|
getLanguageService: () => {
|
|
@@ -171,36 +153,18 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
171
153
|
uriDelete: (_uri: string) => boolean;
|
|
172
154
|
uriGet: (_uri: string) => Promise<{
|
|
173
155
|
context: import("./project").ProjectContext;
|
|
174
|
-
tsConfig:
|
|
156
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
175
157
|
scripts: {
|
|
176
158
|
clear: () => void;
|
|
177
|
-
values: () => IterableIterator<
|
|
178
|
-
snapshot: ts.IScriptSnapshot;
|
|
179
|
-
version: number;
|
|
180
|
-
} | undefined>;
|
|
159
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
181
160
|
uriDelete: (_uri: string) => boolean;
|
|
182
|
-
uriGet: (_uri: string) =>
|
|
183
|
-
snapshot: ts.IScriptSnapshot;
|
|
184
|
-
version: number;
|
|
185
|
-
} | undefined;
|
|
161
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
186
162
|
uriHas: (_uri: string) => boolean;
|
|
187
|
-
uriSet: (_uri: string, item:
|
|
188
|
-
snapshot: ts.IScriptSnapshot;
|
|
189
|
-
version: number;
|
|
190
|
-
} | undefined) => void;
|
|
163
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
191
164
|
pathDelete: (path: string) => boolean;
|
|
192
|
-
pathGet: (path: string) =>
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
} | undefined;
|
|
196
|
-
pathHas: (path: string) => {
|
|
197
|
-
snapshot: ts.IScriptSnapshot;
|
|
198
|
-
version: number;
|
|
199
|
-
} | undefined;
|
|
200
|
-
pathSet: (path: string, item: {
|
|
201
|
-
snapshot: ts.IScriptSnapshot;
|
|
202
|
-
version: number;
|
|
203
|
-
} | undefined) => void;
|
|
165
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
166
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
167
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
204
168
|
};
|
|
205
169
|
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
206
170
|
getLanguageService: () => {
|
|
@@ -328,36 +292,18 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
328
292
|
uriHas: (_uri: string) => boolean;
|
|
329
293
|
uriSet: (_uri: string, item: Promise<{
|
|
330
294
|
context: import("./project").ProjectContext;
|
|
331
|
-
tsConfig:
|
|
295
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
332
296
|
scripts: {
|
|
333
297
|
clear: () => void;
|
|
334
|
-
values: () => IterableIterator<
|
|
335
|
-
snapshot: ts.IScriptSnapshot;
|
|
336
|
-
version: number;
|
|
337
|
-
} | undefined>;
|
|
298
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
338
299
|
uriDelete: (_uri: string) => boolean;
|
|
339
|
-
uriGet: (_uri: string) =>
|
|
340
|
-
snapshot: ts.IScriptSnapshot;
|
|
341
|
-
version: number;
|
|
342
|
-
} | undefined;
|
|
300
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
343
301
|
uriHas: (_uri: string) => boolean;
|
|
344
|
-
uriSet: (_uri: string, item:
|
|
345
|
-
snapshot: ts.IScriptSnapshot;
|
|
346
|
-
version: number;
|
|
347
|
-
} | undefined) => void;
|
|
302
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
348
303
|
pathDelete: (path: string) => boolean;
|
|
349
|
-
pathGet: (path: string) =>
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
} | undefined;
|
|
353
|
-
pathHas: (path: string) => {
|
|
354
|
-
snapshot: ts.IScriptSnapshot;
|
|
355
|
-
version: number;
|
|
356
|
-
} | undefined;
|
|
357
|
-
pathSet: (path: string, item: {
|
|
358
|
-
snapshot: ts.IScriptSnapshot;
|
|
359
|
-
version: number;
|
|
360
|
-
} | undefined) => void;
|
|
304
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
305
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
306
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
361
307
|
};
|
|
362
308
|
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
363
309
|
getLanguageService: () => {
|
|
@@ -485,36 +431,18 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
485
431
|
pathDelete: (path: string) => boolean;
|
|
486
432
|
pathGet: (path: string) => Promise<{
|
|
487
433
|
context: import("./project").ProjectContext;
|
|
488
|
-
tsConfig:
|
|
434
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
489
435
|
scripts: {
|
|
490
436
|
clear: () => void;
|
|
491
|
-
values: () => IterableIterator<
|
|
492
|
-
snapshot: ts.IScriptSnapshot;
|
|
493
|
-
version: number;
|
|
494
|
-
} | undefined>;
|
|
437
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
495
438
|
uriDelete: (_uri: string) => boolean;
|
|
496
|
-
uriGet: (_uri: string) =>
|
|
497
|
-
snapshot: ts.IScriptSnapshot;
|
|
498
|
-
version: number;
|
|
499
|
-
} | undefined;
|
|
439
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
500
440
|
uriHas: (_uri: string) => boolean;
|
|
501
|
-
uriSet: (_uri: string, item:
|
|
502
|
-
snapshot: ts.IScriptSnapshot;
|
|
503
|
-
version: number;
|
|
504
|
-
} | undefined) => void;
|
|
441
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
505
442
|
pathDelete: (path: string) => boolean;
|
|
506
|
-
pathGet: (path: string) =>
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
} | undefined;
|
|
510
|
-
pathHas: (path: string) => {
|
|
511
|
-
snapshot: ts.IScriptSnapshot;
|
|
512
|
-
version: number;
|
|
513
|
-
} | undefined;
|
|
514
|
-
pathSet: (path: string, item: {
|
|
515
|
-
snapshot: ts.IScriptSnapshot;
|
|
516
|
-
version: number;
|
|
517
|
-
} | undefined) => void;
|
|
443
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
444
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
445
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
518
446
|
};
|
|
519
447
|
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
520
448
|
getLanguageService: () => {
|
|
@@ -641,36 +569,18 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
641
569
|
}> | undefined;
|
|
642
570
|
pathHas: (path: string) => Promise<{
|
|
643
571
|
context: import("./project").ProjectContext;
|
|
644
|
-
tsConfig:
|
|
572
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
645
573
|
scripts: {
|
|
646
574
|
clear: () => void;
|
|
647
|
-
values: () => IterableIterator<
|
|
648
|
-
snapshot: ts.IScriptSnapshot;
|
|
649
|
-
version: number;
|
|
650
|
-
} | undefined>;
|
|
575
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
651
576
|
uriDelete: (_uri: string) => boolean;
|
|
652
|
-
uriGet: (_uri: string) =>
|
|
653
|
-
snapshot: ts.IScriptSnapshot;
|
|
654
|
-
version: number;
|
|
655
|
-
} | undefined;
|
|
577
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
656
578
|
uriHas: (_uri: string) => boolean;
|
|
657
|
-
uriSet: (_uri: string, item:
|
|
658
|
-
snapshot: ts.IScriptSnapshot;
|
|
659
|
-
version: number;
|
|
660
|
-
} | undefined) => void;
|
|
579
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
661
580
|
pathDelete: (path: string) => boolean;
|
|
662
|
-
pathGet: (path: string) =>
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
} | undefined;
|
|
666
|
-
pathHas: (path: string) => {
|
|
667
|
-
snapshot: ts.IScriptSnapshot;
|
|
668
|
-
version: number;
|
|
669
|
-
} | undefined;
|
|
670
|
-
pathSet: (path: string, item: {
|
|
671
|
-
snapshot: ts.IScriptSnapshot;
|
|
672
|
-
version: number;
|
|
673
|
-
} | undefined) => void;
|
|
581
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
582
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
583
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
674
584
|
};
|
|
675
585
|
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
676
586
|
getLanguageService: () => {
|
|
@@ -797,36 +707,18 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
797
707
|
}> | undefined;
|
|
798
708
|
pathSet: (path: string, item: Promise<{
|
|
799
709
|
context: import("./project").ProjectContext;
|
|
800
|
-
tsConfig:
|
|
710
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
801
711
|
scripts: {
|
|
802
712
|
clear: () => void;
|
|
803
|
-
values: () => IterableIterator<
|
|
804
|
-
snapshot: ts.IScriptSnapshot;
|
|
805
|
-
version: number;
|
|
806
|
-
} | undefined>;
|
|
713
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
807
714
|
uriDelete: (_uri: string) => boolean;
|
|
808
|
-
uriGet: (_uri: string) =>
|
|
809
|
-
snapshot: ts.IScriptSnapshot;
|
|
810
|
-
version: number;
|
|
811
|
-
} | undefined;
|
|
715
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
812
716
|
uriHas: (_uri: string) => boolean;
|
|
813
|
-
uriSet: (_uri: string, item:
|
|
814
|
-
snapshot: ts.IScriptSnapshot;
|
|
815
|
-
version: number;
|
|
816
|
-
} | undefined) => void;
|
|
717
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
817
718
|
pathDelete: (path: string) => boolean;
|
|
818
|
-
pathGet: (path: string) =>
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
} | undefined;
|
|
822
|
-
pathHas: (path: string) => {
|
|
823
|
-
snapshot: ts.IScriptSnapshot;
|
|
824
|
-
version: number;
|
|
825
|
-
} | undefined;
|
|
826
|
-
pathSet: (path: string, item: {
|
|
827
|
-
snapshot: ts.IScriptSnapshot;
|
|
828
|
-
version: number;
|
|
829
|
-
} | undefined) => void;
|
|
719
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
720
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
721
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
830
722
|
};
|
|
831
723
|
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
832
724
|
getLanguageService: () => {
|
|
@@ -956,36 +848,18 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
956
848
|
tsconfig: string;
|
|
957
849
|
project: {
|
|
958
850
|
context: import("./project").ProjectContext;
|
|
959
|
-
tsConfig:
|
|
851
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
960
852
|
scripts: {
|
|
961
853
|
clear: () => void;
|
|
962
|
-
values: () => IterableIterator<
|
|
963
|
-
snapshot: ts.IScriptSnapshot;
|
|
964
|
-
version: number;
|
|
965
|
-
} | undefined>;
|
|
854
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
966
855
|
uriDelete: (_uri: string) => boolean;
|
|
967
|
-
uriGet: (_uri: string) =>
|
|
968
|
-
snapshot: ts.IScriptSnapshot;
|
|
969
|
-
version: number;
|
|
970
|
-
} | undefined;
|
|
856
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
971
857
|
uriHas: (_uri: string) => boolean;
|
|
972
|
-
uriSet: (_uri: string, item:
|
|
973
|
-
snapshot: ts.IScriptSnapshot;
|
|
974
|
-
version: number;
|
|
975
|
-
} | undefined) => void;
|
|
858
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
976
859
|
pathDelete: (path: string) => boolean;
|
|
977
|
-
pathGet: (path: string) =>
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
} | undefined;
|
|
981
|
-
pathHas: (path: string) => {
|
|
982
|
-
snapshot: ts.IScriptSnapshot;
|
|
983
|
-
version: number;
|
|
984
|
-
} | undefined;
|
|
985
|
-
pathSet: (path: string, item: {
|
|
986
|
-
snapshot: ts.IScriptSnapshot;
|
|
987
|
-
version: number;
|
|
988
|
-
} | undefined) => void;
|
|
860
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
861
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
862
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
989
863
|
};
|
|
990
864
|
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
991
865
|
getLanguageService: () => {
|
|
@@ -1113,36 +987,18 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1113
987
|
} | undefined>;
|
|
1114
988
|
getInferredProject: () => Promise<{
|
|
1115
989
|
context: import("./project").ProjectContext;
|
|
1116
|
-
tsConfig:
|
|
990
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1117
991
|
scripts: {
|
|
1118
992
|
clear: () => void;
|
|
1119
|
-
values: () => IterableIterator<
|
|
1120
|
-
snapshot: ts.IScriptSnapshot;
|
|
1121
|
-
version: number;
|
|
1122
|
-
} | undefined>;
|
|
993
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
1123
994
|
uriDelete: (_uri: string) => boolean;
|
|
1124
|
-
uriGet: (_uri: string) =>
|
|
1125
|
-
snapshot: ts.IScriptSnapshot;
|
|
1126
|
-
version: number;
|
|
1127
|
-
} | undefined;
|
|
995
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
1128
996
|
uriHas: (_uri: string) => boolean;
|
|
1129
|
-
uriSet: (_uri: string, item:
|
|
1130
|
-
snapshot: ts.IScriptSnapshot;
|
|
1131
|
-
version: number;
|
|
1132
|
-
} | undefined) => void;
|
|
997
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1133
998
|
pathDelete: (path: string) => boolean;
|
|
1134
|
-
pathGet: (path: string) =>
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
} | undefined;
|
|
1138
|
-
pathHas: (path: string) => {
|
|
1139
|
-
snapshot: ts.IScriptSnapshot;
|
|
1140
|
-
version: number;
|
|
1141
|
-
} | undefined;
|
|
1142
|
-
pathSet: (path: string, item: {
|
|
1143
|
-
snapshot: ts.IScriptSnapshot;
|
|
1144
|
-
version: number;
|
|
1145
|
-
} | undefined) => void;
|
|
999
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1000
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1001
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1146
1002
|
};
|
|
1147
1003
|
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
1148
1004
|
getLanguageService: () => {
|
|
@@ -1269,36 +1125,18 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1269
1125
|
}>;
|
|
1270
1126
|
getInferredProjectDontCreate: () => Promise<{
|
|
1271
1127
|
context: import("./project").ProjectContext;
|
|
1272
|
-
tsConfig:
|
|
1128
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1273
1129
|
scripts: {
|
|
1274
1130
|
clear: () => void;
|
|
1275
|
-
values: () => IterableIterator<
|
|
1276
|
-
snapshot: ts.IScriptSnapshot;
|
|
1277
|
-
version: number;
|
|
1278
|
-
} | undefined>;
|
|
1131
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
1279
1132
|
uriDelete: (_uri: string) => boolean;
|
|
1280
|
-
uriGet: (_uri: string) =>
|
|
1281
|
-
snapshot: ts.IScriptSnapshot;
|
|
1282
|
-
version: number;
|
|
1283
|
-
} | undefined;
|
|
1133
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
1284
1134
|
uriHas: (_uri: string) => boolean;
|
|
1285
|
-
uriSet: (_uri: string, item:
|
|
1286
|
-
snapshot: ts.IScriptSnapshot;
|
|
1287
|
-
version: number;
|
|
1288
|
-
} | undefined) => void;
|
|
1135
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1289
1136
|
pathDelete: (path: string) => boolean;
|
|
1290
|
-
pathGet: (path: string) =>
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
} | undefined;
|
|
1294
|
-
pathHas: (path: string) => {
|
|
1295
|
-
snapshot: ts.IScriptSnapshot;
|
|
1296
|
-
version: number;
|
|
1297
|
-
} | undefined;
|
|
1298
|
-
pathSet: (path: string, item: {
|
|
1299
|
-
snapshot: ts.IScriptSnapshot;
|
|
1300
|
-
version: number;
|
|
1301
|
-
} | undefined) => void;
|
|
1137
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1138
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1139
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1302
1140
|
};
|
|
1303
1141
|
languageHost: import("@volar/language-service").TypeScriptLanguageHost;
|
|
1304
1142
|
getLanguageService: () => {
|
|
@@ -25,36 +25,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
25
25
|
clear: () => void;
|
|
26
26
|
values: () => IterableIterator<Promise<{
|
|
27
27
|
context: import("./project").ProjectContext;
|
|
28
|
-
tsConfig: import("typesafe-path/posix").PosixPath
|
|
28
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
|
|
29
29
|
scripts: {
|
|
30
30
|
clear: () => void;
|
|
31
|
-
values: () => IterableIterator<
|
|
32
|
-
snapshot: ts.IScriptSnapshot;
|
|
33
|
-
version: number;
|
|
34
|
-
} | undefined>;
|
|
31
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
35
32
|
uriDelete: (_uri: string) => boolean;
|
|
36
|
-
uriGet: (_uri: string) =>
|
|
37
|
-
snapshot: ts.IScriptSnapshot;
|
|
38
|
-
version: number;
|
|
39
|
-
} | undefined;
|
|
33
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
40
34
|
uriHas: (_uri: string) => boolean;
|
|
41
|
-
uriSet: (_uri: string, item:
|
|
42
|
-
snapshot: ts.IScriptSnapshot;
|
|
43
|
-
version: number;
|
|
44
|
-
} | undefined) => void;
|
|
35
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
45
36
|
pathDelete: (path: string) => boolean;
|
|
46
|
-
pathGet: (path: string) =>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} | undefined;
|
|
50
|
-
pathHas: (path: string) => {
|
|
51
|
-
snapshot: ts.IScriptSnapshot;
|
|
52
|
-
version: number;
|
|
53
|
-
} | undefined;
|
|
54
|
-
pathSet: (path: string, item: {
|
|
55
|
-
snapshot: ts.IScriptSnapshot;
|
|
56
|
-
version: number;
|
|
57
|
-
} | undefined) => void;
|
|
37
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
38
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
39
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
58
40
|
};
|
|
59
41
|
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
60
42
|
getLanguageService: () => {
|
|
@@ -182,36 +164,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
182
164
|
uriDelete: (_uri: string) => boolean;
|
|
183
165
|
uriGet: (_uri: string) => Promise<{
|
|
184
166
|
context: import("./project").ProjectContext;
|
|
185
|
-
tsConfig: import("typesafe-path/posix").PosixPath
|
|
167
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
|
|
186
168
|
scripts: {
|
|
187
169
|
clear: () => void;
|
|
188
|
-
values: () => IterableIterator<
|
|
189
|
-
snapshot: ts.IScriptSnapshot;
|
|
190
|
-
version: number;
|
|
191
|
-
} | undefined>;
|
|
170
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
192
171
|
uriDelete: (_uri: string) => boolean;
|
|
193
|
-
uriGet: (_uri: string) =>
|
|
194
|
-
snapshot: ts.IScriptSnapshot;
|
|
195
|
-
version: number;
|
|
196
|
-
} | undefined;
|
|
172
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
197
173
|
uriHas: (_uri: string) => boolean;
|
|
198
|
-
uriSet: (_uri: string, item:
|
|
199
|
-
snapshot: ts.IScriptSnapshot;
|
|
200
|
-
version: number;
|
|
201
|
-
} | undefined) => void;
|
|
174
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
202
175
|
pathDelete: (path: string) => boolean;
|
|
203
|
-
pathGet: (path: string) =>
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
} | undefined;
|
|
207
|
-
pathHas: (path: string) => {
|
|
208
|
-
snapshot: ts.IScriptSnapshot;
|
|
209
|
-
version: number;
|
|
210
|
-
} | undefined;
|
|
211
|
-
pathSet: (path: string, item: {
|
|
212
|
-
snapshot: ts.IScriptSnapshot;
|
|
213
|
-
version: number;
|
|
214
|
-
} | undefined) => void;
|
|
176
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
177
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
178
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
215
179
|
};
|
|
216
180
|
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
217
181
|
getLanguageService: () => {
|
|
@@ -339,36 +303,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
339
303
|
uriHas: (_uri: string) => boolean;
|
|
340
304
|
uriSet: (_uri: string, item: Promise<{
|
|
341
305
|
context: import("./project").ProjectContext;
|
|
342
|
-
tsConfig: import("typesafe-path/posix").PosixPath
|
|
306
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
|
|
343
307
|
scripts: {
|
|
344
308
|
clear: () => void;
|
|
345
|
-
values: () => IterableIterator<
|
|
346
|
-
snapshot: ts.IScriptSnapshot;
|
|
347
|
-
version: number;
|
|
348
|
-
} | undefined>;
|
|
309
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
349
310
|
uriDelete: (_uri: string) => boolean;
|
|
350
|
-
uriGet: (_uri: string) =>
|
|
351
|
-
snapshot: ts.IScriptSnapshot;
|
|
352
|
-
version: number;
|
|
353
|
-
} | undefined;
|
|
311
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
354
312
|
uriHas: (_uri: string) => boolean;
|
|
355
|
-
uriSet: (_uri: string, item:
|
|
356
|
-
snapshot: ts.IScriptSnapshot;
|
|
357
|
-
version: number;
|
|
358
|
-
} | undefined) => void;
|
|
313
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
359
314
|
pathDelete: (path: string) => boolean;
|
|
360
|
-
pathGet: (path: string) =>
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
} | undefined;
|
|
364
|
-
pathHas: (path: string) => {
|
|
365
|
-
snapshot: ts.IScriptSnapshot;
|
|
366
|
-
version: number;
|
|
367
|
-
} | undefined;
|
|
368
|
-
pathSet: (path: string, item: {
|
|
369
|
-
snapshot: ts.IScriptSnapshot;
|
|
370
|
-
version: number;
|
|
371
|
-
} | undefined) => void;
|
|
315
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
316
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
317
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
372
318
|
};
|
|
373
319
|
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
374
320
|
getLanguageService: () => {
|
|
@@ -496,36 +442,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
496
442
|
pathDelete: (path: string) => boolean;
|
|
497
443
|
pathGet: (path: string) => Promise<{
|
|
498
444
|
context: import("./project").ProjectContext;
|
|
499
|
-
tsConfig: import("typesafe-path/posix").PosixPath
|
|
445
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
|
|
500
446
|
scripts: {
|
|
501
447
|
clear: () => void;
|
|
502
|
-
values: () => IterableIterator<
|
|
503
|
-
snapshot: ts.IScriptSnapshot;
|
|
504
|
-
version: number;
|
|
505
|
-
} | undefined>;
|
|
448
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
506
449
|
uriDelete: (_uri: string) => boolean;
|
|
507
|
-
uriGet: (_uri: string) =>
|
|
508
|
-
snapshot: ts.IScriptSnapshot;
|
|
509
|
-
version: number;
|
|
510
|
-
} | undefined;
|
|
450
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
511
451
|
uriHas: (_uri: string) => boolean;
|
|
512
|
-
uriSet: (_uri: string, item:
|
|
513
|
-
snapshot: ts.IScriptSnapshot;
|
|
514
|
-
version: number;
|
|
515
|
-
} | undefined) => void;
|
|
452
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
516
453
|
pathDelete: (path: string) => boolean;
|
|
517
|
-
pathGet: (path: string) =>
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
} | undefined;
|
|
521
|
-
pathHas: (path: string) => {
|
|
522
|
-
snapshot: ts.IScriptSnapshot;
|
|
523
|
-
version: number;
|
|
524
|
-
} | undefined;
|
|
525
|
-
pathSet: (path: string, item: {
|
|
526
|
-
snapshot: ts.IScriptSnapshot;
|
|
527
|
-
version: number;
|
|
528
|
-
} | undefined) => void;
|
|
454
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
455
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
456
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
529
457
|
};
|
|
530
458
|
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
531
459
|
getLanguageService: () => {
|
|
@@ -652,36 +580,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
652
580
|
}> | undefined;
|
|
653
581
|
pathHas: (path: string) => Promise<{
|
|
654
582
|
context: import("./project").ProjectContext;
|
|
655
|
-
tsConfig: import("typesafe-path/posix").PosixPath
|
|
583
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
|
|
656
584
|
scripts: {
|
|
657
585
|
clear: () => void;
|
|
658
|
-
values: () => IterableIterator<
|
|
659
|
-
snapshot: ts.IScriptSnapshot;
|
|
660
|
-
version: number;
|
|
661
|
-
} | undefined>;
|
|
586
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
662
587
|
uriDelete: (_uri: string) => boolean;
|
|
663
|
-
uriGet: (_uri: string) =>
|
|
664
|
-
snapshot: ts.IScriptSnapshot;
|
|
665
|
-
version: number;
|
|
666
|
-
} | undefined;
|
|
588
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
667
589
|
uriHas: (_uri: string) => boolean;
|
|
668
|
-
uriSet: (_uri: string, item:
|
|
669
|
-
snapshot: ts.IScriptSnapshot;
|
|
670
|
-
version: number;
|
|
671
|
-
} | undefined) => void;
|
|
590
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
672
591
|
pathDelete: (path: string) => boolean;
|
|
673
|
-
pathGet: (path: string) =>
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
} | undefined;
|
|
677
|
-
pathHas: (path: string) => {
|
|
678
|
-
snapshot: ts.IScriptSnapshot;
|
|
679
|
-
version: number;
|
|
680
|
-
} | undefined;
|
|
681
|
-
pathSet: (path: string, item: {
|
|
682
|
-
snapshot: ts.IScriptSnapshot;
|
|
683
|
-
version: number;
|
|
684
|
-
} | undefined) => void;
|
|
592
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
593
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
594
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
685
595
|
};
|
|
686
596
|
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
687
597
|
getLanguageService: () => {
|
|
@@ -808,36 +718,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
808
718
|
}> | undefined;
|
|
809
719
|
pathSet: (path: string, item: Promise<{
|
|
810
720
|
context: import("./project").ProjectContext;
|
|
811
|
-
tsConfig: import("typesafe-path/posix").PosixPath
|
|
721
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
|
|
812
722
|
scripts: {
|
|
813
723
|
clear: () => void;
|
|
814
|
-
values: () => IterableIterator<
|
|
815
|
-
snapshot: ts.IScriptSnapshot;
|
|
816
|
-
version: number;
|
|
817
|
-
} | undefined>;
|
|
724
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
818
725
|
uriDelete: (_uri: string) => boolean;
|
|
819
|
-
uriGet: (_uri: string) =>
|
|
820
|
-
snapshot: ts.IScriptSnapshot;
|
|
821
|
-
version: number;
|
|
822
|
-
} | undefined;
|
|
726
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
823
727
|
uriHas: (_uri: string) => boolean;
|
|
824
|
-
uriSet: (_uri: string, item:
|
|
825
|
-
snapshot: ts.IScriptSnapshot;
|
|
826
|
-
version: number;
|
|
827
|
-
} | undefined) => void;
|
|
728
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
828
729
|
pathDelete: (path: string) => boolean;
|
|
829
|
-
pathGet: (path: string) =>
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
} | undefined;
|
|
833
|
-
pathHas: (path: string) => {
|
|
834
|
-
snapshot: ts.IScriptSnapshot;
|
|
835
|
-
version: number;
|
|
836
|
-
} | undefined;
|
|
837
|
-
pathSet: (path: string, item: {
|
|
838
|
-
snapshot: ts.IScriptSnapshot;
|
|
839
|
-
version: number;
|
|
840
|
-
} | undefined) => void;
|
|
730
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
731
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
732
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
841
733
|
};
|
|
842
734
|
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
843
735
|
getLanguageService: () => {
|
|
@@ -967,36 +859,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
967
859
|
tsconfig: string;
|
|
968
860
|
project: {
|
|
969
861
|
context: import("./project").ProjectContext;
|
|
970
|
-
tsConfig: import("typesafe-path/posix").PosixPath
|
|
862
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
|
|
971
863
|
scripts: {
|
|
972
864
|
clear: () => void;
|
|
973
|
-
values: () => IterableIterator<
|
|
974
|
-
snapshot: ts.IScriptSnapshot;
|
|
975
|
-
version: number;
|
|
976
|
-
} | undefined>;
|
|
865
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
977
866
|
uriDelete: (_uri: string) => boolean;
|
|
978
|
-
uriGet: (_uri: string) =>
|
|
979
|
-
snapshot: ts.IScriptSnapshot;
|
|
980
|
-
version: number;
|
|
981
|
-
} | undefined;
|
|
867
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
982
868
|
uriHas: (_uri: string) => boolean;
|
|
983
|
-
uriSet: (_uri: string, item:
|
|
984
|
-
snapshot: ts.IScriptSnapshot;
|
|
985
|
-
version: number;
|
|
986
|
-
} | undefined) => void;
|
|
869
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
987
870
|
pathDelete: (path: string) => boolean;
|
|
988
|
-
pathGet: (path: string) =>
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
} | undefined;
|
|
992
|
-
pathHas: (path: string) => {
|
|
993
|
-
snapshot: ts.IScriptSnapshot;
|
|
994
|
-
version: number;
|
|
995
|
-
} | undefined;
|
|
996
|
-
pathSet: (path: string, item: {
|
|
997
|
-
snapshot: ts.IScriptSnapshot;
|
|
998
|
-
version: number;
|
|
999
|
-
} | undefined) => void;
|
|
871
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
872
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
873
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1000
874
|
};
|
|
1001
875
|
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1002
876
|
getLanguageService: () => {
|
|
@@ -1124,36 +998,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1124
998
|
} | undefined>;
|
|
1125
999
|
getInferredProject: () => Promise<{
|
|
1126
1000
|
context: import("./project").ProjectContext;
|
|
1127
|
-
tsConfig: import("typesafe-path/posix").PosixPath
|
|
1001
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
|
|
1128
1002
|
scripts: {
|
|
1129
1003
|
clear: () => void;
|
|
1130
|
-
values: () => IterableIterator<
|
|
1131
|
-
snapshot: ts.IScriptSnapshot;
|
|
1132
|
-
version: number;
|
|
1133
|
-
} | undefined>;
|
|
1004
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
1134
1005
|
uriDelete: (_uri: string) => boolean;
|
|
1135
|
-
uriGet: (_uri: string) =>
|
|
1136
|
-
snapshot: ts.IScriptSnapshot;
|
|
1137
|
-
version: number;
|
|
1138
|
-
} | undefined;
|
|
1006
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
1139
1007
|
uriHas: (_uri: string) => boolean;
|
|
1140
|
-
uriSet: (_uri: string, item:
|
|
1141
|
-
snapshot: ts.IScriptSnapshot;
|
|
1142
|
-
version: number;
|
|
1143
|
-
} | undefined) => void;
|
|
1008
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1144
1009
|
pathDelete: (path: string) => boolean;
|
|
1145
|
-
pathGet: (path: string) =>
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
} | undefined;
|
|
1149
|
-
pathHas: (path: string) => {
|
|
1150
|
-
snapshot: ts.IScriptSnapshot;
|
|
1151
|
-
version: number;
|
|
1152
|
-
} | undefined;
|
|
1153
|
-
pathSet: (path: string, item: {
|
|
1154
|
-
snapshot: ts.IScriptSnapshot;
|
|
1155
|
-
version: number;
|
|
1156
|
-
} | undefined) => void;
|
|
1010
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1011
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1012
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1157
1013
|
};
|
|
1158
1014
|
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1159
1015
|
getLanguageService: () => {
|
|
@@ -1280,36 +1136,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1280
1136
|
}>;
|
|
1281
1137
|
getInferredProjectDontCreate: () => Promise<{
|
|
1282
1138
|
context: import("./project").ProjectContext;
|
|
1283
|
-
tsConfig: import("typesafe-path/posix").PosixPath
|
|
1139
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
|
|
1284
1140
|
scripts: {
|
|
1285
1141
|
clear: () => void;
|
|
1286
|
-
values: () => IterableIterator<
|
|
1287
|
-
snapshot: ts.IScriptSnapshot;
|
|
1288
|
-
version: number;
|
|
1289
|
-
} | undefined>;
|
|
1142
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
1290
1143
|
uriDelete: (_uri: string) => boolean;
|
|
1291
|
-
uriGet: (_uri: string) =>
|
|
1292
|
-
snapshot: ts.IScriptSnapshot;
|
|
1293
|
-
version: number;
|
|
1294
|
-
} | undefined;
|
|
1144
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
1295
1145
|
uriHas: (_uri: string) => boolean;
|
|
1296
|
-
uriSet: (_uri: string, item:
|
|
1297
|
-
snapshot: ts.IScriptSnapshot;
|
|
1298
|
-
version: number;
|
|
1299
|
-
} | undefined) => void;
|
|
1146
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1300
1147
|
pathDelete: (path: string) => boolean;
|
|
1301
|
-
pathGet: (path: string) =>
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
} | undefined;
|
|
1305
|
-
pathHas: (path: string) => {
|
|
1306
|
-
snapshot: ts.IScriptSnapshot;
|
|
1307
|
-
version: number;
|
|
1308
|
-
} | undefined;
|
|
1309
|
-
pathSet: (path: string, item: {
|
|
1310
|
-
snapshot: ts.IScriptSnapshot;
|
|
1311
|
-
version: number;
|
|
1312
|
-
} | undefined) => void;
|
|
1148
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1149
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1150
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1313
1151
|
};
|
|
1314
1152
|
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1315
1153
|
getLanguageService: () => {
|
|
@@ -1441,36 +1279,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1441
1279
|
tsconfig: string;
|
|
1442
1280
|
project: {
|
|
1443
1281
|
context: import("./project").ProjectContext;
|
|
1444
|
-
tsConfig: import("typesafe-path/posix").PosixPath
|
|
1282
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
|
|
1445
1283
|
scripts: {
|
|
1446
1284
|
clear: () => void;
|
|
1447
|
-
values: () => IterableIterator<
|
|
1448
|
-
snapshot: ts.IScriptSnapshot;
|
|
1449
|
-
version: number;
|
|
1450
|
-
} | undefined>;
|
|
1285
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
1451
1286
|
uriDelete: (_uri: string) => boolean;
|
|
1452
|
-
uriGet: (_uri: string) =>
|
|
1453
|
-
snapshot: ts.IScriptSnapshot;
|
|
1454
|
-
version: number;
|
|
1455
|
-
} | undefined;
|
|
1287
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
1456
1288
|
uriHas: (_uri: string) => boolean;
|
|
1457
|
-
uriSet: (_uri: string, item:
|
|
1458
|
-
snapshot: ts.IScriptSnapshot;
|
|
1459
|
-
version: number;
|
|
1460
|
-
} | undefined) => void;
|
|
1289
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1461
1290
|
pathDelete: (path: string) => boolean;
|
|
1462
|
-
pathGet: (path: string) =>
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
} | undefined;
|
|
1466
|
-
pathHas: (path: string) => {
|
|
1467
|
-
snapshot: ts.IScriptSnapshot;
|
|
1468
|
-
version: number;
|
|
1469
|
-
} | undefined;
|
|
1470
|
-
pathSet: (path: string, item: {
|
|
1471
|
-
snapshot: ts.IScriptSnapshot;
|
|
1472
|
-
version: number;
|
|
1473
|
-
} | undefined) => void;
|
|
1291
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1292
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1293
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1474
1294
|
};
|
|
1475
1295
|
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1476
1296
|
getLanguageService: () => {
|
|
@@ -1599,36 +1419,18 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1599
1419
|
tsconfig: undefined;
|
|
1600
1420
|
project: {
|
|
1601
1421
|
context: import("./project").ProjectContext;
|
|
1602
|
-
tsConfig: import("typesafe-path/posix").PosixPath
|
|
1422
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path/posix").PosixPath;
|
|
1603
1423
|
scripts: {
|
|
1604
1424
|
clear: () => void;
|
|
1605
|
-
values: () => IterableIterator<
|
|
1606
|
-
snapshot: ts.IScriptSnapshot;
|
|
1607
|
-
version: number;
|
|
1608
|
-
} | undefined>;
|
|
1425
|
+
values: () => IterableIterator<ts.IScriptSnapshot | undefined>;
|
|
1609
1426
|
uriDelete: (_uri: string) => boolean;
|
|
1610
|
-
uriGet: (_uri: string) =>
|
|
1611
|
-
snapshot: ts.IScriptSnapshot;
|
|
1612
|
-
version: number;
|
|
1613
|
-
} | undefined;
|
|
1427
|
+
uriGet: (_uri: string) => ts.IScriptSnapshot | undefined;
|
|
1614
1428
|
uriHas: (_uri: string) => boolean;
|
|
1615
|
-
uriSet: (_uri: string, item:
|
|
1616
|
-
snapshot: ts.IScriptSnapshot;
|
|
1617
|
-
version: number;
|
|
1618
|
-
} | undefined) => void;
|
|
1429
|
+
uriSet: (_uri: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1619
1430
|
pathDelete: (path: string) => boolean;
|
|
1620
|
-
pathGet: (path: string) =>
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
} | undefined;
|
|
1624
|
-
pathHas: (path: string) => {
|
|
1625
|
-
snapshot: ts.IScriptSnapshot;
|
|
1626
|
-
version: number;
|
|
1627
|
-
} | undefined;
|
|
1628
|
-
pathSet: (path: string, item: {
|
|
1629
|
-
snapshot: ts.IScriptSnapshot;
|
|
1630
|
-
version: number;
|
|
1631
|
-
} | undefined) => void;
|
|
1431
|
+
pathGet: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1432
|
+
pathHas: (path: string) => ts.IScriptSnapshot | undefined;
|
|
1433
|
+
pathSet: (path: string, item: ts.IScriptSnapshot | undefined) => void;
|
|
1632
1434
|
};
|
|
1633
1435
|
languageHost: import("@volar/language-core").TypeScriptLanguageHost;
|
|
1634
1436
|
getLanguageService: () => {
|
package/out/protocol.js
CHANGED
|
@@ -8,52 +8,52 @@ const vscode = require("vscode-languageserver-protocol");
|
|
|
8
8
|
var FsReadFileRequest;
|
|
9
9
|
(function (FsReadFileRequest) {
|
|
10
10
|
FsReadFileRequest.type = new vscode.RequestType('volar/server/fs/readFile');
|
|
11
|
-
})(FsReadFileRequest
|
|
11
|
+
})(FsReadFileRequest = exports.FsReadFileRequest || (exports.FsReadFileRequest = {}));
|
|
12
12
|
var FsReadDirectoryRequest;
|
|
13
13
|
(function (FsReadDirectoryRequest) {
|
|
14
14
|
FsReadDirectoryRequest.type = new vscode.RequestType('volar/server/fs/readDirectory');
|
|
15
|
-
})(FsReadDirectoryRequest
|
|
15
|
+
})(FsReadDirectoryRequest = exports.FsReadDirectoryRequest || (exports.FsReadDirectoryRequest = {}));
|
|
16
16
|
var FsStatRequest;
|
|
17
17
|
(function (FsStatRequest) {
|
|
18
18
|
FsStatRequest.type = new vscode.RequestType('volar/server/fs/stat');
|
|
19
|
-
})(FsStatRequest
|
|
19
|
+
})(FsStatRequest = exports.FsStatRequest || (exports.FsStatRequest = {}));
|
|
20
20
|
/**
|
|
21
21
|
* Client request server
|
|
22
22
|
*/
|
|
23
23
|
var FindFileReferenceRequest;
|
|
24
24
|
(function (FindFileReferenceRequest) {
|
|
25
25
|
FindFileReferenceRequest.type = new vscode.RequestType('volar/client/findFileReference');
|
|
26
|
-
})(FindFileReferenceRequest
|
|
26
|
+
})(FindFileReferenceRequest = exports.FindFileReferenceRequest || (exports.FindFileReferenceRequest = {}));
|
|
27
27
|
var GetMatchTsConfigRequest;
|
|
28
28
|
(function (GetMatchTsConfigRequest) {
|
|
29
29
|
GetMatchTsConfigRequest.type = new vscode.RequestType('volar/client/tsconfig');
|
|
30
|
-
})(GetMatchTsConfigRequest
|
|
30
|
+
})(GetMatchTsConfigRequest = exports.GetMatchTsConfigRequest || (exports.GetMatchTsConfigRequest = {}));
|
|
31
31
|
var GetProjectsRequest;
|
|
32
32
|
(function (GetProjectsRequest) {
|
|
33
33
|
GetProjectsRequest.type = new vscode.RequestType('volar/client/projects');
|
|
34
|
-
})(GetProjectsRequest
|
|
34
|
+
})(GetProjectsRequest = exports.GetProjectsRequest || (exports.GetProjectsRequest = {}));
|
|
35
35
|
var GetProjectFilesRequest;
|
|
36
36
|
(function (GetProjectFilesRequest) {
|
|
37
37
|
GetProjectFilesRequest.type = new vscode.RequestType('volar/client/projectFiles');
|
|
38
|
-
})(GetProjectFilesRequest
|
|
38
|
+
})(GetProjectFilesRequest = exports.GetProjectFilesRequest || (exports.GetProjectFilesRequest = {}));
|
|
39
39
|
var AutoInsertRequest;
|
|
40
40
|
(function (AutoInsertRequest) {
|
|
41
41
|
AutoInsertRequest.type = new vscode.RequestType('volar/client/autoInsert');
|
|
42
|
-
})(AutoInsertRequest
|
|
42
|
+
})(AutoInsertRequest = exports.AutoInsertRequest || (exports.AutoInsertRequest = {}));
|
|
43
43
|
var WriteVirtualFilesNotification;
|
|
44
44
|
(function (WriteVirtualFilesNotification) {
|
|
45
45
|
WriteVirtualFilesNotification.type = new vscode.NotificationType('volar/client/writeVirtualFiles');
|
|
46
|
-
})(WriteVirtualFilesNotification
|
|
46
|
+
})(WriteVirtualFilesNotification = exports.WriteVirtualFilesNotification || (exports.WriteVirtualFilesNotification = {}));
|
|
47
47
|
var ReloadProjectNotification;
|
|
48
48
|
(function (ReloadProjectNotification) {
|
|
49
49
|
ReloadProjectNotification.type = new vscode.NotificationType('volar/client/reloadProject');
|
|
50
|
-
})(ReloadProjectNotification
|
|
50
|
+
})(ReloadProjectNotification = exports.ReloadProjectNotification || (exports.ReloadProjectNotification = {}));
|
|
51
51
|
var GetVirtualFilesRequest;
|
|
52
52
|
(function (GetVirtualFilesRequest) {
|
|
53
53
|
GetVirtualFilesRequest.type = new vscode.RequestType('volar/client/virtualFiles');
|
|
54
|
-
})(GetVirtualFilesRequest
|
|
54
|
+
})(GetVirtualFilesRequest = exports.GetVirtualFilesRequest || (exports.GetVirtualFilesRequest = {}));
|
|
55
55
|
var GetVirtualFileRequest;
|
|
56
56
|
(function (GetVirtualFileRequest) {
|
|
57
57
|
GetVirtualFileRequest.type = new vscode.RequestType('volar/client/virtualFile');
|
|
58
|
-
})(GetVirtualFileRequest
|
|
58
|
+
})(GetVirtualFileRequest = exports.GetVirtualFileRequest || (exports.GetVirtualFileRequest = {}));
|
|
59
59
|
//# sourceMappingURL=protocol.js.map
|
package/out/types.js
CHANGED
|
@@ -6,11 +6,11 @@ var ServerMode;
|
|
|
6
6
|
ServerMode[ServerMode["Semantic"] = 0] = "Semantic";
|
|
7
7
|
ServerMode[ServerMode["PartialSemantic"] = 1] = "PartialSemantic";
|
|
8
8
|
ServerMode[ServerMode["Syntactic"] = 2] = "Syntactic";
|
|
9
|
-
})(ServerMode
|
|
9
|
+
})(ServerMode = exports.ServerMode || (exports.ServerMode = {}));
|
|
10
10
|
var DiagnosticModel;
|
|
11
11
|
(function (DiagnosticModel) {
|
|
12
12
|
DiagnosticModel[DiagnosticModel["None"] = 0] = "None";
|
|
13
13
|
DiagnosticModel[DiagnosticModel["Push"] = 1] = "Push";
|
|
14
14
|
DiagnosticModel[DiagnosticModel["Pull"] = 2] = "Pull";
|
|
15
|
-
})(DiagnosticModel
|
|
15
|
+
})(DiagnosticModel = exports.DiagnosticModel || (exports.DiagnosticModel = {}));
|
|
16
16
|
//# sourceMappingURL=types.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"directory": "packages/language-server"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@volar/language-core": "1.7.
|
|
19
|
-
"@volar/language-service": "1.7.
|
|
20
|
-
"@volar/typescript": "1.7.
|
|
18
|
+
"@volar/language-core": "1.7.1",
|
|
19
|
+
"@volar/language-service": "1.7.1",
|
|
20
|
+
"@volar/typescript": "1.7.1",
|
|
21
21
|
"@vscode/l10n": "^0.0.11",
|
|
22
22
|
"request-light": "^0.7.0",
|
|
23
23
|
"typesafe-path": "^0.2.2",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"vscode-uri": "^3.0.7"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@volar/source-map": "1.7.
|
|
30
|
+
"@volar/source-map": "1.7.1"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "6d092d684c65ce43af8a401bc90d0b2769a2bf49"
|
|
33
33
|
}
|