@volar/language-server 1.2.0-alpha.9 → 1.3.0-alpha.0
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/documents.js +6 -0
- package/out/common/features/customFeatures.js +9 -8
- package/out/common/features/languageFeatures.d.ts +3 -2
- package/out/common/features/languageFeatures.js +56 -32
- package/out/common/project.d.ts +6 -4
- package/out/common/server.js +1 -1
- package/out/common/workspace.d.ts +54 -36
- package/out/common/workspaces.d.ts +66 -44
- package/out/protocol.d.ts +5 -3
- package/out/types.d.ts +6 -0
- package/package.json +10 -10
|
@@ -71,6 +71,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
71
71
|
};
|
|
72
72
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
73
73
|
getLanguageService: () => {
|
|
74
|
+
triggerCharacters: string[];
|
|
74
75
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
75
76
|
ch: string;
|
|
76
77
|
position: vscode.Position;
|
|
@@ -78,7 +79,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
78
79
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
79
80
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
80
81
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
81
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
82
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
82
83
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
83
84
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
84
85
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -101,7 +102,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
101
102
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
102
103
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
103
104
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
104
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
105
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
105
106
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
106
107
|
lastChange: {
|
|
107
108
|
range: vscode.Range;
|
|
@@ -120,6 +121,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
120
121
|
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
121
122
|
};
|
|
122
123
|
getLanguageServiceDontCreate: () => {
|
|
124
|
+
triggerCharacters: string[];
|
|
123
125
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
124
126
|
ch: string;
|
|
125
127
|
position: vscode.Position;
|
|
@@ -127,7 +129,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
127
129
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
128
130
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
129
131
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
130
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
132
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
131
133
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
132
134
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
133
135
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -150,7 +152,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
150
152
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
151
153
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
152
154
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
153
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
155
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
154
156
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
155
157
|
lastChange: {
|
|
156
158
|
range: vscode.Range;
|
|
@@ -219,6 +221,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
219
221
|
};
|
|
220
222
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
221
223
|
getLanguageService: () => {
|
|
224
|
+
triggerCharacters: string[];
|
|
222
225
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
223
226
|
ch: string;
|
|
224
227
|
position: vscode.Position;
|
|
@@ -226,7 +229,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
226
229
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
227
230
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
228
231
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
229
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
232
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
230
233
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
231
234
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
232
235
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -249,7 +252,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
249
252
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
250
253
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
251
254
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
252
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
255
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
253
256
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
254
257
|
lastChange: {
|
|
255
258
|
range: vscode.Range;
|
|
@@ -268,6 +271,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
268
271
|
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
269
272
|
};
|
|
270
273
|
getLanguageServiceDontCreate: () => {
|
|
274
|
+
triggerCharacters: string[];
|
|
271
275
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
272
276
|
ch: string;
|
|
273
277
|
position: vscode.Position;
|
|
@@ -275,7 +279,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
275
279
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
276
280
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
277
281
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
278
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
282
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
279
283
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
280
284
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
281
285
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -298,7 +302,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
298
302
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
299
303
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
300
304
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
301
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
305
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
302
306
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
303
307
|
lastChange: {
|
|
304
308
|
range: vscode.Range;
|
|
@@ -367,6 +371,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
367
371
|
};
|
|
368
372
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
369
373
|
getLanguageService: () => {
|
|
374
|
+
triggerCharacters: string[];
|
|
370
375
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
371
376
|
ch: string;
|
|
372
377
|
position: vscode.Position;
|
|
@@ -374,7 +379,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
374
379
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
375
380
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
376
381
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
377
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
382
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
378
383
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
379
384
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
380
385
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -397,7 +402,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
397
402
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
398
403
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
399
404
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
400
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
405
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
401
406
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
402
407
|
lastChange: {
|
|
403
408
|
range: vscode.Range;
|
|
@@ -416,6 +421,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
416
421
|
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
417
422
|
};
|
|
418
423
|
getLanguageServiceDontCreate: () => {
|
|
424
|
+
triggerCharacters: string[];
|
|
419
425
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
420
426
|
ch: string;
|
|
421
427
|
position: vscode.Position;
|
|
@@ -423,7 +429,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
423
429
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
424
430
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
425
431
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
426
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
432
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
427
433
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
428
434
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
429
435
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -446,7 +452,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
446
452
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
447
453
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
448
454
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
449
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
455
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
450
456
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
451
457
|
lastChange: {
|
|
452
458
|
range: vscode.Range;
|
|
@@ -515,6 +521,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
515
521
|
};
|
|
516
522
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
517
523
|
getLanguageService: () => {
|
|
524
|
+
triggerCharacters: string[];
|
|
518
525
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
519
526
|
ch: string;
|
|
520
527
|
position: vscode.Position;
|
|
@@ -522,7 +529,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
522
529
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
523
530
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
524
531
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
525
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
532
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
526
533
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
527
534
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
528
535
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -545,7 +552,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
545
552
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
546
553
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
547
554
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
548
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
555
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
549
556
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
550
557
|
lastChange: {
|
|
551
558
|
range: vscode.Range;
|
|
@@ -564,6 +571,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
564
571
|
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
565
572
|
};
|
|
566
573
|
getLanguageServiceDontCreate: () => {
|
|
574
|
+
triggerCharacters: string[];
|
|
567
575
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
568
576
|
ch: string;
|
|
569
577
|
position: vscode.Position;
|
|
@@ -571,7 +579,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
571
579
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
572
580
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
573
581
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
574
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
582
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
575
583
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
576
584
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
577
585
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -594,7 +602,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
594
602
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
595
603
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
596
604
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
597
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
605
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
598
606
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
599
607
|
lastChange: {
|
|
600
608
|
range: vscode.Range;
|
|
@@ -662,6 +670,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
662
670
|
};
|
|
663
671
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
664
672
|
getLanguageService: () => {
|
|
673
|
+
triggerCharacters: string[];
|
|
665
674
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
666
675
|
ch: string;
|
|
667
676
|
position: vscode.Position;
|
|
@@ -669,7 +678,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
669
678
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
670
679
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
671
680
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
672
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
681
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
673
682
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
674
683
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
675
684
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -692,7 +701,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
692
701
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
693
702
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
694
703
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
695
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
704
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
696
705
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
697
706
|
lastChange: {
|
|
698
707
|
range: vscode.Range;
|
|
@@ -711,6 +720,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
711
720
|
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
712
721
|
};
|
|
713
722
|
getLanguageServiceDontCreate: () => {
|
|
723
|
+
triggerCharacters: string[];
|
|
714
724
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
715
725
|
ch: string;
|
|
716
726
|
position: vscode.Position;
|
|
@@ -718,7 +728,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
718
728
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
719
729
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
720
730
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
721
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
731
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
722
732
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
723
733
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
724
734
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -741,7 +751,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
741
751
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
742
752
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
743
753
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
744
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
754
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
745
755
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
746
756
|
lastChange: {
|
|
747
757
|
range: vscode.Range;
|
|
@@ -809,6 +819,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
809
819
|
};
|
|
810
820
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
811
821
|
getLanguageService: () => {
|
|
822
|
+
triggerCharacters: string[];
|
|
812
823
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
813
824
|
ch: string;
|
|
814
825
|
position: vscode.Position;
|
|
@@ -816,7 +827,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
816
827
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
817
828
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
818
829
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
819
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
830
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
820
831
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
821
832
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
822
833
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -839,7 +850,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
839
850
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
840
851
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
841
852
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
842
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
853
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
843
854
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
844
855
|
lastChange: {
|
|
845
856
|
range: vscode.Range;
|
|
@@ -858,6 +869,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
858
869
|
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
859
870
|
};
|
|
860
871
|
getLanguageServiceDontCreate: () => {
|
|
872
|
+
triggerCharacters: string[];
|
|
861
873
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
862
874
|
ch: string;
|
|
863
875
|
position: vscode.Position;
|
|
@@ -865,7 +877,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
865
877
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
866
878
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
867
879
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
868
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
880
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
869
881
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
870
882
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
871
883
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -888,7 +900,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
888
900
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
889
901
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
890
902
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
891
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
903
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
892
904
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
893
905
|
lastChange: {
|
|
894
906
|
range: vscode.Range;
|
|
@@ -960,6 +972,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
960
972
|
};
|
|
961
973
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
962
974
|
getLanguageService: () => {
|
|
975
|
+
triggerCharacters: string[];
|
|
963
976
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
964
977
|
ch: string;
|
|
965
978
|
position: vscode.Position;
|
|
@@ -967,7 +980,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
967
980
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
968
981
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
969
982
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
970
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
983
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
971
984
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
972
985
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
973
986
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -990,7 +1003,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
990
1003
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
991
1004
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
992
1005
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
993
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
1006
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
994
1007
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
995
1008
|
lastChange: {
|
|
996
1009
|
range: vscode.Range;
|
|
@@ -1009,6 +1022,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1009
1022
|
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
1010
1023
|
};
|
|
1011
1024
|
getLanguageServiceDontCreate: () => {
|
|
1025
|
+
triggerCharacters: string[];
|
|
1012
1026
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1013
1027
|
ch: string;
|
|
1014
1028
|
position: vscode.Position;
|
|
@@ -1016,7 +1030,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1016
1030
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1017
1031
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1018
1032
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1019
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
1033
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1020
1034
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1021
1035
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1022
1036
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -1039,7 +1053,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1039
1053
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
1040
1054
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
1041
1055
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
1042
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
1056
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
1043
1057
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
1044
1058
|
lastChange: {
|
|
1045
1059
|
range: vscode.Range;
|
|
@@ -1108,6 +1122,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1108
1122
|
};
|
|
1109
1123
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
1110
1124
|
getLanguageService: () => {
|
|
1125
|
+
triggerCharacters: string[];
|
|
1111
1126
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1112
1127
|
ch: string;
|
|
1113
1128
|
position: vscode.Position;
|
|
@@ -1115,7 +1130,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1115
1130
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1116
1131
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1117
1132
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1118
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
1133
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1119
1134
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1120
1135
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1121
1136
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -1138,7 +1153,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1138
1153
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
1139
1154
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
1140
1155
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
1141
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
1156
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
1142
1157
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
1143
1158
|
lastChange: {
|
|
1144
1159
|
range: vscode.Range;
|
|
@@ -1157,6 +1172,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1157
1172
|
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
1158
1173
|
};
|
|
1159
1174
|
getLanguageServiceDontCreate: () => {
|
|
1175
|
+
triggerCharacters: string[];
|
|
1160
1176
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1161
1177
|
ch: string;
|
|
1162
1178
|
position: vscode.Position;
|
|
@@ -1164,7 +1180,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1164
1180
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1165
1181
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1166
1182
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1167
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
1183
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1168
1184
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1169
1185
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1170
1186
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -1187,7 +1203,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1187
1203
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
1188
1204
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
1189
1205
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
1190
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
1206
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
1191
1207
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
1192
1208
|
lastChange: {
|
|
1193
1209
|
range: vscode.Range;
|
|
@@ -1255,6 +1271,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1255
1271
|
};
|
|
1256
1272
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
1257
1273
|
getLanguageService: () => {
|
|
1274
|
+
triggerCharacters: string[];
|
|
1258
1275
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1259
1276
|
ch: string;
|
|
1260
1277
|
position: vscode.Position;
|
|
@@ -1262,7 +1279,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1262
1279
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1263
1280
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1264
1281
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1265
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
1282
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1266
1283
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1267
1284
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1268
1285
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -1285,7 +1302,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1285
1302
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
1286
1303
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
1287
1304
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
1288
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
1305
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
1289
1306
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
1290
1307
|
lastChange: {
|
|
1291
1308
|
range: vscode.Range;
|
|
@@ -1304,6 +1321,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1304
1321
|
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
1305
1322
|
};
|
|
1306
1323
|
getLanguageServiceDontCreate: () => {
|
|
1324
|
+
triggerCharacters: string[];
|
|
1307
1325
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1308
1326
|
ch: string;
|
|
1309
1327
|
position: vscode.Position;
|
|
@@ -1311,7 +1329,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1311
1329
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1312
1330
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1313
1331
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1314
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
1332
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1315
1333
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1316
1334
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1317
1335
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -1334,7 +1352,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1334
1352
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
1335
1353
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
1336
1354
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
1337
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
1355
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
1338
1356
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
1339
1357
|
lastChange: {
|
|
1340
1358
|
range: vscode.Range;
|
|
@@ -1407,6 +1425,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1407
1425
|
};
|
|
1408
1426
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
1409
1427
|
getLanguageService: () => {
|
|
1428
|
+
triggerCharacters: string[];
|
|
1410
1429
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1411
1430
|
ch: string;
|
|
1412
1431
|
position: vscode.Position;
|
|
@@ -1414,7 +1433,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1414
1433
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1415
1434
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1416
1435
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1417
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
1436
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1418
1437
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1419
1438
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1420
1439
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -1437,7 +1456,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1437
1456
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
1438
1457
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
1439
1458
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
1440
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
1459
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
1441
1460
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
1442
1461
|
lastChange: {
|
|
1443
1462
|
range: vscode.Range;
|
|
@@ -1456,6 +1475,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1456
1475
|
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
1457
1476
|
};
|
|
1458
1477
|
getLanguageServiceDontCreate: () => {
|
|
1478
|
+
triggerCharacters: string[];
|
|
1459
1479
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1460
1480
|
ch: string;
|
|
1461
1481
|
position: vscode.Position;
|
|
@@ -1463,7 +1483,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1463
1483
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1464
1484
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1465
1485
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1466
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
1486
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1467
1487
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1468
1488
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1469
1489
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -1486,7 +1506,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1486
1506
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
1487
1507
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
1488
1508
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
1489
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
1509
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
1490
1510
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
1491
1511
|
lastChange: {
|
|
1492
1512
|
range: vscode.Range;
|
|
@@ -1556,6 +1576,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1556
1576
|
};
|
|
1557
1577
|
languageServiceHost: import("@volar/language-service").LanguageServiceHost;
|
|
1558
1578
|
getLanguageService: () => {
|
|
1579
|
+
triggerCharacters: string[];
|
|
1559
1580
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1560
1581
|
ch: string;
|
|
1561
1582
|
position: vscode.Position;
|
|
@@ -1563,7 +1584,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1563
1584
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1564
1585
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1565
1586
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1566
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
1587
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1567
1588
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1568
1589
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1569
1590
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -1586,7 +1607,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1586
1607
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
1587
1608
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
1588
1609
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
1589
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
1610
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
1590
1611
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
1591
1612
|
lastChange: {
|
|
1592
1613
|
range: vscode.Range;
|
|
@@ -1605,6 +1626,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1605
1626
|
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
1606
1627
|
};
|
|
1607
1628
|
getLanguageServiceDontCreate: () => {
|
|
1629
|
+
triggerCharacters: string[];
|
|
1608
1630
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
1609
1631
|
ch: string;
|
|
1610
1632
|
position: vscode.Position;
|
|
@@ -1612,7 +1634,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1612
1634
|
getFoldingRanges: (uri: string) => Promise<vscode.FoldingRange[] | undefined>;
|
|
1613
1635
|
getSelectionRanges: (uri: string, positions: vscode.Position[]) => Promise<vscode.SelectionRange[] | undefined>;
|
|
1614
1636
|
findLinkedEditingRanges: (uri: string, position: vscode.Position) => Promise<vscode.LinkedEditingRanges | undefined>;
|
|
1615
|
-
findDocumentSymbols: (uri: string) => Promise<vscode.
|
|
1637
|
+
findDocumentSymbols: (uri: string) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1616
1638
|
findDocumentColors: (uri: string) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1617
1639
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1618
1640
|
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
@@ -1635,7 +1657,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1635
1657
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
1636
1658
|
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
1637
1659
|
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
1638
|
-
findWorkspaceSymbols: (query: string) => Promise<vscode.
|
|
1660
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.WorkspaceSymbol[]>;
|
|
1639
1661
|
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
1640
1662
|
lastChange: {
|
|
1641
1663
|
range: vscode.Range;
|
package/out/protocol.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vscode from 'vscode-languageserver-protocol';
|
|
2
2
|
import type * as html from 'vscode-html-languageservice';
|
|
3
|
-
import type { FileRangeCapabilities } from '@volar/language-core';
|
|
3
|
+
import type { FileKind, FileRangeCapabilities } from '@volar/language-core';
|
|
4
4
|
/**
|
|
5
5
|
* Server request client
|
|
6
6
|
*/
|
|
@@ -60,10 +60,12 @@ export declare namespace ReloadProjectNotification {
|
|
|
60
60
|
const type: vscode.NotificationType<vscode.TextDocumentIdentifier>;
|
|
61
61
|
}
|
|
62
62
|
export declare namespace GetVirtualFileNamesRequest {
|
|
63
|
-
type ParamsType = vscode.TextDocumentIdentifier
|
|
63
|
+
type ParamsType = vscode.TextDocumentIdentifier & {
|
|
64
|
+
fileKinds?: FileKind[];
|
|
65
|
+
};
|
|
64
66
|
type ResponseType = string[];
|
|
65
67
|
type ErrorType = never;
|
|
66
|
-
const type: vscode.RequestType<
|
|
68
|
+
const type: vscode.RequestType<ParamsType, ResponseType, never>;
|
|
67
69
|
}
|
|
68
70
|
export declare namespace GetVirtualFileRequest {
|
|
69
71
|
type ParamsType = {
|
package/out/types.d.ts
CHANGED
|
@@ -63,6 +63,12 @@ export interface LanguageServerInitializationOptions {
|
|
|
63
63
|
serverMode?: ServerMode;
|
|
64
64
|
diagnosticModel?: DiagnosticModel;
|
|
65
65
|
textDocumentSync?: vscode.TextDocumentSyncKind | number;
|
|
66
|
+
/**
|
|
67
|
+
* For better JSON parsing performance language server will filter CompletionList.
|
|
68
|
+
*
|
|
69
|
+
* Enable this option if you want to get complete CompletionList in language client.
|
|
70
|
+
*/
|
|
71
|
+
fullCompletionList?: boolean;
|
|
66
72
|
ignoreTriggerCharacters?: string[];
|
|
67
73
|
/**
|
|
68
74
|
* https://github.com/Microsoft/TypeScript/wiki/Standalone-Server-%28tsserver%29#cancellation
|