@volar/language-server 1.5.4 → 1.6.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/features/customFeatures.d.ts +1 -1
- package/out/common/features/customFeatures.js +63 -19
- package/out/common/project.d.ts +1 -1
- package/out/common/workspace.d.ts +9 -9
- package/out/common/workspaces.d.ts +11 -11
- package/out/protocol.d.ts +29 -12
- package/out/protocol.js +13 -5
- package/out/types.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as vscode from 'vscode-languageserver';
|
|
2
2
|
import type { Workspaces } from '../workspaces';
|
|
3
3
|
import { RuntimeEnvironment } from '../../types';
|
|
4
|
-
export declare function register(connection: vscode.Connection,
|
|
4
|
+
export declare function register(connection: vscode.Connection, workspaces: Workspaces, env: RuntimeEnvironment): void;
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.register = void 0;
|
|
4
4
|
const protocol_1 = require("../../protocol");
|
|
5
|
-
|
|
6
|
-
function register(connection, projects, env) {
|
|
5
|
+
function register(connection, workspaces, env) {
|
|
7
6
|
connection.onNotification(protocol_1.ReportStats.type, async () => {
|
|
8
|
-
for (const [rootUri, _workspace] of
|
|
7
|
+
for (const [rootUri, _workspace] of workspaces.workspaces) {
|
|
9
8
|
connection.console.log('workspace: ' + rootUri);
|
|
10
9
|
const workspace = await _workspace;
|
|
11
10
|
connection.console.log('documentRegistry stats: ' + workspace.documentRegistry?.reportStats());
|
|
@@ -55,29 +54,73 @@ function register(connection, projects, env) {
|
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
56
|
connection.onRequest(protocol_1.GetMatchTsConfigRequest.type, async (params) => {
|
|
58
|
-
const project = (await
|
|
57
|
+
const project = (await workspaces.getProject(params.uri));
|
|
59
58
|
if (project?.tsconfig) {
|
|
60
59
|
return { uri: env.fileNameToUri(project.tsconfig) };
|
|
61
60
|
}
|
|
62
61
|
});
|
|
63
|
-
connection.onRequest(protocol_1.
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
62
|
+
connection.onRequest(protocol_1.GetProjectsRequest.type, async (params) => {
|
|
63
|
+
const matchProject = params ? (await workspaces.getProject(params.uri)) : undefined;
|
|
64
|
+
const result = [];
|
|
65
|
+
for (const [workspaceUri, _workspace] of workspaces.workspaces) {
|
|
66
|
+
const workspace = (await _workspace);
|
|
67
|
+
result.push({
|
|
68
|
+
isInferredProject: true,
|
|
69
|
+
rootUri: workspaceUri,
|
|
70
|
+
tsconfig: undefined,
|
|
71
|
+
created: !!workspace.getInferredProjectDontCreate(),
|
|
72
|
+
isSelected: !!matchProject && await workspace.getInferredProjectDontCreate() === matchProject.project,
|
|
73
|
+
});
|
|
74
|
+
for (const _project of workspace.projects.values()) {
|
|
75
|
+
const project = await _project;
|
|
76
|
+
result.push({
|
|
77
|
+
isInferredProject: false,
|
|
78
|
+
rootUri: workspaceUri,
|
|
79
|
+
tsconfig: project.tsConfig,
|
|
80
|
+
created: !!project.getLanguageServiceDontCreate(),
|
|
81
|
+
isSelected: !!matchProject && project === matchProject.project,
|
|
74
82
|
});
|
|
75
83
|
}
|
|
76
84
|
}
|
|
77
|
-
return
|
|
85
|
+
return result;
|
|
86
|
+
});
|
|
87
|
+
connection.onRequest(protocol_1.GetProjectFilesRequest.type, async (params) => {
|
|
88
|
+
const workspace = await workspaces.workspaces.get(params.rootUri);
|
|
89
|
+
if (!workspace)
|
|
90
|
+
return [];
|
|
91
|
+
if (!params.tsconfig) {
|
|
92
|
+
const project = await workspace.getInferredProject();
|
|
93
|
+
if (!project)
|
|
94
|
+
return [];
|
|
95
|
+
return project.languageServiceHost.getScriptFileNames();
|
|
96
|
+
}
|
|
97
|
+
for (const _project of workspace.projects.values()) {
|
|
98
|
+
const project = await _project;
|
|
99
|
+
if (project.tsConfig === params.tsconfig) {
|
|
100
|
+
return project.languageServiceHost.getScriptFileNames();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return [];
|
|
104
|
+
});
|
|
105
|
+
connection.onRequest(protocol_1.GetVirtualFilesRequest.type, async (document) => {
|
|
106
|
+
const project = await workspaces.getProject(document.uri);
|
|
107
|
+
console.log(document.uri, typeof project);
|
|
108
|
+
if (project) {
|
|
109
|
+
const file = project.project?.getLanguageService().context.core.virtualFiles.getSource(env.uriToFileName(document.uri))?.root;
|
|
110
|
+
return file ? prune(file) : undefined;
|
|
111
|
+
function prune(file) {
|
|
112
|
+
return {
|
|
113
|
+
fileName: file.fileName,
|
|
114
|
+
kind: file.kind,
|
|
115
|
+
capabilities: file.capabilities,
|
|
116
|
+
embeddedFiles: file.embeddedFiles.map(prune),
|
|
117
|
+
version: project.project.getLanguageService().context.core.typescript.languageServiceHost.getScriptVersion(file.fileName),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
78
121
|
});
|
|
79
122
|
connection.onRequest(protocol_1.GetVirtualFileRequest.type, async (params) => {
|
|
80
|
-
const project = await
|
|
123
|
+
const project = await workspaces.getProject(params.sourceFileUri);
|
|
81
124
|
if (project) {
|
|
82
125
|
const [virtualFile, source] = project.project?.getLanguageService().context.core.virtualFiles.getVirtualFile(params.virtualFileName) ?? [];
|
|
83
126
|
if (virtualFile && source) {
|
|
@@ -90,16 +133,17 @@ function register(connection, projects, env) {
|
|
|
90
133
|
return {
|
|
91
134
|
content: virtualFile.snapshot.getText(0, virtualFile.snapshot.getLength()),
|
|
92
135
|
mappings,
|
|
136
|
+
codegenStacks: virtualFile.codegenStacks,
|
|
93
137
|
};
|
|
94
138
|
}
|
|
95
139
|
}
|
|
96
140
|
});
|
|
97
141
|
connection.onNotification(protocol_1.ReloadProjectNotification.type, () => {
|
|
98
|
-
|
|
142
|
+
workspaces.reloadProject();
|
|
99
143
|
});
|
|
100
144
|
connection.onNotification(protocol_1.WriteVirtualFilesNotification.type, async (params) => {
|
|
101
145
|
const fs = await Promise.resolve().then(() => require('fs'));
|
|
102
|
-
const project = await
|
|
146
|
+
const project = await workspaces.getProject(params.uri);
|
|
103
147
|
if (project) {
|
|
104
148
|
const ls = (await project.project)?.getLanguageServiceDontCreate();
|
|
105
149
|
if (ls) {
|
package/out/common/project.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface ProjectContext extends WorkspaceContext {
|
|
|
13
13
|
}
|
|
14
14
|
export type Project = ReturnType<typeof createProject>;
|
|
15
15
|
export declare function createProject(context: ProjectContext): Promise<{
|
|
16
|
-
tsConfig:
|
|
16
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
17
17
|
scripts: {
|
|
18
18
|
clear: () => void;
|
|
19
19
|
values: () => IterableIterator<{
|
|
@@ -14,7 +14,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
14
14
|
projects: {
|
|
15
15
|
clear: () => void;
|
|
16
16
|
values: () => IterableIterator<Promise<{
|
|
17
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
17
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
18
18
|
scripts: {
|
|
19
19
|
clear: () => void;
|
|
20
20
|
values: () => IterableIterator<{
|
|
@@ -160,7 +160,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
160
160
|
}>>;
|
|
161
161
|
uriDelete: (_uri: string) => boolean;
|
|
162
162
|
uriGet: (_uri: string) => Promise<{
|
|
163
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
163
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
164
164
|
scripts: {
|
|
165
165
|
clear: () => void;
|
|
166
166
|
values: () => IterableIterator<{
|
|
@@ -306,7 +306,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
306
306
|
}> | undefined;
|
|
307
307
|
uriHas: (_uri: string) => boolean;
|
|
308
308
|
uriSet: (_uri: string, item: Promise<{
|
|
309
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
309
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
310
310
|
scripts: {
|
|
311
311
|
clear: () => void;
|
|
312
312
|
values: () => IterableIterator<{
|
|
@@ -452,7 +452,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
452
452
|
}>) => void;
|
|
453
453
|
pathDelete: (path: string) => boolean;
|
|
454
454
|
pathGet: (path: string) => Promise<{
|
|
455
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
455
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
456
456
|
scripts: {
|
|
457
457
|
clear: () => void;
|
|
458
458
|
values: () => IterableIterator<{
|
|
@@ -597,7 +597,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
597
597
|
dispose: () => void;
|
|
598
598
|
}> | undefined;
|
|
599
599
|
pathHas: (path: string) => Promise<{
|
|
600
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
600
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
601
601
|
scripts: {
|
|
602
602
|
clear: () => void;
|
|
603
603
|
values: () => IterableIterator<{
|
|
@@ -742,7 +742,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
742
742
|
dispose: () => void;
|
|
743
743
|
}> | undefined;
|
|
744
744
|
pathSet: (path: string, item: Promise<{
|
|
745
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
745
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
746
746
|
scripts: {
|
|
747
747
|
clear: () => void;
|
|
748
748
|
values: () => IterableIterator<{
|
|
@@ -891,7 +891,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
891
891
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
892
892
|
tsconfig: string;
|
|
893
893
|
project: {
|
|
894
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
894
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
895
895
|
scripts: {
|
|
896
896
|
clear: () => void;
|
|
897
897
|
values: () => IterableIterator<{
|
|
@@ -1037,7 +1037,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1037
1037
|
} | undefined;
|
|
1038
1038
|
} | undefined>;
|
|
1039
1039
|
getInferredProject: () => Promise<{
|
|
1040
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
1040
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
1041
1041
|
scripts: {
|
|
1042
1042
|
clear: () => void;
|
|
1043
1043
|
values: () => IterableIterator<{
|
|
@@ -1182,7 +1182,7 @@ export declare function createWorkspace(context: WorkspaceContext): Promise<{
|
|
|
1182
1182
|
dispose: () => void;
|
|
1183
1183
|
}>;
|
|
1184
1184
|
getInferredProjectDontCreate: () => Promise<{
|
|
1185
|
-
tsConfig: import("typesafe-path").PosixPath
|
|
1185
|
+
tsConfig: ts.CompilerOptions | import("typesafe-path").PosixPath;
|
|
1186
1186
|
scripts: {
|
|
1187
1187
|
clear: () => void;
|
|
1188
1188
|
values: () => IterableIterator<{
|
|
@@ -27,7 +27,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
27
27
|
projects: {
|
|
28
28
|
clear: () => void;
|
|
29
29
|
values: () => IterableIterator<Promise<{
|
|
30
|
-
tsConfig:
|
|
30
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
31
31
|
scripts: {
|
|
32
32
|
clear: () => void;
|
|
33
33
|
values: () => IterableIterator<{
|
|
@@ -173,7 +173,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
173
173
|
}>>;
|
|
174
174
|
uriDelete: (_uri: string) => boolean;
|
|
175
175
|
uriGet: (_uri: string) => Promise<{
|
|
176
|
-
tsConfig:
|
|
176
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
177
177
|
scripts: {
|
|
178
178
|
clear: () => void;
|
|
179
179
|
values: () => IterableIterator<{
|
|
@@ -319,7 +319,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
319
319
|
}> | undefined;
|
|
320
320
|
uriHas: (_uri: string) => boolean;
|
|
321
321
|
uriSet: (_uri: string, item: Promise<{
|
|
322
|
-
tsConfig:
|
|
322
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
323
323
|
scripts: {
|
|
324
324
|
clear: () => void;
|
|
325
325
|
values: () => IterableIterator<{
|
|
@@ -465,7 +465,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
465
465
|
}>) => void;
|
|
466
466
|
pathDelete: (path: string) => boolean;
|
|
467
467
|
pathGet: (path: string) => Promise<{
|
|
468
|
-
tsConfig:
|
|
468
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
469
469
|
scripts: {
|
|
470
470
|
clear: () => void;
|
|
471
471
|
values: () => IterableIterator<{
|
|
@@ -610,7 +610,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
610
610
|
dispose: () => void;
|
|
611
611
|
}> | undefined;
|
|
612
612
|
pathHas: (path: string) => Promise<{
|
|
613
|
-
tsConfig:
|
|
613
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
614
614
|
scripts: {
|
|
615
615
|
clear: () => void;
|
|
616
616
|
values: () => IterableIterator<{
|
|
@@ -755,7 +755,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
755
755
|
dispose: () => void;
|
|
756
756
|
}> | undefined;
|
|
757
757
|
pathSet: (path: string, item: Promise<{
|
|
758
|
-
tsConfig:
|
|
758
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
759
759
|
scripts: {
|
|
760
760
|
clear: () => void;
|
|
761
761
|
values: () => IterableIterator<{
|
|
@@ -904,7 +904,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
904
904
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
905
905
|
tsconfig: string;
|
|
906
906
|
project: {
|
|
907
|
-
tsConfig:
|
|
907
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
908
908
|
scripts: {
|
|
909
909
|
clear: () => void;
|
|
910
910
|
values: () => IterableIterator<{
|
|
@@ -1050,7 +1050,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1050
1050
|
} | undefined;
|
|
1051
1051
|
} | undefined>;
|
|
1052
1052
|
getInferredProject: () => Promise<{
|
|
1053
|
-
tsConfig:
|
|
1053
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1054
1054
|
scripts: {
|
|
1055
1055
|
clear: () => void;
|
|
1056
1056
|
values: () => IterableIterator<{
|
|
@@ -1195,7 +1195,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1195
1195
|
dispose: () => void;
|
|
1196
1196
|
}>;
|
|
1197
1197
|
getInferredProjectDontCreate: () => Promise<{
|
|
1198
|
-
tsConfig:
|
|
1198
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1199
1199
|
scripts: {
|
|
1200
1200
|
clear: () => void;
|
|
1201
1201
|
values: () => IterableIterator<{
|
|
@@ -1345,7 +1345,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1345
1345
|
getProject: (uri: string) => Promise<{
|
|
1346
1346
|
tsconfig: string;
|
|
1347
1347
|
project: {
|
|
1348
|
-
tsConfig:
|
|
1348
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1349
1349
|
scripts: {
|
|
1350
1350
|
clear: () => void;
|
|
1351
1351
|
values: () => IterableIterator<{
|
|
@@ -1492,7 +1492,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1492
1492
|
} | {
|
|
1493
1493
|
tsconfig: undefined;
|
|
1494
1494
|
project: {
|
|
1495
|
-
tsConfig:
|
|
1495
|
+
tsConfig: ts.CompilerOptions | path.PosixPath;
|
|
1496
1496
|
scripts: {
|
|
1497
1497
|
clear: () => void;
|
|
1498
1498
|
values: () => IterableIterator<{
|
package/out/protocol.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as vscode from 'vscode-languageserver-protocol';
|
|
2
2
|
import type * as html from 'vscode-html-languageservice';
|
|
3
|
-
import type {
|
|
3
|
+
import type { VirtualFile, FileRangeCapabilities } from '@volar/language-core';
|
|
4
|
+
import type { Mapping, Stack } from '@volar/source-map';
|
|
4
5
|
/**
|
|
5
6
|
* Server request client
|
|
6
7
|
*/
|
|
@@ -29,6 +30,27 @@ export declare namespace GetMatchTsConfigRequest {
|
|
|
29
30
|
type ErrorType = never;
|
|
30
31
|
const type: vscode.RequestType<vscode.TextDocumentIdentifier, ResponseType, never>;
|
|
31
32
|
}
|
|
33
|
+
export declare namespace GetProjectsRequest {
|
|
34
|
+
type ParamsType = vscode.TextDocumentIdentifier;
|
|
35
|
+
type ResponseType = {
|
|
36
|
+
rootUri: string;
|
|
37
|
+
tsconfig?: string;
|
|
38
|
+
isInferredProject: boolean;
|
|
39
|
+
created: boolean;
|
|
40
|
+
isSelected: boolean;
|
|
41
|
+
}[] | null | undefined;
|
|
42
|
+
type ErrorType = never;
|
|
43
|
+
const type: vscode.RequestType<vscode.TextDocumentIdentifier, ResponseType, never>;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace GetProjectFilesRequest {
|
|
46
|
+
type ParamsType = {
|
|
47
|
+
rootUri: string;
|
|
48
|
+
tsconfig?: string;
|
|
49
|
+
};
|
|
50
|
+
type ResponseType = string[] | null | undefined;
|
|
51
|
+
type ErrorType = never;
|
|
52
|
+
const type: vscode.RequestType<ParamsType, ResponseType, never>;
|
|
53
|
+
}
|
|
32
54
|
export declare namespace AutoInsertRequest {
|
|
33
55
|
type ParamsType = vscode.TextDocumentPositionParams & {
|
|
34
56
|
options: {
|
|
@@ -50,13 +72,11 @@ export declare namespace WriteVirtualFilesNotification {
|
|
|
50
72
|
export declare namespace ReloadProjectNotification {
|
|
51
73
|
const type: vscode.NotificationType<vscode.TextDocumentIdentifier>;
|
|
52
74
|
}
|
|
53
|
-
export declare namespace
|
|
54
|
-
type ParamsType = vscode.TextDocumentIdentifier
|
|
55
|
-
|
|
56
|
-
};
|
|
57
|
-
type ResponseType = string[];
|
|
75
|
+
export declare namespace GetVirtualFilesRequest {
|
|
76
|
+
type ParamsType = vscode.TextDocumentIdentifier;
|
|
77
|
+
type ResponseType = VirtualFile | null | undefined;
|
|
58
78
|
type ErrorType = never;
|
|
59
|
-
const type: vscode.RequestType<
|
|
79
|
+
const type: vscode.RequestType<vscode.TextDocumentIdentifier, ResponseType, never>;
|
|
60
80
|
}
|
|
61
81
|
export declare namespace GetVirtualFileRequest {
|
|
62
82
|
type ParamsType = {
|
|
@@ -65,11 +85,8 @@ export declare namespace GetVirtualFileRequest {
|
|
|
65
85
|
};
|
|
66
86
|
type ResponseType = {
|
|
67
87
|
content: string;
|
|
68
|
-
mappings: Record<string,
|
|
69
|
-
|
|
70
|
-
generatedRange: [number, number];
|
|
71
|
-
data: FileRangeCapabilities;
|
|
72
|
-
}[]>;
|
|
88
|
+
mappings: Record<string, Mapping<FileRangeCapabilities>[]>;
|
|
89
|
+
codegenStacks: Stack[];
|
|
73
90
|
};
|
|
74
91
|
type ErrorType = never;
|
|
75
92
|
const type: vscode.RequestType<ParamsType, ResponseType, never>;
|
package/out/protocol.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReportStats = exports.GetVirtualFileRequest = exports.
|
|
3
|
+
exports.ReportStats = exports.GetVirtualFileRequest = exports.GetVirtualFilesRequest = exports.ReloadProjectNotification = exports.WriteVirtualFilesNotification = exports.AutoInsertRequest = exports.GetProjectFilesRequest = exports.GetProjectsRequest = exports.GetMatchTsConfigRequest = exports.FindFileReferenceRequest = exports.FsReadDirectoryRequest = exports.FsReadFileRequest = void 0;
|
|
4
4
|
const vscode = require("vscode-languageserver-protocol");
|
|
5
5
|
/**
|
|
6
6
|
* Server request client
|
|
@@ -24,6 +24,14 @@ var GetMatchTsConfigRequest;
|
|
|
24
24
|
(function (GetMatchTsConfigRequest) {
|
|
25
25
|
GetMatchTsConfigRequest.type = new vscode.RequestType('volar/client/tsconfig');
|
|
26
26
|
})(GetMatchTsConfigRequest = exports.GetMatchTsConfigRequest || (exports.GetMatchTsConfigRequest = {}));
|
|
27
|
+
var GetProjectsRequest;
|
|
28
|
+
(function (GetProjectsRequest) {
|
|
29
|
+
GetProjectsRequest.type = new vscode.RequestType('volar/client/projects');
|
|
30
|
+
})(GetProjectsRequest = exports.GetProjectsRequest || (exports.GetProjectsRequest = {}));
|
|
31
|
+
var GetProjectFilesRequest;
|
|
32
|
+
(function (GetProjectFilesRequest) {
|
|
33
|
+
GetProjectFilesRequest.type = new vscode.RequestType('volar/client/projectFiles');
|
|
34
|
+
})(GetProjectFilesRequest = exports.GetProjectFilesRequest || (exports.GetProjectFilesRequest = {}));
|
|
27
35
|
var AutoInsertRequest;
|
|
28
36
|
(function (AutoInsertRequest) {
|
|
29
37
|
AutoInsertRequest.type = new vscode.RequestType('volar/client/autoInsert');
|
|
@@ -36,10 +44,10 @@ var ReloadProjectNotification;
|
|
|
36
44
|
(function (ReloadProjectNotification) {
|
|
37
45
|
ReloadProjectNotification.type = new vscode.NotificationType('volar/client/reloadProject');
|
|
38
46
|
})(ReloadProjectNotification = exports.ReloadProjectNotification || (exports.ReloadProjectNotification = {}));
|
|
39
|
-
var
|
|
40
|
-
(function (
|
|
41
|
-
|
|
42
|
-
})(
|
|
47
|
+
var GetVirtualFilesRequest;
|
|
48
|
+
(function (GetVirtualFilesRequest) {
|
|
49
|
+
GetVirtualFilesRequest.type = new vscode.RequestType('volar/client/virtualFiles');
|
|
50
|
+
})(GetVirtualFilesRequest = exports.GetVirtualFilesRequest || (exports.GetVirtualFilesRequest = {}));
|
|
43
51
|
var GetVirtualFileRequest;
|
|
44
52
|
(function (GetVirtualFileRequest) {
|
|
45
53
|
GetVirtualFileRequest.type = new vscode.RequestType('volar/client/virtualFile');
|
package/out/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
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.
|
|
21
|
-
"@volar/language-service": "1.
|
|
20
|
+
"@volar/language-core": "1.6.0",
|
|
21
|
+
"@volar/language-service": "1.6.0",
|
|
22
22
|
"@vscode/l10n": "^0.0.11",
|
|
23
23
|
"request-light": "^0.7.0",
|
|
24
24
|
"typesafe-path": "^0.2.2",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
29
29
|
"vscode-uri": "^3.0.7"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "3ef1b023cb1f77662fd7bdb0f1099ab726f772d6"
|
|
32
32
|
}
|