@volar/language-server 1.1.0-alpha.2 → 1.2.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/common/features/customFeatures.js +1 -1
- package/out/common/features/languageFeatures.js +78 -81
- package/out/common/project.d.ts +5 -7
- package/out/common/project.js +30 -35
- package/out/common/utils/registerFeatures.js +9 -9
- package/out/common/utils/serverConfig.d.ts +2 -5
- package/out/common/utils/serverConfig.js +3 -3
- package/out/common/workspace.d.ts +27 -45
- package/out/common/workspace.js +1 -1
- package/out/common/workspaces.d.ts +34 -56
- package/out/common/workspaces.js +2 -11
- package/out/types.d.ts +10 -5
- package/package.json +10 -10
|
@@ -12,7 +12,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
12
12
|
projects: {
|
|
13
13
|
clear: () => void;
|
|
14
14
|
values: () => IterableIterator<Promise<{
|
|
15
|
-
tsConfig:
|
|
15
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
16
16
|
scripts: {
|
|
17
17
|
clear: () => void;
|
|
18
18
|
values: () => IterableIterator<{
|
|
@@ -96,7 +96,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
96
96
|
text: string;
|
|
97
97
|
};
|
|
98
98
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
99
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
100
99
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
101
100
|
callHierarchy: {
|
|
102
101
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -104,7 +103,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
104
103
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
105
104
|
};
|
|
106
105
|
dispose: () => void | undefined;
|
|
107
|
-
context: import("@volar/language-service").
|
|
106
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
108
107
|
};
|
|
109
108
|
getLanguageServiceDontCreate: () => {
|
|
110
109
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
@@ -146,7 +145,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
146
145
|
text: string;
|
|
147
146
|
};
|
|
148
147
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
149
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
150
148
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
151
149
|
callHierarchy: {
|
|
152
150
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -154,7 +152,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
154
152
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
155
153
|
};
|
|
156
154
|
dispose: () => void | undefined;
|
|
157
|
-
context: import("@volar/language-service").
|
|
155
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
158
156
|
} | undefined;
|
|
159
157
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
160
158
|
tryAddFile: (fileName: string) => void;
|
|
@@ -162,7 +160,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
162
160
|
}>>;
|
|
163
161
|
uriDelete: (_uri: string) => boolean;
|
|
164
162
|
uriGet: (_uri: string) => Promise<{
|
|
165
|
-
tsConfig:
|
|
163
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
166
164
|
scripts: {
|
|
167
165
|
clear: () => void;
|
|
168
166
|
values: () => IterableIterator<{
|
|
@@ -246,7 +244,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
246
244
|
text: string;
|
|
247
245
|
};
|
|
248
246
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
249
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
250
247
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
251
248
|
callHierarchy: {
|
|
252
249
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -254,7 +251,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
254
251
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
255
252
|
};
|
|
256
253
|
dispose: () => void | undefined;
|
|
257
|
-
context: import("@volar/language-service").
|
|
254
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
258
255
|
};
|
|
259
256
|
getLanguageServiceDontCreate: () => {
|
|
260
257
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
@@ -296,7 +293,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
296
293
|
text: string;
|
|
297
294
|
};
|
|
298
295
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
299
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
300
296
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
301
297
|
callHierarchy: {
|
|
302
298
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -304,7 +300,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
304
300
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
305
301
|
};
|
|
306
302
|
dispose: () => void | undefined;
|
|
307
|
-
context: import("@volar/language-service").
|
|
303
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
308
304
|
} | undefined;
|
|
309
305
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
310
306
|
tryAddFile: (fileName: string) => void;
|
|
@@ -312,7 +308,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
312
308
|
}> | undefined;
|
|
313
309
|
uriHas: (_uri: string) => boolean;
|
|
314
310
|
uriSet: (_uri: string, item: Promise<{
|
|
315
|
-
tsConfig:
|
|
311
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
316
312
|
scripts: {
|
|
317
313
|
clear: () => void;
|
|
318
314
|
values: () => IterableIterator<{
|
|
@@ -396,7 +392,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
396
392
|
text: string;
|
|
397
393
|
};
|
|
398
394
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
399
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
400
395
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
401
396
|
callHierarchy: {
|
|
402
397
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -404,7 +399,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
404
399
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
405
400
|
};
|
|
406
401
|
dispose: () => void | undefined;
|
|
407
|
-
context: import("@volar/language-service").
|
|
402
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
408
403
|
};
|
|
409
404
|
getLanguageServiceDontCreate: () => {
|
|
410
405
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
@@ -446,7 +441,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
446
441
|
text: string;
|
|
447
442
|
};
|
|
448
443
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
449
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
450
444
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
451
445
|
callHierarchy: {
|
|
452
446
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -454,7 +448,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
454
448
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
455
449
|
};
|
|
456
450
|
dispose: () => void | undefined;
|
|
457
|
-
context: import("@volar/language-service").
|
|
451
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
458
452
|
} | undefined;
|
|
459
453
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
460
454
|
tryAddFile: (fileName: string) => void;
|
|
@@ -462,7 +456,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
462
456
|
}>) => void;
|
|
463
457
|
pathDelete: (path: string) => boolean;
|
|
464
458
|
pathGet: (path: string) => Promise<{
|
|
465
|
-
tsConfig:
|
|
459
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
466
460
|
scripts: {
|
|
467
461
|
clear: () => void;
|
|
468
462
|
values: () => IterableIterator<{
|
|
@@ -546,7 +540,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
546
540
|
text: string;
|
|
547
541
|
};
|
|
548
542
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
549
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
550
543
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
551
544
|
callHierarchy: {
|
|
552
545
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -554,7 +547,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
554
547
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
555
548
|
};
|
|
556
549
|
dispose: () => void | undefined;
|
|
557
|
-
context: import("@volar/language-service").
|
|
550
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
558
551
|
};
|
|
559
552
|
getLanguageServiceDontCreate: () => {
|
|
560
553
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
@@ -596,7 +589,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
596
589
|
text: string;
|
|
597
590
|
};
|
|
598
591
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
599
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
600
592
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
601
593
|
callHierarchy: {
|
|
602
594
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -604,14 +596,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
604
596
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
605
597
|
};
|
|
606
598
|
dispose: () => void | undefined;
|
|
607
|
-
context: import("@volar/language-service").
|
|
599
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
608
600
|
} | undefined;
|
|
609
601
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
610
602
|
tryAddFile: (fileName: string) => void;
|
|
611
603
|
dispose: () => void;
|
|
612
604
|
}> | undefined;
|
|
613
605
|
pathHas: (path: string) => Promise<{
|
|
614
|
-
tsConfig:
|
|
606
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
615
607
|
scripts: {
|
|
616
608
|
clear: () => void;
|
|
617
609
|
values: () => IterableIterator<{
|
|
@@ -695,7 +687,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
695
687
|
text: string;
|
|
696
688
|
};
|
|
697
689
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
698
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
699
690
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
700
691
|
callHierarchy: {
|
|
701
692
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -703,7 +694,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
703
694
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
704
695
|
};
|
|
705
696
|
dispose: () => void | undefined;
|
|
706
|
-
context: import("@volar/language-service").
|
|
697
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
707
698
|
};
|
|
708
699
|
getLanguageServiceDontCreate: () => {
|
|
709
700
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
@@ -745,7 +736,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
745
736
|
text: string;
|
|
746
737
|
};
|
|
747
738
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
748
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
749
739
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
750
740
|
callHierarchy: {
|
|
751
741
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -753,14 +743,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
753
743
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
754
744
|
};
|
|
755
745
|
dispose: () => void | undefined;
|
|
756
|
-
context: import("@volar/language-service").
|
|
746
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
757
747
|
} | undefined;
|
|
758
748
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
759
749
|
tryAddFile: (fileName: string) => void;
|
|
760
750
|
dispose: () => void;
|
|
761
751
|
}> | undefined;
|
|
762
752
|
pathSet: (path: string, item: Promise<{
|
|
763
|
-
tsConfig:
|
|
753
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
764
754
|
scripts: {
|
|
765
755
|
clear: () => void;
|
|
766
756
|
values: () => IterableIterator<{
|
|
@@ -844,7 +834,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
844
834
|
text: string;
|
|
845
835
|
};
|
|
846
836
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
847
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
848
837
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
849
838
|
callHierarchy: {
|
|
850
839
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -852,7 +841,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
852
841
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
853
842
|
};
|
|
854
843
|
dispose: () => void | undefined;
|
|
855
|
-
context: import("@volar/language-service").
|
|
844
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
856
845
|
};
|
|
857
846
|
getLanguageServiceDontCreate: () => {
|
|
858
847
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
@@ -894,7 +883,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
894
883
|
text: string;
|
|
895
884
|
};
|
|
896
885
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
897
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
898
886
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
899
887
|
callHierarchy: {
|
|
900
888
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -902,7 +890,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
902
890
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
903
891
|
};
|
|
904
892
|
dispose: () => void | undefined;
|
|
905
|
-
context: import("@volar/language-service").
|
|
893
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
906
894
|
} | undefined;
|
|
907
895
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
908
896
|
tryAddFile: (fileName: string) => void;
|
|
@@ -913,7 +901,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
913
901
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
914
902
|
tsconfig: string;
|
|
915
903
|
project: {
|
|
916
|
-
tsConfig:
|
|
904
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
917
905
|
scripts: {
|
|
918
906
|
clear: () => void;
|
|
919
907
|
values: () => IterableIterator<{
|
|
@@ -997,7 +985,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
997
985
|
text: string;
|
|
998
986
|
};
|
|
999
987
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
1000
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
1001
988
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
1002
989
|
callHierarchy: {
|
|
1003
990
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -1005,7 +992,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1005
992
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1006
993
|
};
|
|
1007
994
|
dispose: () => void | undefined;
|
|
1008
|
-
context: import("@volar/language-service").
|
|
995
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
1009
996
|
};
|
|
1010
997
|
getLanguageServiceDontCreate: () => {
|
|
1011
998
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
@@ -1047,7 +1034,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1047
1034
|
text: string;
|
|
1048
1035
|
};
|
|
1049
1036
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
1050
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
1051
1037
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
1052
1038
|
callHierarchy: {
|
|
1053
1039
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -1055,7 +1041,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1055
1041
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1056
1042
|
};
|
|
1057
1043
|
dispose: () => void | undefined;
|
|
1058
|
-
context: import("@volar/language-service").
|
|
1044
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
1059
1045
|
} | undefined;
|
|
1060
1046
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1061
1047
|
tryAddFile: (fileName: string) => void;
|
|
@@ -1063,7 +1049,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1063
1049
|
} | undefined;
|
|
1064
1050
|
} | undefined>;
|
|
1065
1051
|
getInferredProject: () => Promise<{
|
|
1066
|
-
tsConfig:
|
|
1052
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1067
1053
|
scripts: {
|
|
1068
1054
|
clear: () => void;
|
|
1069
1055
|
values: () => IterableIterator<{
|
|
@@ -1147,7 +1133,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1147
1133
|
text: string;
|
|
1148
1134
|
};
|
|
1149
1135
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
1150
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
1151
1136
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
1152
1137
|
callHierarchy: {
|
|
1153
1138
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -1155,7 +1140,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1155
1140
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1156
1141
|
};
|
|
1157
1142
|
dispose: () => void | undefined;
|
|
1158
|
-
context: import("@volar/language-service").
|
|
1143
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
1159
1144
|
};
|
|
1160
1145
|
getLanguageServiceDontCreate: () => {
|
|
1161
1146
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
@@ -1197,7 +1182,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1197
1182
|
text: string;
|
|
1198
1183
|
};
|
|
1199
1184
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
1200
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
1201
1185
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
1202
1186
|
callHierarchy: {
|
|
1203
1187
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -1205,14 +1189,14 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1205
1189
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1206
1190
|
};
|
|
1207
1191
|
dispose: () => void | undefined;
|
|
1208
|
-
context: import("@volar/language-service").
|
|
1192
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
1209
1193
|
} | undefined;
|
|
1210
1194
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1211
1195
|
tryAddFile: (fileName: string) => void;
|
|
1212
1196
|
dispose: () => void;
|
|
1213
1197
|
}>;
|
|
1214
1198
|
getInferredProjectDontCreate: () => Promise<{
|
|
1215
|
-
tsConfig:
|
|
1199
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1216
1200
|
scripts: {
|
|
1217
1201
|
clear: () => void;
|
|
1218
1202
|
values: () => IterableIterator<{
|
|
@@ -1296,7 +1280,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1296
1280
|
text: string;
|
|
1297
1281
|
};
|
|
1298
1282
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
1299
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
1300
1283
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
1301
1284
|
callHierarchy: {
|
|
1302
1285
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -1304,7 +1287,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1304
1287
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1305
1288
|
};
|
|
1306
1289
|
dispose: () => void | undefined;
|
|
1307
|
-
context: import("@volar/language-service").
|
|
1290
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
1308
1291
|
};
|
|
1309
1292
|
getLanguageServiceDontCreate: () => {
|
|
1310
1293
|
format: (uri: string, options: vscode.FormattingOptions, range?: vscode.Range | undefined, onTypeParams?: {
|
|
@@ -1346,7 +1329,6 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1346
1329
|
text: string;
|
|
1347
1330
|
};
|
|
1348
1331
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
1349
|
-
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
1350
1332
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
1351
1333
|
callHierarchy: {
|
|
1352
1334
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -1354,7 +1336,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1354
1336
|
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
1355
1337
|
};
|
|
1356
1338
|
dispose: () => void | undefined;
|
|
1357
|
-
context: import("@volar/language-service").
|
|
1339
|
+
context: import("@volar/language-service").LanguageServicePluginContext;
|
|
1358
1340
|
} | undefined;
|
|
1359
1341
|
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
1360
1342
|
tryAddFile: (fileName: string) => void;
|
package/out/common/workspace.js
CHANGED
|
@@ -23,7 +23,7 @@ function createWorkspace(context) {
|
|
|
23
23
|
var _a, _b, _c;
|
|
24
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
let inferredProject;
|
|
26
|
-
const serverConfig = (0, serverConfig_1.
|
|
26
|
+
const serverConfig = (0, serverConfig_1.loadConfig)(shared.uriToFileName(context.rootUri.toString()), context.workspaces.initOptions.configFilePath);
|
|
27
27
|
const sys = (_a = context.workspaces.fileSystemHost) === null || _a === void 0 ? void 0 : _a.getWorkspaceFileSystem(context.rootUri);
|
|
28
28
|
const documentRegistry = sys ? (_b = context.workspaces.ts) === null || _b === void 0 ? void 0 : _b.createDocumentRegistry(sys.useCaseSensitiveFileNames, shared.uriToFileName(context.rootUri.toString())) : undefined;
|
|
29
29
|
const projects = (0, uriMap_1.createUriMap)();
|