@volar/language-server 1.0.0-beta.1 → 1.0.0-beta.3
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.d.ts +1 -2
- package/out/features/customFeatures.js +14 -25
- package/out/features/documentFeatures.js +2 -2
- package/out/features/languageFeatures.d.ts +2 -2
- package/out/features/languageFeatures.js +25 -16
- package/out/index.d.ts +3 -2
- package/out/index.js +4 -2
- package/out/node.js +11 -7
- package/out/{requests.d.ts → protocol.d.ts} +0 -11
- package/out/{requests.js → protocol.js} +2 -10
- package/out/registerFeatures.d.ts +5 -0
- package/out/registerFeatures.js +174 -0
- package/out/server.js +53 -23
- package/out/types.d.ts +23 -72
- package/out/types.js +13 -0
- package/out/utils/cancellationPipe.d.ts +6 -0
- package/out/utils/cancellationPipe.js +44 -0
- package/out/utils/project.d.ts +10 -8
- package/out/utils/project.js +25 -35
- package/out/utils/snapshots.d.ts +4 -4
- package/out/utils/webFileSystemHost.js +20 -19
- package/out/utils/workspaceProjects.d.ts +15 -13
- package/out/utils/workspaceProjects.js +9 -8
- package/out/utils/workspaces.d.ts +25 -24
- package/out/utils/workspaces.js +13 -12
- package/package.json +6 -6
- package/out/registers/registerDocumentFeatures.d.ts +0 -3
- package/out/registers/registerDocumentFeatures.js +0 -30
- package/out/registers/registerlanguageFeatures.d.ts +0 -3
- package/out/registers/registerlanguageFeatures.js +0 -144
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as shared from '@volar/shared';
|
|
2
2
|
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
3
|
+
import * as path from 'typesafe-path';
|
|
3
4
|
import * as vscode from 'vscode-languageserver';
|
|
4
5
|
import { Project } from './project';
|
|
5
|
-
import { LanguageServerPlugin, RuntimeEnvironment, FileSystemHost
|
|
6
|
+
import { LanguageServerPlugin, RuntimeEnvironment, FileSystemHost } from '../types';
|
|
6
7
|
import { createSnapshots } from './snapshots';
|
|
7
8
|
import { URI } from 'vscode-uri';
|
|
8
9
|
import { ConfigurationHost } from '@volar/vue-language-service';
|
|
10
|
+
import { CancellactionTokenHost } from './cancellationPipe';
|
|
9
11
|
export declare const rootTsConfigNames: string[];
|
|
10
|
-
export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment, plugins: ReturnType<LanguageServerPlugin>[], fsHost: FileSystemHost, rootUri: URI, ts: typeof import('typescript/lib/tsserverlibrary'), tsLocalized: ts.MapLike<string> | undefined,
|
|
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<{
|
|
11
13
|
projects: {
|
|
12
14
|
clear: () => void;
|
|
13
15
|
values: () => IterableIterator<Project>;
|
|
@@ -15,16 +17,16 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
15
17
|
uriGet: (_uri: string) => Project | undefined;
|
|
16
18
|
uriHas: (_uri: string) => boolean;
|
|
17
19
|
uriSet: (_uri: string, item: Project) => void;
|
|
18
|
-
pathDelete: (rootUri: shared.
|
|
19
|
-
pathGet: (rootUri: shared.
|
|
20
|
-
pathHas: (rootUri: shared.
|
|
21
|
-
pathSet: (rootUri: shared.
|
|
20
|
+
pathDelete: (rootUri: shared._2.URI, path: string) => boolean;
|
|
21
|
+
pathGet: (rootUri: shared._2.URI, path: string) => Project | undefined;
|
|
22
|
+
pathHas: (rootUri: shared._2.URI, path: string) => Project | undefined;
|
|
23
|
+
pathSet: (rootUri: shared._2.URI, path: string, item: Project) => void;
|
|
22
24
|
};
|
|
23
25
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
24
26
|
tsconfig: string;
|
|
25
27
|
project: {
|
|
26
28
|
getLanguageService: () => {
|
|
27
|
-
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined
|
|
29
|
+
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
28
30
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
29
31
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
30
32
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -33,7 +35,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
33
35
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
34
36
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
35
37
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
36
|
-
getSemanticTokens: (uri: string, range
|
|
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;
|
|
37
39
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
38
40
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
39
41
|
isIncomplete: boolean;
|
|
@@ -41,7 +43,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
41
43
|
}>;
|
|
42
44
|
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
43
45
|
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
44
|
-
doCompletionResolve: (item: vscode.CompletionItem
|
|
46
|
+
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
45
47
|
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
46
48
|
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
47
49
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
@@ -67,7 +69,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
67
69
|
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
68
70
|
};
|
|
69
71
|
getLanguageServiceDontCreate: () => {
|
|
70
|
-
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined
|
|
72
|
+
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
71
73
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
72
74
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
73
75
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -76,7 +78,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
76
78
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
77
79
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
78
80
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
79
|
-
getSemanticTokens: (uri: string, range
|
|
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;
|
|
80
82
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
81
83
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
82
84
|
isIncomplete: boolean;
|
|
@@ -84,7 +86,7 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
84
86
|
}>;
|
|
85
87
|
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
86
88
|
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
87
|
-
doCompletionResolve: (item: vscode.CompletionItem
|
|
89
|
+
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
88
90
|
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
89
91
|
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
90
92
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
@@ -117,4 +119,4 @@ export declare function createWorkspaceProjects(runtimeEnv: RuntimeEnvironment,
|
|
|
117
119
|
reload: () => void;
|
|
118
120
|
dispose(): void;
|
|
119
121
|
}>;
|
|
120
|
-
export declare function sortTsConfigs(fsPath:
|
|
122
|
+
export declare function sortTsConfigs(fsPath: path.OsPath, a: path.OsPath, b: path.OsPath): number;
|
|
@@ -10,13 +10,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.sortTsConfigs = exports.createWorkspaceProjects = exports.rootTsConfigNames = void 0;
|
|
12
12
|
const shared = require("@volar/shared");
|
|
13
|
-
const path = require("
|
|
13
|
+
const path = require("typesafe-path");
|
|
14
14
|
const vscode = require("vscode-languageserver");
|
|
15
15
|
const project_1 = require("./project");
|
|
16
16
|
const inferredCompilerOptions_1 = require("./inferredCompilerOptions");
|
|
17
17
|
const vscode_uri_1 = require("vscode-uri");
|
|
18
18
|
exports.rootTsConfigNames = ['tsconfig.json', 'jsconfig.json'];
|
|
19
|
-
function createWorkspaceProjects(runtimeEnv, plugins, fsHost, rootUri, ts, tsLocalized,
|
|
19
|
+
function createWorkspaceProjects(runtimeEnv, plugins, fsHost, rootUri, ts, tsLocalized, documents, configHost, cancelTokenHost) {
|
|
20
20
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
21
|
let inferredProject;
|
|
22
22
|
const sys = fsHost.getWorkspaceFileSystem(rootUri);
|
|
@@ -26,7 +26,7 @@ function createWorkspaceProjects(runtimeEnv, plugins, fsHost, rootUri, ts, tsLoc
|
|
|
26
26
|
const disposeWatch = fsHost.onDidChangeWatchedFiles((params, reason) => __awaiter(this, void 0, void 0, function* () {
|
|
27
27
|
const disposes = [];
|
|
28
28
|
for (const change of params.changes) {
|
|
29
|
-
if (exports.rootTsConfigNames.includes(
|
|
29
|
+
if (exports.rootTsConfigNames.includes(change.uri.substring(change.uri.lastIndexOf('/') + 1))) {
|
|
30
30
|
if (change.type === vscode.FileChangeType.Created) {
|
|
31
31
|
if (shared.isFileInDir(vscode_uri_1.URI.parse(change.uri).fsPath, rootUri.fsPath)) {
|
|
32
32
|
rootTsConfigs.add(vscode_uri_1.URI.parse(change.uri).fsPath);
|
|
@@ -88,7 +88,7 @@ function createWorkspaceProjects(runtimeEnv, plugins, fsHost, rootUri, ts, tsLoc
|
|
|
88
88
|
if (!inferredProject) {
|
|
89
89
|
inferredProject = (() => __awaiter(this, void 0, void 0, function* () {
|
|
90
90
|
const inferOptions = yield (0, inferredCompilerOptions_1.getInferredCompilerOptions)(ts, configHost);
|
|
91
|
-
return (0, project_1.createProject)(runtimeEnv, plugins, fsHost, ts,
|
|
91
|
+
return (0, project_1.createProject)(runtimeEnv, plugins, fsHost, ts, rootUri, inferOptions, tsLocalized, documents, configHost, documentRegistry, cancelTokenHost);
|
|
92
92
|
}))();
|
|
93
93
|
}
|
|
94
94
|
return inferredProject;
|
|
@@ -195,10 +195,11 @@ function createWorkspaceProjects(runtimeEnv, plugins, fsHost, rootUri, ts, tsLoc
|
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
function getProjectByCreate(
|
|
198
|
+
function getProjectByCreate(_tsConfig) {
|
|
199
|
+
const tsConfig = shared.normalizeFileName(_tsConfig);
|
|
199
200
|
let project = projects.pathGet(rootUri, tsConfig);
|
|
200
201
|
if (!project) {
|
|
201
|
-
project = (0, project_1.createProject)(runtimeEnv, plugins, fsHost, ts,
|
|
202
|
+
project = (0, project_1.createProject)(runtimeEnv, plugins, fsHost, ts, vscode_uri_1.URI.parse(shared.getUriByPath(rootUri, path.dirname(tsConfig))), tsConfig, tsLocalized, documents, configHost, documentRegistry, cancelTokenHost);
|
|
202
203
|
projects.pathSet(rootUri, tsConfig, project);
|
|
203
204
|
}
|
|
204
205
|
return project;
|
|
@@ -214,8 +215,8 @@ function sortTsConfigs(fsPath, a, b) {
|
|
|
214
215
|
const bWeight = inB ? 1 : 0;
|
|
215
216
|
return bWeight - aWeight;
|
|
216
217
|
}
|
|
217
|
-
const aLength = a.split('/').length;
|
|
218
|
-
const bLength =
|
|
218
|
+
const aLength = shared.normalizeFileName(a).split('/').length;
|
|
219
|
+
const bLength = shared.normalizeFileName(a).split('/').length;
|
|
219
220
|
if (aLength === bLength) {
|
|
220
221
|
const aWeight = path.basename(a) === 'tsconfig.json' ? 1 : 0;
|
|
221
222
|
const bWeight = path.basename(b) === 'tsconfig.json' ? 1 : 0;
|
|
@@ -3,11 +3,12 @@ import { ConfigurationHost } from '@volar/vue-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';
|
|
6
|
-
import { FileSystemHost, LanguageServerPlugin, RuntimeEnvironment,
|
|
6
|
+
import { FileSystemHost, LanguageServerPlugin, RuntimeEnvironment, LanguageServerInitializationOptions } from '../types';
|
|
7
7
|
import { createSnapshots } from './snapshots';
|
|
8
|
+
import { CancellactionTokenHost } from './cancellationPipe';
|
|
8
9
|
export interface Workspaces extends ReturnType<typeof createWorkspaces> {
|
|
9
10
|
}
|
|
10
|
-
export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins: ReturnType<LanguageServerPlugin>[], fsHost: FileSystemHost, configurationHost: ConfigurationHost | undefined, ts: typeof import('typescript/lib/tsserverlibrary'), tsLocalized: ts.MapLike<string> | undefined, options:
|
|
11
|
+
export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins: ReturnType<LanguageServerPlugin>[], fsHost: FileSystemHost, configurationHost: ConfigurationHost | undefined, ts: typeof import('typescript/lib/tsserverlibrary'), tsLocalized: ts.MapLike<string> | undefined, client: vscode.ClientCapabilities, options: LanguageServerInitializationOptions, documents: ReturnType<typeof createSnapshots>, connection: vscode.Connection, cancelTokenHost: CancellactionTokenHost): {
|
|
11
12
|
workspaces: Map<string, Promise<{
|
|
12
13
|
projects: {
|
|
13
14
|
clear: () => void;
|
|
@@ -16,16 +17,16 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
16
17
|
uriGet: (_uri: string) => import("./project").Project | undefined;
|
|
17
18
|
uriHas: (_uri: string) => boolean;
|
|
18
19
|
uriSet: (_uri: string, item: import("./project").Project) => void;
|
|
19
|
-
pathDelete: (rootUri: shared.
|
|
20
|
-
pathGet: (rootUri: shared.
|
|
21
|
-
pathHas: (rootUri: shared.
|
|
22
|
-
pathSet: (rootUri: shared.
|
|
20
|
+
pathDelete: (rootUri: shared._2.URI, path: string) => boolean;
|
|
21
|
+
pathGet: (rootUri: shared._2.URI, path: string) => import("./project").Project | undefined;
|
|
22
|
+
pathHas: (rootUri: shared._2.URI, path: string) => import("./project").Project | undefined;
|
|
23
|
+
pathSet: (rootUri: shared._2.URI, path: string, item: import("./project").Project) => void;
|
|
23
24
|
};
|
|
24
25
|
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
25
26
|
tsconfig: string;
|
|
26
27
|
project: {
|
|
27
28
|
getLanguageService: () => {
|
|
28
|
-
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined
|
|
29
|
+
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
29
30
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
30
31
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
31
32
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -34,7 +35,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
34
35
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
35
36
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
36
37
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
37
|
-
getSemanticTokens: (uri: string, range
|
|
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;
|
|
38
39
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
39
40
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
40
41
|
isIncomplete: boolean;
|
|
@@ -42,7 +43,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
42
43
|
}>;
|
|
43
44
|
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
44
45
|
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
45
|
-
doCompletionResolve: (item: vscode.CompletionItem
|
|
46
|
+
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
46
47
|
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
47
48
|
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
48
49
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
@@ -68,7 +69,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
68
69
|
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
69
70
|
};
|
|
70
71
|
getLanguageServiceDontCreate: () => {
|
|
71
|
-
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined
|
|
72
|
+
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
72
73
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
73
74
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
74
75
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -77,7 +78,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
77
78
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
78
79
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
79
80
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
80
|
-
getSemanticTokens: (uri: string, range
|
|
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;
|
|
81
82
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
82
83
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
83
84
|
isIncomplete: boolean;
|
|
@@ -85,7 +86,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
85
86
|
}>;
|
|
86
87
|
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
87
88
|
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
88
|
-
doCompletionResolve: (item: vscode.CompletionItem
|
|
89
|
+
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
89
90
|
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
90
91
|
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
91
92
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
@@ -122,7 +123,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
122
123
|
tsconfig: string;
|
|
123
124
|
project: {
|
|
124
125
|
getLanguageService: () => {
|
|
125
|
-
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined
|
|
126
|
+
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
126
127
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
127
128
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
128
129
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -131,7 +132,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
131
132
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
132
133
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
133
134
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
134
|
-
getSemanticTokens: (uri: string, range
|
|
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;
|
|
135
136
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
136
137
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
137
138
|
isIncomplete: boolean;
|
|
@@ -139,7 +140,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
139
140
|
}>;
|
|
140
141
|
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
141
142
|
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
142
|
-
doCompletionResolve: (item: vscode.CompletionItem
|
|
143
|
+
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
143
144
|
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
144
145
|
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
145
146
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
@@ -165,7 +166,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
165
166
|
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
166
167
|
};
|
|
167
168
|
getLanguageServiceDontCreate: () => {
|
|
168
|
-
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined
|
|
169
|
+
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
169
170
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
170
171
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
171
172
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -174,7 +175,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
174
175
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
175
176
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
176
177
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
177
|
-
getSemanticTokens: (uri: string, range
|
|
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;
|
|
178
179
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
179
180
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
180
181
|
isIncomplete: boolean;
|
|
@@ -182,7 +183,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
182
183
|
}>;
|
|
183
184
|
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
184
185
|
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
185
|
-
doCompletionResolve: (item: vscode.CompletionItem
|
|
186
|
+
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
186
187
|
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
187
188
|
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
188
189
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
@@ -214,7 +215,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
214
215
|
tsconfig: undefined;
|
|
215
216
|
project: {
|
|
216
217
|
getLanguageService: () => {
|
|
217
|
-
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined
|
|
218
|
+
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
218
219
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
219
220
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
220
221
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -223,7 +224,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
223
224
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
224
225
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
225
226
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
226
|
-
getSemanticTokens: (uri: string, range
|
|
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;
|
|
227
228
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
228
229
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
229
230
|
isIncomplete: boolean;
|
|
@@ -231,7 +232,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
231
232
|
}>;
|
|
232
233
|
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
233
234
|
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
234
|
-
doCompletionResolve: (item: vscode.CompletionItem
|
|
235
|
+
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
235
236
|
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
236
237
|
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
237
238
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
@@ -257,7 +258,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
257
258
|
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
258
259
|
};
|
|
259
260
|
getLanguageServiceDontCreate: () => {
|
|
260
|
-
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined
|
|
261
|
+
doValidation: (uri: string, token?: vscode.CancellationToken | undefined, response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
261
262
|
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
262
263
|
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
263
264
|
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -266,7 +267,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
266
267
|
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
267
268
|
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
268
269
|
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
269
|
-
getSemanticTokens: (uri: string, range
|
|
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;
|
|
270
271
|
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
271
272
|
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
272
273
|
isIncomplete: boolean;
|
|
@@ -274,7 +275,7 @@ export declare function createWorkspaces(runtimeEnv: RuntimeEnvironment, plugins
|
|
|
274
275
|
}>;
|
|
275
276
|
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
276
277
|
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
277
|
-
doCompletionResolve: (item: vscode.CompletionItem
|
|
278
|
+
doCompletionResolve: (item: vscode.CompletionItem) => Promise<vscode.CompletionItem>;
|
|
278
279
|
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
279
280
|
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
280
281
|
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
package/out/utils/workspaces.js
CHANGED
|
@@ -10,9 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.createWorkspaces = void 0;
|
|
12
12
|
const shared = require("@volar/shared");
|
|
13
|
+
const vscode = require("vscode-languageserver");
|
|
13
14
|
const vscode_uri_1 = require("vscode-uri");
|
|
15
|
+
const types_1 = require("../types");
|
|
14
16
|
const workspaceProjects_1 = require("./workspaceProjects");
|
|
15
|
-
function createWorkspaces(runtimeEnv, plugins, fsHost, configurationHost, ts, tsLocalized, options, documents, connection) {
|
|
17
|
+
function createWorkspaces(runtimeEnv, plugins, fsHost, configurationHost, ts, tsLocalized, client, options, documents, connection, cancelTokenHost) {
|
|
16
18
|
var _a;
|
|
17
19
|
let semanticTokensReq = 0;
|
|
18
20
|
let documentUpdatedReq = 0;
|
|
@@ -43,7 +45,7 @@ function createWorkspaces(runtimeEnv, plugins, fsHost, configurationHost, ts, ts
|
|
|
43
45
|
getProject,
|
|
44
46
|
reloadProject,
|
|
45
47
|
add: (rootUri) => {
|
|
46
|
-
workspaces.set(rootUri.toString(), (0, workspaceProjects_1.createWorkspaceProjects)(runtimeEnv, plugins, fsHost, rootUri, ts, tsLocalized,
|
|
48
|
+
workspaces.set(rootUri.toString(), (0, workspaceProjects_1.createWorkspaceProjects)(runtimeEnv, plugins, fsHost, rootUri, ts, tsLocalized, documents, configurationHost, cancelTokenHost));
|
|
47
49
|
},
|
|
48
50
|
remove: (rootUri) => {
|
|
49
51
|
const _workspace = workspaces.get(rootUri.toString());
|
|
@@ -68,11 +70,11 @@ function createWorkspaces(runtimeEnv, plugins, fsHost, configurationHost, ts, ts
|
|
|
68
70
|
const req = ++semanticTokensReq;
|
|
69
71
|
yield updateDiagnostics();
|
|
70
72
|
if (req === semanticTokensReq) {
|
|
71
|
-
if ((_a =
|
|
73
|
+
if ((_a = client.textDocument) === null || _a === void 0 ? void 0 : _a.semanticTokens) {
|
|
72
74
|
connection.languages.semanticTokens.refresh();
|
|
73
75
|
}
|
|
74
|
-
if ((_b =
|
|
75
|
-
connection.languages.
|
|
76
|
+
if ((_b = client.textDocument) === null || _b === void 0 ? void 0 : _b.inlayHint) {
|
|
77
|
+
connection.languages.inlayHint.refresh();
|
|
76
78
|
}
|
|
77
79
|
}
|
|
78
80
|
});
|
|
@@ -80,17 +82,16 @@ function createWorkspaces(runtimeEnv, plugins, fsHost, configurationHost, ts, ts
|
|
|
80
82
|
function updateDiagnostics(docUri) {
|
|
81
83
|
var _a;
|
|
82
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
if (
|
|
85
|
+
if (((_a = options.diagnosticModel) !== null && _a !== void 0 ? _a : types_1.DiagnosticModel.Push) !== types_1.DiagnosticModel.Push)
|
|
84
86
|
return;
|
|
85
87
|
const req = ++documentUpdatedReq;
|
|
86
88
|
const delay = yield (configurationHost === null || configurationHost === void 0 ? void 0 : configurationHost.getConfiguration('volar.diagnostics.delay'));
|
|
87
|
-
const cancel = {
|
|
89
|
+
const cancel = cancelTokenHost.createCancellactionToken({
|
|
88
90
|
get isCancellationRequested() {
|
|
89
91
|
return req !== documentUpdatedReq;
|
|
90
92
|
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
};
|
|
93
|
+
onCancellationRequested: vscode.Event.None,
|
|
94
|
+
});
|
|
94
95
|
const changeDoc = docUri ? documents.data.uriGet(docUri) : undefined;
|
|
95
96
|
const otherDocs = [...documents.data.values()].filter(doc => doc !== changeDoc);
|
|
96
97
|
if (changeDoc) {
|
|
@@ -111,9 +112,9 @@ function createWorkspaces(runtimeEnv, plugins, fsHost, configurationHost, ts, ts
|
|
|
111
112
|
if (!project)
|
|
112
113
|
return;
|
|
113
114
|
const languageService = project.getLanguageService();
|
|
114
|
-
const errors = yield languageService.doValidation(uri, result => {
|
|
115
|
+
const errors = yield languageService.doValidation(uri, cancel, result => {
|
|
115
116
|
connection.sendDiagnostics({ uri: uri, diagnostics: result.map(addVersion), version });
|
|
116
|
-
}
|
|
117
|
+
});
|
|
117
118
|
connection.sendDiagnostics({ uri: uri, diagnostics: errors.map(addVersion), version });
|
|
118
119
|
function addVersion(error) {
|
|
119
120
|
if (error.data === 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.3",
|
|
4
4
|
"main": "out/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -17,16 +17,16 @@
|
|
|
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.3",
|
|
21
|
+
"@volar/language-service": "1.0.0-beta.3",
|
|
22
|
+
"@volar/shared": "1.0.0-beta.3",
|
|
23
23
|
"request-light": "^0.5.8",
|
|
24
|
-
"
|
|
24
|
+
"typesafe-path": "^0.2.0",
|
|
25
25
|
"vscode-html-languageservice": "^5.0.1",
|
|
26
26
|
"vscode-languageserver": "^8.0.2",
|
|
27
27
|
"vscode-languageserver-protocol": "^3.17.2",
|
|
28
28
|
"vscode-languageserver-textdocument": "^1.0.7",
|
|
29
29
|
"vscode-uri": "^3.0.3"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "b7242f995970b4eedfcf068619497eb845e9ac73"
|
|
32
32
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.register = void 0;
|
|
3
|
-
function register(features, server) {
|
|
4
|
-
if (features.selectionRange) {
|
|
5
|
-
server.selectionRangeProvider = true;
|
|
6
|
-
}
|
|
7
|
-
if (features.foldingRange) {
|
|
8
|
-
server.foldingRangeProvider = true;
|
|
9
|
-
}
|
|
10
|
-
if (features.linkedEditingRange) {
|
|
11
|
-
server.linkedEditingRangeProvider = true;
|
|
12
|
-
}
|
|
13
|
-
if (features.documentColor) {
|
|
14
|
-
server.colorProvider = true;
|
|
15
|
-
}
|
|
16
|
-
if (features.documentSymbol) {
|
|
17
|
-
server.documentSymbolProvider = true;
|
|
18
|
-
}
|
|
19
|
-
if (features.documentFormatting) {
|
|
20
|
-
server.documentFormattingProvider = true;
|
|
21
|
-
server.documentRangeFormattingProvider = true;
|
|
22
|
-
// https://github.com/microsoft/vscode/blob/ce119308e8fd4cd3f992d42b297588e7abe33a0c/extensions/typescript-language-features/src/languageFeatures/formatting.ts#L99
|
|
23
|
-
server.documentOnTypeFormattingProvider = {
|
|
24
|
-
firstTriggerCharacter: ';',
|
|
25
|
-
moreTriggerCharacter: ['}', '\n'],
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.register = register;
|
|
30
|
-
//# sourceMappingURL=registerDocumentFeatures.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { LanguageServerPlugin, ServerInitializationOptions } from '../types';
|
|
2
|
-
import * as vscode from 'vscode-languageserver';
|
|
3
|
-
export declare function register(features: NonNullable<ServerInitializationOptions['languageFeatures']>, server: vscode.ServerCapabilities, plugins: ReturnType<LanguageServerPlugin>[]): void;
|