@volar/language-server 1.6.7 → 1.6.9-patch.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/browser/fileSystems.js +9 -1
- package/out/common/features/customFeatures.js +27 -58
- package/out/common/features/languageFeatures.js +6 -2
- package/out/common/project.d.ts +18 -8
- package/out/common/project.js +31 -8
- package/out/common/workspace.d.ts +163 -65
- package/out/common/workspace.js +2 -8
- package/out/common/workspaces.d.ts +200 -80
- package/out/protocol.d.ts +0 -3
- package/out/protocol.js +1 -5
- package/out/types.d.ts +3 -3
- package/package.json +6 -4
|
@@ -14,7 +14,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
14
14
|
projects: {
|
|
15
15
|
clear: () => void;
|
|
16
16
|
values: () => IterableIterator<Promise<{
|
|
17
|
-
|
|
17
|
+
readFiles: Set<string>;
|
|
18
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
18
19
|
scripts: {
|
|
19
20
|
clear: () => void;
|
|
20
21
|
values: () => IterableIterator<{
|
|
@@ -79,7 +80,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
79
80
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
80
81
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
81
82
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
82
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
83
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
84
|
+
range: vscode.Range;
|
|
85
|
+
placeholder: string;
|
|
86
|
+
} | {
|
|
87
|
+
message: string;
|
|
88
|
+
} | null | undefined> | undefined>;
|
|
83
89
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
84
90
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
85
91
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -103,8 +109,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
103
109
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
104
110
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
105
111
|
};
|
|
106
|
-
dispose: () => void
|
|
107
|
-
context: import("@volar/language-service").ServiceContext
|
|
112
|
+
dispose: () => void;
|
|
113
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
108
114
|
};
|
|
109
115
|
getLanguageServiceDontCreate: () => {
|
|
110
116
|
triggerCharacters: string[];
|
|
@@ -127,7 +133,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
127
133
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
128
134
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
129
135
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
130
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
136
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
137
|
+
range: vscode.Range;
|
|
138
|
+
placeholder: string;
|
|
139
|
+
} | {
|
|
140
|
+
message: string;
|
|
141
|
+
} | null | undefined> | undefined>;
|
|
131
142
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
132
143
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
133
144
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -151,8 +162,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
151
162
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
152
163
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
153
164
|
};
|
|
154
|
-
dispose: () => void
|
|
155
|
-
context: import("@volar/language-service").ServiceContext
|
|
165
|
+
dispose: () => void;
|
|
166
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
156
167
|
} | undefined;
|
|
157
168
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
158
169
|
tryAddFile: (fileName: string) => void;
|
|
@@ -160,7 +171,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
160
171
|
}>>;
|
|
161
172
|
uriDelete: (_uri: string) => boolean;
|
|
162
173
|
uriGet: (_uri: string) => Promise<{
|
|
163
|
-
|
|
174
|
+
readFiles: Set<string>;
|
|
175
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
164
176
|
scripts: {
|
|
165
177
|
clear: () => void;
|
|
166
178
|
values: () => IterableIterator<{
|
|
@@ -225,7 +237,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
225
237
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
226
238
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
227
239
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
228
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
240
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
241
|
+
range: vscode.Range;
|
|
242
|
+
placeholder: string;
|
|
243
|
+
} | {
|
|
244
|
+
message: string;
|
|
245
|
+
} | null | undefined> | undefined>;
|
|
229
246
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
230
247
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
231
248
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -249,8 +266,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
249
266
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
250
267
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
251
268
|
};
|
|
252
|
-
dispose: () => void
|
|
253
|
-
context: import("@volar/language-service").ServiceContext
|
|
269
|
+
dispose: () => void;
|
|
270
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
254
271
|
};
|
|
255
272
|
getLanguageServiceDontCreate: () => {
|
|
256
273
|
triggerCharacters: string[];
|
|
@@ -273,7 +290,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
273
290
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
274
291
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
275
292
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
276
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
293
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
294
|
+
range: vscode.Range;
|
|
295
|
+
placeholder: string;
|
|
296
|
+
} | {
|
|
297
|
+
message: string;
|
|
298
|
+
} | null | undefined> | undefined>;
|
|
277
299
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
278
300
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
279
301
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -297,8 +319,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
297
319
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
298
320
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
299
321
|
};
|
|
300
|
-
dispose: () => void
|
|
301
|
-
context: import("@volar/language-service").ServiceContext
|
|
322
|
+
dispose: () => void;
|
|
323
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
302
324
|
} | undefined;
|
|
303
325
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
304
326
|
tryAddFile: (fileName: string) => void;
|
|
@@ -306,7 +328,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
306
328
|
}> | undefined;
|
|
307
329
|
uriHas: (_uri: string) => boolean;
|
|
308
330
|
uriSet: (_uri: string, item: Promise<{
|
|
309
|
-
|
|
331
|
+
readFiles: Set<string>;
|
|
332
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
310
333
|
scripts: {
|
|
311
334
|
clear: () => void;
|
|
312
335
|
values: () => IterableIterator<{
|
|
@@ -371,7 +394,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
371
394
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
372
395
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
373
396
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
374
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
397
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
398
|
+
range: vscode.Range;
|
|
399
|
+
placeholder: string;
|
|
400
|
+
} | {
|
|
401
|
+
message: string;
|
|
402
|
+
} | null | undefined> | undefined>;
|
|
375
403
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
376
404
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
377
405
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -395,8 +423,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
395
423
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
396
424
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
397
425
|
};
|
|
398
|
-
dispose: () => void
|
|
399
|
-
context: import("@volar/language-service").ServiceContext
|
|
426
|
+
dispose: () => void;
|
|
427
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
400
428
|
};
|
|
401
429
|
getLanguageServiceDontCreate: () => {
|
|
402
430
|
triggerCharacters: string[];
|
|
@@ -419,7 +447,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
419
447
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
420
448
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
421
449
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
422
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
450
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
451
|
+
range: vscode.Range;
|
|
452
|
+
placeholder: string;
|
|
453
|
+
} | {
|
|
454
|
+
message: string;
|
|
455
|
+
} | null | undefined> | undefined>;
|
|
423
456
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
424
457
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
425
458
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -443,8 +476,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
443
476
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
444
477
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
445
478
|
};
|
|
446
|
-
dispose: () => void
|
|
447
|
-
context: import("@volar/language-service").ServiceContext
|
|
479
|
+
dispose: () => void;
|
|
480
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
448
481
|
} | undefined;
|
|
449
482
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
450
483
|
tryAddFile: (fileName: string) => void;
|
|
@@ -452,7 +485,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
452
485
|
}>) => void;
|
|
453
486
|
pathDelete: (path: string) => boolean;
|
|
454
487
|
pathGet: (path: string) => Promise<{
|
|
455
|
-
|
|
488
|
+
readFiles: Set<string>;
|
|
489
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
456
490
|
scripts: {
|
|
457
491
|
clear: () => void;
|
|
458
492
|
values: () => IterableIterator<{
|
|
@@ -517,7 +551,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
517
551
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
518
552
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
519
553
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
520
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
554
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
555
|
+
range: vscode.Range;
|
|
556
|
+
placeholder: string;
|
|
557
|
+
} | {
|
|
558
|
+
message: string;
|
|
559
|
+
} | null | undefined> | undefined>;
|
|
521
560
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
522
561
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
523
562
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -541,8 +580,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
541
580
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
542
581
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
543
582
|
};
|
|
544
|
-
dispose: () => void
|
|
545
|
-
context: import("@volar/language-service").ServiceContext
|
|
583
|
+
dispose: () => void;
|
|
584
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
546
585
|
};
|
|
547
586
|
getLanguageServiceDontCreate: () => {
|
|
548
587
|
triggerCharacters: string[];
|
|
@@ -565,7 +604,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
565
604
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
566
605
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
567
606
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
568
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
607
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
608
|
+
range: vscode.Range;
|
|
609
|
+
placeholder: string;
|
|
610
|
+
} | {
|
|
611
|
+
message: string;
|
|
612
|
+
} | null | undefined> | undefined>;
|
|
569
613
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
570
614
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
571
615
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -589,15 +633,16 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
589
633
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
590
634
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
591
635
|
};
|
|
592
|
-
dispose: () => void
|
|
593
|
-
context: import("@volar/language-service").ServiceContext
|
|
636
|
+
dispose: () => void;
|
|
637
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
594
638
|
} | undefined;
|
|
595
639
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
596
640
|
tryAddFile: (fileName: string) => void;
|
|
597
641
|
dispose: () => void;
|
|
598
642
|
}> | undefined;
|
|
599
643
|
pathHas: (path: string) => Promise<{
|
|
600
|
-
|
|
644
|
+
readFiles: Set<string>;
|
|
645
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
601
646
|
scripts: {
|
|
602
647
|
clear: () => void;
|
|
603
648
|
values: () => IterableIterator<{
|
|
@@ -662,7 +707,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
662
707
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
663
708
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
664
709
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
665
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
710
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
711
|
+
range: vscode.Range;
|
|
712
|
+
placeholder: string;
|
|
713
|
+
} | {
|
|
714
|
+
message: string;
|
|
715
|
+
} | null | undefined> | undefined>;
|
|
666
716
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
667
717
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
668
718
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -686,8 +736,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
686
736
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
687
737
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
688
738
|
};
|
|
689
|
-
dispose: () => void
|
|
690
|
-
context: import("@volar/language-service").ServiceContext
|
|
739
|
+
dispose: () => void;
|
|
740
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
691
741
|
};
|
|
692
742
|
getLanguageServiceDontCreate: () => {
|
|
693
743
|
triggerCharacters: string[];
|
|
@@ -710,7 +760,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
710
760
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
711
761
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
712
762
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
713
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
763
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
764
|
+
range: vscode.Range;
|
|
765
|
+
placeholder: string;
|
|
766
|
+
} | {
|
|
767
|
+
message: string;
|
|
768
|
+
} | null | undefined> | undefined>;
|
|
714
769
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
715
770
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
716
771
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -734,15 +789,16 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
734
789
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
735
790
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
736
791
|
};
|
|
737
|
-
dispose: () => void
|
|
738
|
-
context: import("@volar/language-service").ServiceContext
|
|
792
|
+
dispose: () => void;
|
|
793
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
739
794
|
} | undefined;
|
|
740
795
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
741
796
|
tryAddFile: (fileName: string) => void;
|
|
742
797
|
dispose: () => void;
|
|
743
798
|
}> | undefined;
|
|
744
799
|
pathSet: (path: string, item: Promise<{
|
|
745
|
-
|
|
800
|
+
readFiles: Set<string>;
|
|
801
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
746
802
|
scripts: {
|
|
747
803
|
clear: () => void;
|
|
748
804
|
values: () => IterableIterator<{
|
|
@@ -807,7 +863,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
807
863
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
808
864
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
809
865
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
810
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
866
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
867
|
+
range: vscode.Range;
|
|
868
|
+
placeholder: string;
|
|
869
|
+
} | {
|
|
870
|
+
message: string;
|
|
871
|
+
} | null | undefined> | undefined>;
|
|
811
872
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
812
873
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
813
874
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -831,8 +892,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
831
892
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
832
893
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
833
894
|
};
|
|
834
|
-
dispose: () => void
|
|
835
|
-
context: import("@volar/language-service").ServiceContext
|
|
895
|
+
dispose: () => void;
|
|
896
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
836
897
|
};
|
|
837
898
|
getLanguageServiceDontCreate: () => {
|
|
838
899
|
triggerCharacters: string[];
|
|
@@ -855,7 +916,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
855
916
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
856
917
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
857
918
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
858
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
919
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
920
|
+
range: vscode.Range;
|
|
921
|
+
placeholder: string;
|
|
922
|
+
} | {
|
|
923
|
+
message: string;
|
|
924
|
+
} | null | undefined> | undefined>;
|
|
859
925
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
860
926
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
861
927
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -879,19 +945,19 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
879
945
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
880
946
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
881
947
|
};
|
|
882
|
-
dispose: () => void
|
|
883
|
-
context: import("@volar/language-service").ServiceContext
|
|
948
|
+
dispose: () => void;
|
|
949
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
884
950
|
} | undefined;
|
|
885
951
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
886
952
|
tryAddFile: (fileName: string) => void;
|
|
887
953
|
dispose: () => void;
|
|
888
954
|
}>) => void;
|
|
889
955
|
};
|
|
890
|
-
documentRegistry: ts.DocumentRegistry | undefined;
|
|
891
956
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
892
957
|
tsconfig: string;
|
|
893
958
|
project: {
|
|
894
|
-
|
|
959
|
+
readFiles: Set<string>;
|
|
960
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
895
961
|
scripts: {
|
|
896
962
|
clear: () => void;
|
|
897
963
|
values: () => IterableIterator<{
|
|
@@ -956,7 +1022,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
956
1022
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
957
1023
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
958
1024
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
959
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
1025
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
1026
|
+
range: vscode.Range;
|
|
1027
|
+
placeholder: string;
|
|
1028
|
+
} | {
|
|
1029
|
+
message: string;
|
|
1030
|
+
} | null | undefined> | undefined>;
|
|
960
1031
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
961
1032
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
962
1033
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -980,8 +1051,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
980
1051
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
981
1052
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
982
1053
|
};
|
|
983
|
-
dispose: () => void
|
|
984
|
-
context: import("@volar/language-service").ServiceContext
|
|
1054
|
+
dispose: () => void;
|
|
1055
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
985
1056
|
};
|
|
986
1057
|
getLanguageServiceDontCreate: () => {
|
|
987
1058
|
triggerCharacters: string[];
|
|
@@ -1004,7 +1075,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1004
1075
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1005
1076
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1006
1077
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1007
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
1078
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
1079
|
+
range: vscode.Range;
|
|
1080
|
+
placeholder: string;
|
|
1081
|
+
} | {
|
|
1082
|
+
message: string;
|
|
1083
|
+
} | null | undefined> | undefined>;
|
|
1008
1084
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
1009
1085
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
1010
1086
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -1028,16 +1104,17 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1028
1104
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1029
1105
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1030
1106
|
};
|
|
1031
|
-
dispose: () => void
|
|
1032
|
-
context: import("@volar/language-service").ServiceContext
|
|
1107
|
+
dispose: () => void;
|
|
1108
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1033
1109
|
} | undefined;
|
|
1034
1110
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1035
1111
|
tryAddFile: (fileName: string) => void;
|
|
1036
1112
|
dispose: () => void;
|
|
1037
|
-
}
|
|
1113
|
+
};
|
|
1038
1114
|
} | undefined>;
|
|
1039
1115
|
getInferredProject: () => Promise<{
|
|
1040
|
-
|
|
1116
|
+
readFiles: Set<string>;
|
|
1117
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
1041
1118
|
scripts: {
|
|
1042
1119
|
clear: () => void;
|
|
1043
1120
|
values: () => IterableIterator<{
|
|
@@ -1102,7 +1179,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1102
1179
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1103
1180
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1104
1181
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1105
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
1182
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
1183
|
+
range: vscode.Range;
|
|
1184
|
+
placeholder: string;
|
|
1185
|
+
} | {
|
|
1186
|
+
message: string;
|
|
1187
|
+
} | null | undefined> | undefined>;
|
|
1106
1188
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
1107
1189
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
1108
1190
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -1126,8 +1208,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1126
1208
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1127
1209
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1128
1210
|
};
|
|
1129
|
-
dispose: () => void
|
|
1130
|
-
context: import("@volar/language-service").ServiceContext
|
|
1211
|
+
dispose: () => void;
|
|
1212
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1131
1213
|
};
|
|
1132
1214
|
getLanguageServiceDontCreate: () => {
|
|
1133
1215
|
triggerCharacters: string[];
|
|
@@ -1150,7 +1232,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1150
1232
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1151
1233
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1152
1234
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1153
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
1235
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
1236
|
+
range: vscode.Range;
|
|
1237
|
+
placeholder: string;
|
|
1238
|
+
} | {
|
|
1239
|
+
message: string;
|
|
1240
|
+
} | null | undefined> | undefined>;
|
|
1154
1241
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
1155
1242
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
1156
1243
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -1174,15 +1261,16 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1174
1261
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1175
1262
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1176
1263
|
};
|
|
1177
|
-
dispose: () => void
|
|
1178
|
-
context: import("@volar/language-service").ServiceContext
|
|
1264
|
+
dispose: () => void;
|
|
1265
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1179
1266
|
} | undefined;
|
|
1180
1267
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1181
1268
|
tryAddFile: (fileName: string) => void;
|
|
1182
1269
|
dispose: () => void;
|
|
1183
1270
|
}>;
|
|
1184
1271
|
getInferredProjectDontCreate: () => Promise<{
|
|
1185
|
-
|
|
1272
|
+
readFiles: Set<string>;
|
|
1273
|
+
tsConfig: import("typesafe-path").PosixPath | ts.CompilerOptions;
|
|
1186
1274
|
scripts: {
|
|
1187
1275
|
clear: () => void;
|
|
1188
1276
|
values: () => IterableIterator<{
|
|
@@ -1247,7 +1335,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1247
1335
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1248
1336
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1249
1337
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1250
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
1338
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
1339
|
+
range: vscode.Range;
|
|
1340
|
+
placeholder: string;
|
|
1341
|
+
} | {
|
|
1342
|
+
message: string;
|
|
1343
|
+
} | null | undefined> | undefined>;
|
|
1251
1344
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
1252
1345
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
1253
1346
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -1271,8 +1364,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1271
1364
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1272
1365
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1273
1366
|
};
|
|
1274
|
-
dispose: () => void
|
|
1275
|
-
context: import("@volar/language-service").ServiceContext
|
|
1367
|
+
dispose: () => void;
|
|
1368
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1276
1369
|
};
|
|
1277
1370
|
getLanguageServiceDontCreate: () => {
|
|
1278
1371
|
triggerCharacters: string[];
|
|
@@ -1295,7 +1388,12 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1295
1388
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1296
1389
|
findTypeDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1297
1390
|
findImplementations: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
1298
|
-
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range |
|
|
1391
|
+
prepareRename: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<NonNullable<vscode.Range | {
|
|
1392
|
+
range: vscode.Range;
|
|
1393
|
+
placeholder: string;
|
|
1394
|
+
} | {
|
|
1395
|
+
message: string;
|
|
1396
|
+
} | null | undefined> | undefined>;
|
|
1299
1397
|
doRename: (uri: string, position: vscode.Position, newName: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
1300
1398
|
getEditsForFileRename: (oldUri: string, newUri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
1301
1399
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, legend: vscode.SemanticTokensLegend, token?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: vscode.SemanticTokens) => void) | undefined) => Promise<vscode.SemanticTokens | undefined>;
|
|
@@ -1319,8 +1417,8 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1319
1417
|
getIncomingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
1320
1418
|
getOutgoingCalls(item: vscode.CallHierarchyItem, token: vscode.CancellationToken): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1321
1419
|
};
|
|
1322
|
-
dispose: () => void
|
|
1323
|
-
context: import("@volar/language-service").ServiceContext
|
|
1420
|
+
dispose: () => void;
|
|
1421
|
+
context: import("@volar/language-service").ServiceContext<any>;
|
|
1324
1422
|
} | undefined;
|
|
1325
1423
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1326
1424
|
tryAddFile: (fileName: string) => void;
|
package/out/common/workspace.js
CHANGED
|
@@ -14,7 +14,6 @@ async function createWorkspace(context) {
|
|
|
14
14
|
const uriToFileName = context.server.runtimeEnv.uriToFileName;
|
|
15
15
|
let inferredProject;
|
|
16
16
|
const sys = context.workspaces.fileSystemHost?.getWorkspaceFileSystem(context.workspace.rootUri);
|
|
17
|
-
const documentRegistry = sys ? context.workspaces.ts?.createDocumentRegistry(sys.useCaseSensitiveFileNames, uriToFileName(context.workspace.rootUri.toString())) : undefined;
|
|
18
17
|
const projects = (0, uriMap_1.createUriMap)(fileNameToUri);
|
|
19
18
|
const rootTsConfigs = new Set();
|
|
20
19
|
const searchedDirs = new Set();
|
|
@@ -39,7 +38,6 @@ async function createWorkspace(context) {
|
|
|
39
38
|
});
|
|
40
39
|
return {
|
|
41
40
|
projects,
|
|
42
|
-
documentRegistry,
|
|
43
41
|
getProjectAndTsConfig,
|
|
44
42
|
getInferredProject,
|
|
45
43
|
getInferredProjectDontCreate: () => inferredProject,
|
|
@@ -79,7 +77,6 @@ async function createWorkspace(context) {
|
|
|
79
77
|
project: {
|
|
80
78
|
rootUri: context.workspace.rootUri,
|
|
81
79
|
tsConfig: inferOptions,
|
|
82
|
-
documentRegistry,
|
|
83
80
|
},
|
|
84
81
|
});
|
|
85
82
|
})();
|
|
@@ -129,9 +126,7 @@ async function createWorkspace(context) {
|
|
|
129
126
|
function findIndirectReferenceTsconfig() {
|
|
130
127
|
return findTsconfig(async (tsconfig) => {
|
|
131
128
|
const project = await projects.pathGet(tsconfig);
|
|
132
|
-
|
|
133
|
-
const validDoc = ls?.context.typescript?.languageService.getProgram()?.getSourceFile(uriToFileName(uri.toString()));
|
|
134
|
-
return !!validDoc;
|
|
129
|
+
return project?.readFiles.has(uriToFileName(uri.toString())) ?? false;
|
|
135
130
|
});
|
|
136
131
|
}
|
|
137
132
|
async function findTsconfig(match) {
|
|
@@ -200,13 +195,12 @@ async function createWorkspace(context) {
|
|
|
200
195
|
function getProjectByCreate(_tsConfig) {
|
|
201
196
|
const tsConfig = _tsConfig.replace(/\\/g, '/');
|
|
202
197
|
let project = projects.pathGet(tsConfig);
|
|
203
|
-
if (!project
|
|
198
|
+
if (!project) {
|
|
204
199
|
project = (0, project_1.createProject)({
|
|
205
200
|
...context,
|
|
206
201
|
project: {
|
|
207
202
|
rootUri: vscode_uri_1.URI.parse(fileNameToUri(path.dirname(tsConfig))),
|
|
208
203
|
tsConfig,
|
|
209
|
-
documentRegistry,
|
|
210
204
|
},
|
|
211
205
|
});
|
|
212
206
|
projects.pathSet(tsConfig, project);
|