@volar/language-server 1.4.0-alpha.6 → 1.4.0-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/common/project.d.ts +2 -2
- package/out/common/project.js +4 -8
- package/out/common/workspace.d.ts +18 -18
- package/out/common/workspaces.d.ts +22 -22
- package/out/node/index.js +9 -2
- package/out/types.d.ts +0 -1
- package/package.json +4 -5
- package/out/common/projectService.d.ts +0 -7
- package/out/common/projectService.js +0 -30
package/out/common/project.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export declare function createProject(context: ProjectContext): Promise<{
|
|
|
71
71
|
findDocumentSymbols: (uri: string, token?: embeddedLS.CancellationToken | undefined) => Promise<embeddedLS.DocumentSymbol[] | undefined>;
|
|
72
72
|
findDocumentColors: (uri: string, token?: embeddedLS.CancellationToken | undefined) => Promise<embeddedLS.ColorInformation[] | undefined>;
|
|
73
73
|
getColorPresentations: (uri: string, color: embeddedLS.Color, range: embeddedLS.Range, token?: embeddedLS.CancellationToken | undefined) => Promise<embeddedLS.ColorPresentation[] | undefined>;
|
|
74
|
-
doValidation: (uri: string, mode: "
|
|
74
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: embeddedLS.CancellationToken | undefined, response?: ((result: embeddedLS.Diagnostic[]) => void) | undefined) => Promise<embeddedLS.Diagnostic[]>;
|
|
75
75
|
findReferences: (uri: string, position: embeddedLS.Position, token?: embeddedLS.CancellationToken | undefined) => Promise<embeddedLS.Location[] | undefined>;
|
|
76
76
|
findFileReferences: (uri: string, token?: embeddedLS.CancellationToken | undefined) => embeddedLS.NullableResult<embeddedLS.Location[]>;
|
|
77
77
|
findDefinition: (uri: string, position: embeddedLS.Position, token?: embeddedLS.CancellationToken | undefined) => Promise<embeddedLS.LocationLink[] | undefined>;
|
|
@@ -117,7 +117,7 @@ export declare function createProject(context: ProjectContext): Promise<{
|
|
|
117
117
|
findDocumentSymbols: (uri: string, token?: embeddedLS.CancellationToken | undefined) => Promise<embeddedLS.DocumentSymbol[] | undefined>;
|
|
118
118
|
findDocumentColors: (uri: string, token?: embeddedLS.CancellationToken | undefined) => Promise<embeddedLS.ColorInformation[] | undefined>;
|
|
119
119
|
getColorPresentations: (uri: string, color: embeddedLS.Color, range: embeddedLS.Range, token?: embeddedLS.CancellationToken | undefined) => Promise<embeddedLS.ColorPresentation[] | undefined>;
|
|
120
|
-
doValidation: (uri: string, mode: "
|
|
120
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: embeddedLS.CancellationToken | undefined, response?: ((result: embeddedLS.Diagnostic[]) => void) | undefined) => Promise<embeddedLS.Diagnostic[]>;
|
|
121
121
|
findReferences: (uri: string, position: embeddedLS.Position, token?: embeddedLS.CancellationToken | undefined) => Promise<embeddedLS.Location[] | undefined>;
|
|
122
122
|
findFileReferences: (uri: string, token?: embeddedLS.CancellationToken | undefined) => embeddedLS.NullableResult<embeddedLS.Location[]>;
|
|
123
123
|
findDefinition: (uri: string, position: embeddedLS.Position, token?: embeddedLS.CancellationToken | undefined) => Promise<embeddedLS.LocationLink[] | undefined>;
|
package/out/common/project.js
CHANGED
|
@@ -59,6 +59,9 @@ async function createProject(context) {
|
|
|
59
59
|
const options = {
|
|
60
60
|
uriToFileName,
|
|
61
61
|
fileNameToUri,
|
|
62
|
+
getOpenedTextDocumentLanguageId: uri => {
|
|
63
|
+
return context.workspace.workspaces.documents.data.uriGet(uri)?.languageId;
|
|
64
|
+
},
|
|
62
65
|
locale: context.workspace.workspaces.initParams.locale,
|
|
63
66
|
rootUri: context.rootUri,
|
|
64
67
|
capabilities: context.workspace.workspaces.initParams.capabilities,
|
|
@@ -68,6 +71,7 @@ async function createProject(context) {
|
|
|
68
71
|
},
|
|
69
72
|
configurationHost: context.workspace.workspaces.configurationHost,
|
|
70
73
|
fileSystemProvider: context.workspace.workspaces.server.runtimeEnv.fileSystemProvide,
|
|
74
|
+
fileSystemHost: context.workspace.workspaces.fileSystemHost,
|
|
71
75
|
documentContext: getDocumentContext(fileNameToUri, uriToFileName, context.workspace.workspaces.ts, languageServiceHost, context.rootUri.toString()),
|
|
72
76
|
schemaRequestService: async (uri) => {
|
|
73
77
|
const protocol = uri.substring(0, uri.indexOf(':'));
|
|
@@ -173,14 +177,6 @@ async function createProject(context) {
|
|
|
173
177
|
return context.workspace.workspaces.documents.data.pathGet(fileName)?.languageId;
|
|
174
178
|
},
|
|
175
179
|
};
|
|
176
|
-
if (context.workspace.workspaces.initOptions.noProjectReferences) {
|
|
177
|
-
host.getProjectReferences = undefined;
|
|
178
|
-
host.getCompilationSettings = () => ({
|
|
179
|
-
...parsedCommandLine.options,
|
|
180
|
-
rootDir: undefined,
|
|
181
|
-
composite: false,
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
180
|
if (context.workspace.workspaces.tsLocalized) {
|
|
185
181
|
host.getLocalizedDiagnosticMessages = () => context.workspace.workspaces.tsLocalized;
|
|
186
182
|
}
|
|
@@ -72,7 +72,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
72
72
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
73
73
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
74
74
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
75
|
-
doValidation: (uri: string, mode: "
|
|
75
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
76
76
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
77
77
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
78
78
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -118,7 +118,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
118
118
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
119
119
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
120
120
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
121
|
-
doValidation: (uri: string, mode: "
|
|
121
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
122
122
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
123
123
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
124
124
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -214,7 +214,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
214
214
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
215
215
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
216
216
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
217
|
-
doValidation: (uri: string, mode: "
|
|
217
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
218
218
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
219
219
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
220
220
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -260,7 +260,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
260
260
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
261
261
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
262
262
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
263
|
-
doValidation: (uri: string, mode: "
|
|
263
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
264
264
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
265
265
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
266
266
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -356,7 +356,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
356
356
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
357
357
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
358
358
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
359
|
-
doValidation: (uri: string, mode: "
|
|
359
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
360
360
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
361
361
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
362
362
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -402,7 +402,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
402
402
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
403
403
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
404
404
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
405
|
-
doValidation: (uri: string, mode: "
|
|
405
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
406
406
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
407
407
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
408
408
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -498,7 +498,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
498
498
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
499
499
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
500
500
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
501
|
-
doValidation: (uri: string, mode: "
|
|
501
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
502
502
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
503
503
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
504
504
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -544,7 +544,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
544
544
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
545
545
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
546
546
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
547
|
-
doValidation: (uri: string, mode: "
|
|
547
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
548
548
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
549
549
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
550
550
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -639,7 +639,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
639
639
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
640
640
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
641
641
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
642
|
-
doValidation: (uri: string, mode: "
|
|
642
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
643
643
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
644
644
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
645
645
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -685,7 +685,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
685
685
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
686
686
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
687
687
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
688
|
-
doValidation: (uri: string, mode: "
|
|
688
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
689
689
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
690
690
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
691
691
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -780,7 +780,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
780
780
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
781
781
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
782
782
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
783
|
-
doValidation: (uri: string, mode: "
|
|
783
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
784
784
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
785
785
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
786
786
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -826,7 +826,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
826
826
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
827
827
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
828
828
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
829
|
-
doValidation: (uri: string, mode: "
|
|
829
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
830
830
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
831
831
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
832
832
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -925,7 +925,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
925
925
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
926
926
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
927
927
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
928
|
-
doValidation: (uri: string, mode: "
|
|
928
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
929
929
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
930
930
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
931
931
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -971,7 +971,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
971
971
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
972
972
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
973
973
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
974
|
-
doValidation: (uri: string, mode: "
|
|
974
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
975
975
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
976
976
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
977
977
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1067,7 +1067,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1067
1067
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1068
1068
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1069
1069
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1070
|
-
doValidation: (uri: string, mode: "
|
|
1070
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1071
1071
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1072
1072
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1073
1073
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1113,7 +1113,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1113
1113
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1114
1114
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1115
1115
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1116
|
-
doValidation: (uri: string, mode: "
|
|
1116
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1117
1117
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1118
1118
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1119
1119
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1208,7 +1208,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1208
1208
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1209
1209
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1210
1210
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1211
|
-
doValidation: (uri: string, mode: "
|
|
1211
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1212
1212
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1213
1213
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1214
1214
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1254,7 +1254,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1254
1254
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1255
1255
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1256
1256
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1257
|
-
doValidation: (uri: string, mode: "
|
|
1257
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1258
1258
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1259
1259
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1260
1260
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -85,7 +85,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
85
85
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
86
86
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
87
87
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
88
|
-
doValidation: (uri: string, mode: "
|
|
88
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
89
89
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
90
90
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
91
91
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -131,7 +131,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
131
131
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
132
132
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
133
133
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
134
|
-
doValidation: (uri: string, mode: "
|
|
134
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
135
135
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
136
136
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
137
137
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -227,7 +227,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
227
227
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
228
228
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
229
229
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
230
|
-
doValidation: (uri: string, mode: "
|
|
230
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
231
231
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
232
232
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
233
233
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -273,7 +273,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
273
273
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
274
274
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
275
275
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
276
|
-
doValidation: (uri: string, mode: "
|
|
276
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
277
277
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
278
278
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
279
279
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -369,7 +369,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
369
369
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
370
370
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
371
371
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
372
|
-
doValidation: (uri: string, mode: "
|
|
372
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
373
373
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
374
374
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
375
375
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -415,7 +415,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
415
415
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
416
416
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
417
417
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
418
|
-
doValidation: (uri: string, mode: "
|
|
418
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
419
419
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
420
420
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
421
421
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -511,7 +511,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
511
511
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
512
512
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
513
513
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
514
|
-
doValidation: (uri: string, mode: "
|
|
514
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
515
515
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
516
516
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
517
517
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -557,7 +557,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
557
557
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
558
558
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
559
559
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
560
|
-
doValidation: (uri: string, mode: "
|
|
560
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
561
561
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
562
562
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
563
563
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -652,7 +652,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
652
652
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
653
653
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
654
654
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
655
|
-
doValidation: (uri: string, mode: "
|
|
655
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
656
656
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
657
657
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
658
658
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -698,7 +698,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
698
698
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
699
699
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
700
700
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
701
|
-
doValidation: (uri: string, mode: "
|
|
701
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
702
702
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
703
703
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
704
704
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -793,7 +793,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
793
793
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
794
794
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
795
795
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
796
|
-
doValidation: (uri: string, mode: "
|
|
796
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
797
797
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
798
798
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
799
799
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -839,7 +839,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
839
839
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
840
840
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
841
841
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
842
|
-
doValidation: (uri: string, mode: "
|
|
842
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
843
843
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
844
844
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
845
845
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -938,7 +938,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
938
938
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
939
939
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
940
940
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
941
|
-
doValidation: (uri: string, mode: "
|
|
941
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
942
942
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
943
943
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
944
944
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -984,7 +984,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
984
984
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
985
985
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
986
986
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
987
|
-
doValidation: (uri: string, mode: "
|
|
987
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
988
988
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
989
989
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
990
990
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1080,7 +1080,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1080
1080
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1081
1081
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1082
1082
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1083
|
-
doValidation: (uri: string, mode: "
|
|
1083
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1084
1084
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1085
1085
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1086
1086
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1126,7 +1126,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1126
1126
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1127
1127
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1128
1128
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1129
|
-
doValidation: (uri: string, mode: "
|
|
1129
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1130
1130
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1131
1131
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1132
1132
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1221,7 +1221,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1221
1221
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1222
1222
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1223
1223
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1224
|
-
doValidation: (uri: string, mode: "
|
|
1224
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1225
1225
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1226
1226
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1227
1227
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1267,7 +1267,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1267
1267
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1268
1268
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1269
1269
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1270
|
-
doValidation: (uri: string, mode: "
|
|
1270
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1271
1271
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1272
1272
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1273
1273
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1367,7 +1367,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1367
1367
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1368
1368
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1369
1369
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1370
|
-
doValidation: (uri: string, mode: "
|
|
1370
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1371
1371
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1372
1372
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1373
1373
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1413,7 +1413,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1413
1413
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1414
1414
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1415
1415
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1416
|
-
doValidation: (uri: string, mode: "
|
|
1416
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1417
1417
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1418
1418
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1419
1419
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1510,7 +1510,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1510
1510
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1511
1511
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1512
1512
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1513
|
-
doValidation: (uri: string, mode: "
|
|
1513
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1514
1514
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1515
1515
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1516
1516
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1556,7 +1556,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1556
1556
|
findDocumentSymbols: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1557
1557
|
findDocumentColors: (uri: string, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1558
1558
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token?: vscode.CancellationToken | undefined) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1559
|
-
doValidation: (uri: string, mode: "
|
|
1559
|
+
doValidation: (uri: string, mode: "all" | "semantic" | "syntactic", token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1560
1560
|
findReferences: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.Location[] | undefined>;
|
|
1561
1561
|
findFileReferences: (uri: string, token?: vscode.CancellationToken | undefined) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1562
1562
|
findDefinition: (uri: string, position: vscode.Position, token?: vscode.CancellationToken | undefined) => Promise<vscode.LocationLink[] | undefined>;
|
package/out/node/index.js
CHANGED
|
@@ -48,11 +48,18 @@ function startLanguageServer(connection, ...plugins) {
|
|
|
48
48
|
loadTypescript(tsdk) {
|
|
49
49
|
for (const name of ['./typescript.js', './tsserverlibrary.js']) {
|
|
50
50
|
try {
|
|
51
|
-
|
|
52
|
-
return require(path);
|
|
51
|
+
return require(require.resolve(name, { paths: [tsdk] }));
|
|
53
52
|
}
|
|
54
53
|
catch { }
|
|
55
54
|
}
|
|
55
|
+
// for bun
|
|
56
|
+
for (const name of ['typescript.js', 'tsserverlibrary.js']) {
|
|
57
|
+
try {
|
|
58
|
+
return require(tsdk + '/' + name);
|
|
59
|
+
}
|
|
60
|
+
catch { }
|
|
61
|
+
}
|
|
62
|
+
throw new Error(`Can't find typescript.js or tsserverlibrary.js in ${tsdk}`);
|
|
56
63
|
},
|
|
57
64
|
async loadTypescriptLocalized(tsdk, locale) {
|
|
58
65
|
try {
|
package/out/types.d.ts
CHANGED
|
@@ -91,7 +91,6 @@ export interface LanguageServerInitializationOptions {
|
|
|
91
91
|
* https://github.com/Microsoft/TypeScript/wiki/Standalone-Server-%28tsserver%29#cancellation
|
|
92
92
|
*/
|
|
93
93
|
cancellationPipeName?: string;
|
|
94
|
-
noProjectReferences?: boolean;
|
|
95
94
|
reverseConfigFilePriority?: boolean;
|
|
96
95
|
disableFileWatcher?: boolean;
|
|
97
96
|
maxFileSize?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "1.4.0-alpha.
|
|
3
|
+
"version": "1.4.0-alpha.8",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"directory": "packages/language-server"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@volar/language-core": "1.4.0-alpha.
|
|
21
|
-
"@volar/language-service": "1.4.0-alpha.
|
|
20
|
+
"@volar/language-core": "1.4.0-alpha.8",
|
|
21
|
+
"@volar/language-service": "1.4.0-alpha.8",
|
|
22
22
|
"@vscode/l10n": "^0.0.11",
|
|
23
23
|
"request-light": "^0.7.0",
|
|
24
24
|
"typesafe-path": "^0.2.2",
|
|
@@ -27,6 +27,5 @@
|
|
|
27
27
|
"vscode-languageserver-protocol": "^3.17.3",
|
|
28
28
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
29
29
|
"vscode-uri": "^3.0.7"
|
|
30
|
-
}
|
|
31
|
-
"gitHead": "e975c5cbd4230afaa97155c9498b8887ab58eec6"
|
|
30
|
+
}
|
|
32
31
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ServerMode } from "../types";
|
|
2
|
-
import type { server } from 'typescript/lib/tsserverlibrary';
|
|
3
|
-
export interface ProjectServiceContext {
|
|
4
|
-
ts: typeof import('typescript/lib/tsserverlibrary') | undefined;
|
|
5
|
-
serverMode: ServerMode | undefined;
|
|
6
|
-
}
|
|
7
|
-
export declare function createProjectService(context: ProjectServiceContext): server.ProjectService | undefined;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createProjectService = void 0;
|
|
4
|
-
function createProjectService(context) {
|
|
5
|
-
if (!context.ts || !context.ts.server.ProjectService)
|
|
6
|
-
return undefined;
|
|
7
|
-
return new context.ts.server.ProjectService({
|
|
8
|
-
host: context.ts.sys,
|
|
9
|
-
logger: new Logger(),
|
|
10
|
-
cancellationToken: context.ts.server.nullCancellationToken,
|
|
11
|
-
useSingleInferredProject: false,
|
|
12
|
-
useInferredProjectPerProjectRoot: false,
|
|
13
|
-
typingsInstaller: context.ts.server.nullTypingsInstaller,
|
|
14
|
-
session: undefined,
|
|
15
|
-
serverMode: context.serverMode === 0 || context.serverMode === 1 ? 0 : 2
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
exports.createProjectService = createProjectService;
|
|
19
|
-
class Logger {
|
|
20
|
-
close() { }
|
|
21
|
-
getLogFileName() { return undefined; }
|
|
22
|
-
loggingEnabled() { return false; }
|
|
23
|
-
hasLevel() { return false; }
|
|
24
|
-
info() { }
|
|
25
|
-
endGroup() { }
|
|
26
|
-
startGroup() { }
|
|
27
|
-
perftrc() { }
|
|
28
|
-
msg() { }
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=projectService.js.map
|