@volar/language-server 1.0.0-beta.3 → 1.0.0-beta.5
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/features/customFeatures.js +41 -5
- package/out/protocol.d.ts +29 -10
- package/out/protocol.js +12 -8
- package/out/utils/config.d.ts +2 -2
- package/out/utils/configurationHost.d.ts +1 -1
- package/out/utils/documentServiceHost.d.ts +1 -2
- package/out/utils/inferredCompilerOptions.d.ts +1 -1
- package/out/utils/project.d.ts +1 -1
- package/out/utils/project.js +1 -1
- package/out/utils/workspaceProjects.d.ts +5 -5
- package/out/utils/workspaceProjects.js +1 -1
- package/out/utils/workspaces.d.ts +13 -13
- package/package.json +5 -5
|
@@ -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/config.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare function loadCustomPlugins(dir: string):
|
|
1
|
+
import { LanguageServicePlugin } from '@volar/language-service';
|
|
2
|
+
export declare function loadCustomPlugins(dir: string): LanguageServicePlugin[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vscode from 'vscode-languageserver';
|
|
2
|
-
import { ConfigurationHost } from '@volar/
|
|
2
|
+
import { ConfigurationHost } from '@volar/language-service';
|
|
3
3
|
export declare function createConfigurationHost(params: vscode.InitializeParams, connection: vscode.Connection): ConfigurationHost & {
|
|
4
4
|
ready(): void;
|
|
5
5
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { LanguageServerPlugin, RuntimeEnvironment } from '../types';
|
|
2
2
|
import * as embedded from '@volar/language-service';
|
|
3
|
-
import { ConfigurationHost } from '@volar/vue-language-service';
|
|
4
3
|
import { URI } from 'vscode-uri';
|
|
5
4
|
import type * as _ from 'vscode-languageserver-textdocument';
|
|
6
|
-
export declare function createDocumentServiceHost(runtimeEnv: RuntimeEnvironment, plugins: ReturnType<LanguageServerPlugin>[], ts: typeof import('typescript/lib/tsserverlibrary'), configHost: ConfigurationHost | undefined): {
|
|
5
|
+
export declare function createDocumentServiceHost(runtimeEnv: RuntimeEnvironment, plugins: ReturnType<LanguageServerPlugin>[], ts: typeof import('typescript/lib/tsserverlibrary'), configHost: embedded.ConfigurationHost | undefined): {
|
|
7
6
|
add: (rootUri: URI) => void;
|
|
8
7
|
remove: (rootUri: URI) => void;
|
|
9
8
|
get: (documentUri: string) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ConfigurationHost } from '@volar/
|
|
1
|
+
import { ConfigurationHost } from '@volar/language-service';
|
|
2
2
|
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
3
3
|
export declare function getInferredCompilerOptions(ts: typeof import('typescript/lib/tsserverlibrary'), configurationHost: ConfigurationHost | undefined): Promise<ts.CompilerOptions>;
|
package/out/utils/project.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as vscode from 'vscode-languageserver';
|
|
|
4
4
|
import { URI } from 'vscode-uri';
|
|
5
5
|
import { FileSystemHost, LanguageServerPlugin, RuntimeEnvironment } from '../types';
|
|
6
6
|
import { createSnapshots } from './snapshots';
|
|
7
|
-
import { ConfigurationHost } from '@volar/
|
|
7
|
+
import { ConfigurationHost } from '@volar/language-service';
|
|
8
8
|
import * as path from 'typesafe-path';
|
|
9
9
|
import { CancellactionTokenHost } from './cancellationPipe';
|
|
10
10
|
export interface Project extends ReturnType<typeof createProject> {
|
package/out/utils/project.js
CHANGED
|
@@ -21,7 +21,7 @@ function createProject(runtimeEnv, plugins, fsHost, ts, rootUri, tsConfig, tsLoc
|
|
|
21
21
|
const sys = fsHost.getWorkspaceFileSystem(rootUri);
|
|
22
22
|
let typeRootVersion = 0;
|
|
23
23
|
let projectVersion = 0;
|
|
24
|
-
let projectVersionUpdateTime =
|
|
24
|
+
let projectVersionUpdateTime = cancelTokenHost.getMtime();
|
|
25
25
|
let vueLs;
|
|
26
26
|
let parsedCommandLine = createParsedCommandLine(ts, sys, shared.getPathOfUri(rootUri.toString()), tsConfig, plugins);
|
|
27
27
|
const scripts = shared.createUriMap();
|
|
@@ -6,7 +6,7 @@ import { Project } from './project';
|
|
|
6
6
|
import { LanguageServerPlugin, RuntimeEnvironment, FileSystemHost } from '../types';
|
|
7
7
|
import { createSnapshots } from './snapshots';
|
|
8
8
|
import { URI } from 'vscode-uri';
|
|
9
|
-
import { ConfigurationHost } from '@volar/
|
|
9
|
+
import { ConfigurationHost } from '@volar/language-service';
|
|
10
10
|
import { CancellactionTokenHost } from './cancellationPipe';
|
|
11
11
|
export declare const rootTsConfigNames: string[];
|
|
12
12
|
export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment, plugins: ReturnType<LanguageServerPlugin>[], fsHost: FileSystemHost, rootUri: URI, ts: typeof import('typescript/lib/tsserverlibrary'), tsLocalized: ts.MapLike<string> | undefined, documents: ReturnType<typeof createSnapshots>, configHost: ConfigurationHost | undefined, cancelTokenHost: CancellactionTokenHost): Promise<{
|
|
@@ -35,7 +35,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
35
35
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | 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
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/
|
|
38
|
+
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
39
39
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
40
40
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
41
41
|
isIncomplete: boolean;
|
|
@@ -58,7 +58,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
58
58
|
text: string;
|
|
59
59
|
};
|
|
60
60
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
61
|
-
doExecuteCommand: (command: string, args: import("@volar/
|
|
61
|
+
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
62
62
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
63
63
|
callHierarchy: {
|
|
64
64
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -78,7 +78,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
78
78
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | 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
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/
|
|
81
|
+
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
82
82
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
83
83
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
84
84
|
isIncomplete: boolean;
|
|
@@ -101,7 +101,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
101
101
|
text: string;
|
|
102
102
|
};
|
|
103
103
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
104
|
-
doExecuteCommand: (command: string, args: import("@volar/
|
|
104
|
+
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
105
105
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
106
106
|
callHierarchy: {
|
|
107
107
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -216,7 +216,7 @@ function sortTsConfigs(fsPath, a, b) {
|
|
|
216
216
|
return bWeight - aWeight;
|
|
217
217
|
}
|
|
218
218
|
const aLength = shared.normalizeFileName(a).split('/').length;
|
|
219
|
-
const bLength = shared.normalizeFileName(
|
|
219
|
+
const bLength = shared.normalizeFileName(b).split('/').length;
|
|
220
220
|
if (aLength === bLength) {
|
|
221
221
|
const aWeight = path.basename(a) === 'tsconfig.json' ? 1 : 0;
|
|
222
222
|
const bWeight = path.basename(b) === 'tsconfig.json' ? 1 : 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as shared from '@volar/shared';
|
|
2
|
-
import { ConfigurationHost } from '@volar/
|
|
2
|
+
import { ConfigurationHost } from '@volar/language-service';
|
|
3
3
|
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
4
4
|
import * as vscode from 'vscode-languageserver';
|
|
5
5
|
import { URI } from 'vscode-uri';
|
|
@@ -35,7 +35,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
35
35
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | 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
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/
|
|
38
|
+
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
39
39
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
40
40
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
41
41
|
isIncomplete: boolean;
|
|
@@ -58,7 +58,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
58
58
|
text: string;
|
|
59
59
|
};
|
|
60
60
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
61
|
-
doExecuteCommand: (command: string, args: import("@volar/
|
|
61
|
+
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
62
62
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
63
63
|
callHierarchy: {
|
|
64
64
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -78,7 +78,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
78
78
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | 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
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/
|
|
81
|
+
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
82
82
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
83
83
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
84
84
|
isIncomplete: boolean;
|
|
@@ -101,7 +101,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
101
101
|
text: string;
|
|
102
102
|
};
|
|
103
103
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
104
|
-
doExecuteCommand: (command: string, args: import("@volar/
|
|
104
|
+
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
105
105
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
106
106
|
callHierarchy: {
|
|
107
107
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -132,7 +132,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
132
132
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | 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
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/
|
|
135
|
+
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
136
136
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
137
137
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
138
138
|
isIncomplete: boolean;
|
|
@@ -155,7 +155,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
155
155
|
text: string;
|
|
156
156
|
};
|
|
157
157
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
158
|
-
doExecuteCommand: (command: string, args: import("@volar/
|
|
158
|
+
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
159
159
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
160
160
|
callHierarchy: {
|
|
161
161
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -175,7 +175,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
175
175
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | 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
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/
|
|
178
|
+
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
179
179
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
180
180
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
181
181
|
isIncomplete: boolean;
|
|
@@ -198,7 +198,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
198
198
|
text: string;
|
|
199
199
|
};
|
|
200
200
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
201
|
-
doExecuteCommand: (command: string, args: import("@volar/
|
|
201
|
+
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
202
202
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
203
203
|
callHierarchy: {
|
|
204
204
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -224,7 +224,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
224
224
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | 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
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/
|
|
227
|
+
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
228
228
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
229
229
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
230
230
|
isIncomplete: boolean;
|
|
@@ -247,7 +247,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
247
247
|
text: string;
|
|
248
248
|
};
|
|
249
249
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
250
|
-
doExecuteCommand: (command: string, args: import("@volar/
|
|
250
|
+
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
251
251
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
252
252
|
callHierarchy: {
|
|
253
253
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
@@ -267,7 +267,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
267
267
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | 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
|
-
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/
|
|
270
|
+
getSemanticTokens: (uri: string, range: vscode.Range | undefined, cancleToken: vscode.CancellationToken, reportProgress?: ((tokens: import("@volar/language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/language-service").SemanticToken[] | undefined> | undefined;
|
|
271
271
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
272
272
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
273
273
|
isIncomplete: boolean;
|
|
@@ -290,7 +290,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
290
290
|
text: string;
|
|
291
291
|
};
|
|
292
292
|
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
293
|
-
doExecuteCommand: (command: string, args: import("@volar/
|
|
293
|
+
doExecuteCommand: (command: string, args: import("@volar/language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
294
294
|
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
295
295
|
callHierarchy: {
|
|
296
296
|
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | 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.5",
|
|
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.5",
|
|
21
|
+
"@volar/language-service": "1.0.0-beta.5",
|
|
22
|
+
"@volar/shared": "1.0.0-beta.5",
|
|
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": "4cea0daf2ef63a0c082b84267f7b08915c0ff43a"
|
|
32
32
|
}
|