@volar/language-server 1.0.0-beta.3 → 1.0.0-beta.4
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.
|
@@ -13,20 +13,56 @@ const shared = require("@volar/shared");
|
|
|
13
13
|
const path = require("typesafe-path");
|
|
14
14
|
const vscode = require("vscode-languageserver");
|
|
15
15
|
const protocol_1 = require("../protocol");
|
|
16
|
+
const language_core_1 = require("@volar/language-core");
|
|
16
17
|
function register(connection, projects) {
|
|
17
18
|
connection.onRequest(protocol_1.GetMatchTsConfigRequest.type, (params) => __awaiter(this, void 0, void 0, function* () {
|
|
18
19
|
var _a;
|
|
19
|
-
|
|
20
|
+
const project = (yield projects.getProject(params.uri));
|
|
21
|
+
if (project) {
|
|
22
|
+
return {
|
|
23
|
+
fileName: project.tsconfig,
|
|
24
|
+
raw: (_a = project.project) === null || _a === void 0 ? void 0 : _a.getParsedCommandLine().raw,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
28
|
+
connection.onRequest(protocol_1.GetVirtualFileNamesRequest.type, (document) => __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
var _b, _c;
|
|
30
|
+
const project = yield projects.getProject(document.uri);
|
|
31
|
+
const fileNames = [];
|
|
32
|
+
if (project) {
|
|
33
|
+
const sourceFile = (_c = (_b = project.project) === null || _b === void 0 ? void 0 : _b.getLanguageService().context.core.mapper.get(shared.getPathOfUri(document.uri))) === null || _c === void 0 ? void 0 : _c[0];
|
|
34
|
+
if (sourceFile) {
|
|
35
|
+
(0, language_core_1.forEachEmbeddeds)(sourceFile.embeddeds, e => {
|
|
36
|
+
if (e.text && e.kind === 1) {
|
|
37
|
+
fileNames.push(e.fileName);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return fileNames;
|
|
43
|
+
}));
|
|
44
|
+
connection.onRequest(protocol_1.GetVirtualFileRequest.type, (params) => __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
var _d, _e;
|
|
46
|
+
const project = yield projects.getProject(params.sourceFileUri);
|
|
47
|
+
if (project) {
|
|
48
|
+
const embeddedFile = (_e = (_d = project.project) === null || _d === void 0 ? void 0 : _d.getLanguageService().context.core.mapper.fromEmbeddedFileName(params.virtualFileName)) === null || _e === void 0 ? void 0 : _e.embedded;
|
|
49
|
+
if (embeddedFile) {
|
|
50
|
+
return {
|
|
51
|
+
content: embeddedFile.text,
|
|
52
|
+
mappings: embeddedFile.mappings,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
20
56
|
}));
|
|
21
57
|
connection.onNotification(protocol_1.ReloadProjectNotification.type, (params) => __awaiter(this, void 0, void 0, function* () {
|
|
22
58
|
projects.reloadProject();
|
|
23
59
|
}));
|
|
24
60
|
connection.onNotification(protocol_1.WriteVirtualFilesNotification.type, (params) => __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
var
|
|
61
|
+
var _f;
|
|
26
62
|
const fs = yield Promise.resolve().then(() => require('fs'));
|
|
27
63
|
const project = yield projects.getProject(params.uri);
|
|
28
64
|
if (project) {
|
|
29
|
-
const ls = (
|
|
65
|
+
const ls = (_f = (yield project.project)) === null || _f === void 0 ? void 0 : _f.getLanguageServiceDontCreate();
|
|
30
66
|
if (ls) {
|
|
31
67
|
const sourceFiles = new Set(ls.context.host.getScriptFileNames());
|
|
32
68
|
for (const virtualFile of ls.context.core.typescriptLanguageServiceHost.getScriptFileNames()) {
|
|
@@ -41,14 +77,14 @@ function register(connection, projects) {
|
|
|
41
77
|
}
|
|
42
78
|
}));
|
|
43
79
|
connection.onNotification(protocol_1.VerifyAllScriptsNotification.type, (params) => __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
var
|
|
80
|
+
var _g;
|
|
45
81
|
let errors = 0;
|
|
46
82
|
let warnings = 0;
|
|
47
83
|
const progress = yield connection.window.createWorkDoneProgress();
|
|
48
84
|
progress.begin('Verify', 0, '', true);
|
|
49
85
|
const project = yield projects.getProject(params.uri);
|
|
50
86
|
if (project) {
|
|
51
|
-
const ls = (
|
|
87
|
+
const ls = (_g = (yield project.project)) === null || _g === void 0 ? void 0 : _g.getLanguageServiceDontCreate();
|
|
52
88
|
if (ls) {
|
|
53
89
|
const allVueDocuments = ls.context.documents.getAll();
|
|
54
90
|
let i = 0;
|
package/out/protocol.d.ts
CHANGED
|
@@ -9,12 +9,9 @@ export declare namespace ShowReferencesNotification {
|
|
|
9
9
|
};
|
|
10
10
|
const type: vscode.NotificationType<ResponseType>;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
type ErrorType = never;
|
|
16
|
-
const type: vscode.RequestType<vscode.TextDocumentIdentifier, ResponseType, never>;
|
|
17
|
-
}
|
|
12
|
+
/**
|
|
13
|
+
* Client request server
|
|
14
|
+
*/
|
|
18
15
|
export declare namespace FindFileReferenceRequest {
|
|
19
16
|
type ParamsType = {
|
|
20
17
|
textDocument: vscode.TextDocumentIdentifier;
|
|
@@ -23,12 +20,12 @@ export declare namespace FindFileReferenceRequest {
|
|
|
23
20
|
type ErrorType = never;
|
|
24
21
|
const type: vscode.RequestType<ParamsType, ResponseType, never>;
|
|
25
22
|
}
|
|
26
|
-
/**
|
|
27
|
-
* Client request server
|
|
28
|
-
*/
|
|
29
23
|
export declare namespace GetMatchTsConfigRequest {
|
|
30
24
|
type ParamsType = vscode.TextDocumentIdentifier;
|
|
31
|
-
type ResponseType =
|
|
25
|
+
type ResponseType = {
|
|
26
|
+
fileName: string;
|
|
27
|
+
raw: any;
|
|
28
|
+
} | null | undefined;
|
|
32
29
|
type ErrorType = never;
|
|
33
30
|
const type: vscode.RequestType<vscode.TextDocumentIdentifier, ResponseType, never>;
|
|
34
31
|
}
|
|
@@ -56,6 +53,28 @@ export declare namespace WriteVirtualFilesNotification {
|
|
|
56
53
|
export declare namespace ReloadProjectNotification {
|
|
57
54
|
const type: vscode.NotificationType<vscode.TextDocumentIdentifier>;
|
|
58
55
|
}
|
|
56
|
+
export declare namespace GetVirtualFileNamesRequest {
|
|
57
|
+
type ParamsType = vscode.TextDocumentIdentifier;
|
|
58
|
+
type ResponseType = string[];
|
|
59
|
+
type ErrorType = never;
|
|
60
|
+
const type: vscode.RequestType<vscode.TextDocumentIdentifier, ResponseType, never>;
|
|
61
|
+
}
|
|
62
|
+
export declare namespace GetVirtualFileRequest {
|
|
63
|
+
type ParamsType = {
|
|
64
|
+
sourceFileUri: string;
|
|
65
|
+
virtualFileName: string;
|
|
66
|
+
};
|
|
67
|
+
type ResponseType = {
|
|
68
|
+
content: string;
|
|
69
|
+
mappings: {
|
|
70
|
+
sourceRange: [number, number];
|
|
71
|
+
generatedRange: [number, number];
|
|
72
|
+
data: undefined;
|
|
73
|
+
}[];
|
|
74
|
+
};
|
|
75
|
+
type ErrorType = never;
|
|
76
|
+
const type: vscode.RequestType<ParamsType, ResponseType, never>;
|
|
77
|
+
}
|
|
59
78
|
/**
|
|
60
79
|
* FS request for browser
|
|
61
80
|
*/
|
package/out/protocol.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.FsReadDirectoryRequest = exports.FsReadFileRequest = exports.FsStatRequest = exports.ReloadProjectNotification = exports.WriteVirtualFilesNotification = exports.VerifyAllScriptsNotification = exports.AutoInsertRequest = exports.GetMatchTsConfigRequest = exports.FindFileReferenceRequest = exports.
|
|
2
|
+
exports.FsReadDirectoryRequest = exports.FsReadFileRequest = exports.FsStatRequest = exports.GetVirtualFileRequest = exports.GetVirtualFileNamesRequest = exports.ReloadProjectNotification = exports.WriteVirtualFilesNotification = exports.VerifyAllScriptsNotification = exports.AutoInsertRequest = exports.GetMatchTsConfigRequest = exports.FindFileReferenceRequest = exports.ShowReferencesNotification = void 0;
|
|
3
3
|
const vscode = require("vscode-languageserver-protocol");
|
|
4
4
|
/**
|
|
5
5
|
* Server request client
|
|
@@ -8,17 +8,13 @@ var ShowReferencesNotification;
|
|
|
8
8
|
(function (ShowReferencesNotification) {
|
|
9
9
|
ShowReferencesNotification.type = new vscode.NotificationType('vue.findReferences');
|
|
10
10
|
})(ShowReferencesNotification = exports.ShowReferencesNotification || (exports.ShowReferencesNotification = {}));
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})(GetDocumentPrintWidthRequest = exports.GetDocumentPrintWidthRequest || (exports.GetDocumentPrintWidthRequest = {}));
|
|
11
|
+
/**
|
|
12
|
+
* Client request server
|
|
13
|
+
*/
|
|
15
14
|
var FindFileReferenceRequest;
|
|
16
15
|
(function (FindFileReferenceRequest) {
|
|
17
16
|
FindFileReferenceRequest.type = new vscode.RequestType('vue/findFileReference');
|
|
18
17
|
})(FindFileReferenceRequest = exports.FindFileReferenceRequest || (exports.FindFileReferenceRequest = {}));
|
|
19
|
-
/**
|
|
20
|
-
* Client request server
|
|
21
|
-
*/
|
|
22
18
|
var GetMatchTsConfigRequest;
|
|
23
19
|
(function (GetMatchTsConfigRequest) {
|
|
24
20
|
GetMatchTsConfigRequest.type = new vscode.RequestType('volar/tsconfig');
|
|
@@ -39,6 +35,14 @@ var ReloadProjectNotification;
|
|
|
39
35
|
(function (ReloadProjectNotification) {
|
|
40
36
|
ReloadProjectNotification.type = new vscode.NotificationType('volar.action.reloadProject');
|
|
41
37
|
})(ReloadProjectNotification = exports.ReloadProjectNotification || (exports.ReloadProjectNotification = {}));
|
|
38
|
+
var GetVirtualFileNamesRequest;
|
|
39
|
+
(function (GetVirtualFileNamesRequest) {
|
|
40
|
+
GetVirtualFileNamesRequest.type = new vscode.RequestType('vue/virtualFileNames');
|
|
41
|
+
})(GetVirtualFileNamesRequest = exports.GetVirtualFileNamesRequest || (exports.GetVirtualFileNamesRequest = {}));
|
|
42
|
+
var GetVirtualFileRequest;
|
|
43
|
+
(function (GetVirtualFileRequest) {
|
|
44
|
+
GetVirtualFileRequest.type = new vscode.RequestType('vue/virtualFile');
|
|
45
|
+
})(GetVirtualFileRequest = exports.GetVirtualFileRequest || (exports.GetVirtualFileRequest = {}));
|
|
42
46
|
/**
|
|
43
47
|
* FS request for browser
|
|
44
48
|
*/
|
package/out/utils/project.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare function createProject(runtimeEnv: RuntimeEnvironment, plugins: R
|
|
|
17
17
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
18
18
|
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
19
19
|
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
20
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.
|
|
20
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
|
|
21
21
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
22
22
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
23
23
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: embeddedLS.SemanticToken[]) => void) | undefined) => Promise<embeddedLS.SemanticToken[] | undefined> | undefined;
|
|
@@ -60,7 +60,7 @@ export declare function createProject(runtimeEnv: RuntimeEnvironment, plugins: R
|
|
|
60
60
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
61
61
|
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
62
62
|
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
63
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.
|
|
63
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
|
|
64
64
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
65
65
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
66
66
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: embeddedLS.SemanticToken[]) => void) | undefined) => Promise<embeddedLS.SemanticToken[] | undefined> | undefined;
|
|
@@ -32,7 +32,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
32
32
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
33
33
|
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
34
34
|
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
35
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.
|
|
35
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
|
|
36
36
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
37
37
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
38
38
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
@@ -75,7 +75,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
75
75
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
76
76
|
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
77
77
|
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
78
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.
|
|
78
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
|
|
79
79
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
80
80
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
81
81
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
@@ -32,7 +32,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
32
32
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
33
33
|
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
34
34
|
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
35
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.
|
|
35
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
|
|
36
36
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
37
37
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
38
38
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
@@ -75,7 +75,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
75
75
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
76
76
|
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
77
77
|
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
78
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.
|
|
78
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
|
|
79
79
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
80
80
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
81
81
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
@@ -129,7 +129,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
129
129
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
130
130
|
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
131
131
|
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
132
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.
|
|
132
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
|
|
133
133
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
134
134
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
135
135
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
@@ -172,7 +172,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
172
172
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
173
173
|
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
174
174
|
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
175
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.
|
|
175
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
|
|
176
176
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
177
177
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
178
178
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
@@ -221,7 +221,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
221
221
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
222
222
|
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
223
223
|
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
224
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.
|
|
224
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
|
|
225
225
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
226
226
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
227
227
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
@@ -264,7 +264,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
264
264
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
265
265
|
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
266
266
|
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
267
|
-
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.
|
|
267
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.ResponseError<void> | vscode.Range | null | undefined> | undefined>;
|
|
268
268
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
269
269
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
270
270
|
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volar/language-server",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.4",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"directory": "packages/language-server"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@volar/language-core": "1.0.0-beta.
|
|
21
|
-
"@volar/language-service": "1.0.0-beta.
|
|
22
|
-
"@volar/shared": "1.0.0-beta.
|
|
20
|
+
"@volar/language-core": "1.0.0-beta.4",
|
|
21
|
+
"@volar/language-service": "1.0.0-beta.4",
|
|
22
|
+
"@volar/shared": "1.0.0-beta.4",
|
|
23
23
|
"request-light": "^0.5.8",
|
|
24
24
|
"typesafe-path": "^0.2.0",
|
|
25
25
|
"vscode-html-languageservice": "^5.0.1",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"vscode-languageserver-textdocument": "^1.0.7",
|
|
29
29
|
"vscode-uri": "^3.0.3"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "95f02fda8b432ca1d0cc08694ba3911c9e3b9ec6"
|
|
32
32
|
}
|