@volar/language-server 1.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/out/browser.d.ts +3 -0
- package/out/browser.js +47 -0
- package/out/features/customFeatures.d.ts +4 -0
- package/out/features/customFeatures.js +83 -0
- package/out/features/documentFeatures.d.ts +4 -0
- package/out/features/documentFeatures.js +73 -0
- package/out/features/languageFeatures.d.ts +4 -0
- package/out/features/languageFeatures.js +274 -0
- package/out/index.d.ts +3 -0
- package/out/index.js +19 -0
- package/out/node.d.ts +3 -0
- package/out/node.js +88 -0
- package/out/registers/registerDocumentFeatures.d.ts +3 -0
- package/out/registers/registerDocumentFeatures.js +30 -0
- package/out/registers/registerlanguageFeatures.d.ts +3 -0
- package/out/registers/registerlanguageFeatures.js +144 -0
- package/out/requests.d.ts +81 -0
- package/out/requests.js +65 -0
- package/out/schemaRequestHandlers/file.d.ts +2 -0
- package/out/schemaRequestHandlers/file.js +12 -0
- package/out/schemaRequestHandlers/http.d.ts +1 -0
- package/out/schemaRequestHandlers/http.js +12 -0
- package/out/server.d.ts +3 -0
- package/out/server.js +99 -0
- package/out/types.d.ts +112 -0
- package/out/types.js +2 -0
- package/out/utils/config.d.ts +2 -0
- package/out/utils/config.js +17 -0
- package/out/utils/configurationHost.d.ts +5 -0
- package/out/utils/configurationHost.js +38 -0
- package/out/utils/documentServiceHost.d.ts +30 -0
- package/out/utils/documentServiceHost.js +51 -0
- package/out/utils/inferredCompilerOptions.d.ts +3 -0
- package/out/utils/inferredCompilerOptions.js +71 -0
- package/out/utils/iterableWeakSet.d.ts +7 -0
- package/out/utils/iterableWeakSet.js +40 -0
- package/out/utils/nodeFileSystemHost.d.ts +3 -0
- package/out/utils/nodeFileSystemHost.js +95 -0
- package/out/utils/project.d.ts +99 -0
- package/out/utils/project.js +273 -0
- package/out/utils/snapshots.d.ts +45 -0
- package/out/utils/snapshots.js +201 -0
- package/out/utils/ts/core.d.ts +83 -0
- package/out/utils/ts/core.js +319 -0
- package/out/utils/ts/corePublic.d.ts +91 -0
- package/out/utils/ts/corePublic.js +50 -0
- package/out/utils/ts/path.d.ts +112 -0
- package/out/utils/ts/path.js +416 -0
- package/out/utils/ts/types.d.ts +129 -0
- package/out/utils/ts/types.js +2 -0
- package/out/utils/ts/utilities.d.ts +7 -0
- package/out/utils/ts/utilities.js +249 -0
- package/out/utils/webFileSystemHost.d.ts +2 -0
- package/out/utils/webFileSystemHost.js +265 -0
- package/out/utils/workspaceProjects.d.ts +120 -0
- package/out/utils/workspaceProjects.js +226 -0
- package/out/utils/workspaces.d.ts +309 -0
- package/out/utils/workspaces.js +154 -0
- package/package.json +27 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.sortTsConfigs = exports.createWorkspaceProjects = exports.rootTsConfigNames = void 0;
|
|
12
|
+
const shared = require("@volar/shared");
|
|
13
|
+
const path = require("upath");
|
|
14
|
+
const vscode = require("vscode-languageserver");
|
|
15
|
+
const project_1 = require("./project");
|
|
16
|
+
const inferredCompilerOptions_1 = require("./inferredCompilerOptions");
|
|
17
|
+
const vscode_uri_1 = require("vscode-uri");
|
|
18
|
+
exports.rootTsConfigNames = ['tsconfig.json', 'jsconfig.json'];
|
|
19
|
+
function createWorkspaceProjects(runtimeEnv, plugins, fsHost, rootUri, ts, tsLocalized, options, documents, connection, configHost) {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
let inferredProject;
|
|
22
|
+
const sys = fsHost.getWorkspaceFileSystem(rootUri);
|
|
23
|
+
const projects = shared.createUriMap();
|
|
24
|
+
const rootTsConfigs = new Set(sys.readDirectory(rootUri.fsPath, exports.rootTsConfigNames, undefined, ['**/*']));
|
|
25
|
+
const disposeWatch = fsHost.onDidChangeWatchedFiles((params, reason) => __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
const disposes = [];
|
|
27
|
+
for (const change of params.changes) {
|
|
28
|
+
if (exports.rootTsConfigNames.includes(path.basename(change.uri))) {
|
|
29
|
+
if (change.type === vscode.FileChangeType.Created) {
|
|
30
|
+
if (shared.isFileInDir(vscode_uri_1.URI.parse(change.uri).fsPath, rootUri.fsPath)) {
|
|
31
|
+
rootTsConfigs.add(vscode_uri_1.URI.parse(change.uri).fsPath);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
else if ((change.type === vscode.FileChangeType.Changed || change.type === vscode.FileChangeType.Deleted) && projects.uriHas(change.uri)) {
|
|
35
|
+
if (change.type === vscode.FileChangeType.Deleted) {
|
|
36
|
+
rootTsConfigs.delete(vscode_uri_1.URI.parse(change.uri).fsPath);
|
|
37
|
+
}
|
|
38
|
+
const _project = projects.uriGet(change.uri);
|
|
39
|
+
projects.uriDelete(change.uri);
|
|
40
|
+
disposes.push((() => __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
var _a;
|
|
42
|
+
(_a = (yield _project)) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
43
|
+
}))());
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (reason === 'web-cache-updated' && params.changes.some(change => change.uri.indexOf('/node_modules/') >= 0)) {
|
|
48
|
+
clearProjects();
|
|
49
|
+
}
|
|
50
|
+
return Promise.all(disposes);
|
|
51
|
+
}));
|
|
52
|
+
return {
|
|
53
|
+
projects,
|
|
54
|
+
getProjectAndTsConfig,
|
|
55
|
+
getInferredProject,
|
|
56
|
+
reload: clearProjects,
|
|
57
|
+
dispose() {
|
|
58
|
+
clearProjects();
|
|
59
|
+
disposeWatch();
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
function clearProjects() {
|
|
63
|
+
const _projects = [
|
|
64
|
+
inferredProject,
|
|
65
|
+
...projects.values(),
|
|
66
|
+
];
|
|
67
|
+
_projects.forEach((project) => __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
var _a;
|
|
69
|
+
(_a = (yield project)) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
70
|
+
}));
|
|
71
|
+
inferredProject = undefined;
|
|
72
|
+
projects.clear();
|
|
73
|
+
}
|
|
74
|
+
function getProjectAndTsConfig(uri) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const tsconfig = yield findMatchConfigs(vscode_uri_1.URI.parse(uri));
|
|
77
|
+
if (tsconfig) {
|
|
78
|
+
const project = yield getProjectByCreate(tsconfig);
|
|
79
|
+
return {
|
|
80
|
+
tsconfig: tsconfig,
|
|
81
|
+
project,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function getInferredProject() {
|
|
87
|
+
if (!inferredProject) {
|
|
88
|
+
inferredProject = (() => __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const inferOptions = yield (0, inferredCompilerOptions_1.getInferredCompilerOptions)(ts, configHost);
|
|
90
|
+
return (0, project_1.createProject)(runtimeEnv, plugins, fsHost, sys, ts, options, rootUri, rootUri.fsPath, inferOptions, tsLocalized, documents, connection, configHost);
|
|
91
|
+
}))();
|
|
92
|
+
}
|
|
93
|
+
return inferredProject;
|
|
94
|
+
}
|
|
95
|
+
function findMatchConfigs(uri) {
|
|
96
|
+
var _a;
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
yield prepareClosestootParsedCommandLine();
|
|
99
|
+
return (_a = yield findDirectIncludeTsconfig()) !== null && _a !== void 0 ? _a : yield findIndirectReferenceTsconfig();
|
|
100
|
+
function prepareClosestootParsedCommandLine() {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
let matches = [];
|
|
103
|
+
for (const rootTsConfig of rootTsConfigs) {
|
|
104
|
+
if (shared.isFileInDir(uri.fsPath, path.dirname(rootTsConfig))) {
|
|
105
|
+
matches.push(rootTsConfig);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
matches = matches.sort((a, b) => sortTsConfigs(uri.fsPath, a, b));
|
|
109
|
+
if (matches.length) {
|
|
110
|
+
yield getParsedCommandLine(matches[0]);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
function findDirectIncludeTsconfig() {
|
|
115
|
+
return findTsconfig((tsconfig) => __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
const parsedCommandLine = yield getParsedCommandLine(tsconfig);
|
|
117
|
+
// use toLowerCase to fix https://github.com/johnsoncodehk/volar/issues/1125
|
|
118
|
+
const fileNames = new Set(parsedCommandLine.fileNames.map(fileName => shared.normalizeFileName(fileName.toLowerCase())));
|
|
119
|
+
return fileNames.has(shared.normalizeFileName(uri.fsPath.toLowerCase()));
|
|
120
|
+
}));
|
|
121
|
+
}
|
|
122
|
+
function findIndirectReferenceTsconfig() {
|
|
123
|
+
return findTsconfig((tsconfig) => __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
var _a;
|
|
125
|
+
const project = yield projects.pathGet(rootUri, tsconfig);
|
|
126
|
+
const ls = project === null || project === void 0 ? void 0 : project.getLanguageServiceDontCreate();
|
|
127
|
+
const validDoc = (_a = ls === null || ls === void 0 ? void 0 : ls.context.typescriptLanguageService.getProgram()) === null || _a === void 0 ? void 0 : _a.getSourceFile(shared.getPathOfUri(uri.toString()));
|
|
128
|
+
return !!validDoc;
|
|
129
|
+
}));
|
|
130
|
+
}
|
|
131
|
+
function findTsconfig(match) {
|
|
132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
+
const checked = new Set();
|
|
134
|
+
for (const rootTsConfig of [...rootTsConfigs].sort((a, b) => sortTsConfigs(uri.fsPath, a, b))) {
|
|
135
|
+
const project = yield projects.pathGet(rootUri, rootTsConfig);
|
|
136
|
+
if (project) {
|
|
137
|
+
const chains = yield getReferencesChains(project.getParsedCommandLine(), rootTsConfig, []);
|
|
138
|
+
for (const chain of chains) {
|
|
139
|
+
for (let i = chain.length - 1; i >= 0; i--) {
|
|
140
|
+
const tsconfig = chain[i];
|
|
141
|
+
if (checked.has(tsconfig))
|
|
142
|
+
continue;
|
|
143
|
+
checked.add(tsconfig);
|
|
144
|
+
if (yield match(tsconfig)) {
|
|
145
|
+
return tsconfig;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
function getReferencesChains(parsedCommandLine, tsConfig, before) {
|
|
154
|
+
var _a;
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
if ((_a = parsedCommandLine.projectReferences) === null || _a === void 0 ? void 0 : _a.length) {
|
|
157
|
+
const newChains = [];
|
|
158
|
+
for (const projectReference of parsedCommandLine.projectReferences) {
|
|
159
|
+
let tsConfigPath = projectReference.path;
|
|
160
|
+
// fix https://github.com/johnsoncodehk/volar/issues/712
|
|
161
|
+
if (!sys.fileExists(tsConfigPath)) {
|
|
162
|
+
const newTsConfigPath = path.join(tsConfigPath, 'tsconfig.json');
|
|
163
|
+
const newJsConfigPath = path.join(tsConfigPath, 'jsconfig.json');
|
|
164
|
+
if (sys.fileExists(newTsConfigPath)) {
|
|
165
|
+
tsConfigPath = newTsConfigPath;
|
|
166
|
+
}
|
|
167
|
+
else if (sys.fileExists(newJsConfigPath)) {
|
|
168
|
+
tsConfigPath = newJsConfigPath;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
const beforeIndex = before.indexOf(tsConfigPath); // cycle
|
|
172
|
+
if (beforeIndex >= 0) {
|
|
173
|
+
newChains.push(before.slice(0, Math.max(beforeIndex, 1)));
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
const referenceParsedCommandLine = yield getParsedCommandLine(tsConfigPath);
|
|
177
|
+
for (const chain of yield getReferencesChains(referenceParsedCommandLine, tsConfigPath, [...before, tsConfig])) {
|
|
178
|
+
newChains.push(chain);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return newChains;
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
return [[...before, tsConfig]];
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function getParsedCommandLine(tsConfig) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
const project = yield getProjectByCreate(tsConfig);
|
|
192
|
+
return project.getParsedCommandLine();
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
function getProjectByCreate(tsConfig) {
|
|
198
|
+
let project = projects.pathGet(rootUri, tsConfig);
|
|
199
|
+
if (!project) {
|
|
200
|
+
project = (0, project_1.createProject)(runtimeEnv, plugins, fsHost, sys, ts, options, rootUri, path.dirname(tsConfig), tsConfig, tsLocalized, documents, connection, configHost);
|
|
201
|
+
projects.pathSet(rootUri, tsConfig, project);
|
|
202
|
+
}
|
|
203
|
+
return project;
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
exports.createWorkspaceProjects = createWorkspaceProjects;
|
|
208
|
+
function sortTsConfigs(fsPath, a, b) {
|
|
209
|
+
const inA = shared.isFileInDir(fsPath, path.dirname(a));
|
|
210
|
+
const inB = shared.isFileInDir(fsPath, path.dirname(b));
|
|
211
|
+
if (inA !== inB) {
|
|
212
|
+
const aWeight = inA ? 1 : 0;
|
|
213
|
+
const bWeight = inB ? 1 : 0;
|
|
214
|
+
return bWeight - aWeight;
|
|
215
|
+
}
|
|
216
|
+
const aLength = a.split('/').length;
|
|
217
|
+
const bLength = b.split('/').length;
|
|
218
|
+
if (aLength === bLength) {
|
|
219
|
+
const aWeight = path.basename(a) === 'tsconfig.json' ? 1 : 0;
|
|
220
|
+
const bWeight = path.basename(b) === 'tsconfig.json' ? 1 : 0;
|
|
221
|
+
return bWeight - aWeight;
|
|
222
|
+
}
|
|
223
|
+
return bLength - aLength;
|
|
224
|
+
}
|
|
225
|
+
exports.sortTsConfigs = sortTsConfigs;
|
|
226
|
+
//# sourceMappingURL=workspaceProjects.js.map
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import * as shared from '@volar/shared';
|
|
2
|
+
import { ConfigurationHost } from '@volar/vue-language-service';
|
|
3
|
+
import type * as ts from 'typescript/lib/tsserverlibrary';
|
|
4
|
+
import * as vscode from 'vscode-languageserver';
|
|
5
|
+
import { URI } from 'vscode-uri';
|
|
6
|
+
import { FileSystemHost, LanguageServerPlugin, RuntimeEnvironment, ServerInitializationOptions } from '../types';
|
|
7
|
+
import { createSnapshots } from './snapshots';
|
|
8
|
+
export interface Workspaces extends ReturnType<typeof createWorkspaces> {
|
|
9
|
+
}
|
|
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: ServerInitializationOptions, documents: ReturnType<typeof createSnapshots>, connection: vscode.Connection): {
|
|
11
|
+
workspaces: Map<string, Promise<{
|
|
12
|
+
projects: {
|
|
13
|
+
clear: () => void;
|
|
14
|
+
values: () => IterableIterator<import("./project").Project>;
|
|
15
|
+
uriDelete: (_uri: string) => boolean;
|
|
16
|
+
uriGet: (_uri: string) => import("./project").Project | undefined;
|
|
17
|
+
uriHas: (_uri: string) => boolean;
|
|
18
|
+
uriSet: (_uri: string, item: import("./project").Project) => void;
|
|
19
|
+
pathDelete: (rootUri: shared._.URI, path: string) => boolean;
|
|
20
|
+
pathGet: (rootUri: shared._.URI, path: string) => import("./project").Project | undefined;
|
|
21
|
+
pathHas: (rootUri: shared._.URI, path: string) => import("./project").Project | undefined;
|
|
22
|
+
pathSet: (rootUri: shared._.URI, path: string, item: import("./project").Project) => void;
|
|
23
|
+
};
|
|
24
|
+
getProjectAndTsConfig: (uri: string) => Promise<{
|
|
25
|
+
tsconfig: string;
|
|
26
|
+
project: {
|
|
27
|
+
getLanguageService: () => {
|
|
28
|
+
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined, cancellationToken?: vscode.CancellationToken | undefined) => Promise<vscode.Diagnostic[]>;
|
|
29
|
+
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
30
|
+
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
31
|
+
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
32
|
+
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
33
|
+
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
34
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
35
|
+
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
36
|
+
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
37
|
+
getSemanticTokens: (uri: string, range?: vscode.Range | undefined, cancleToken?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
38
|
+
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
39
|
+
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
40
|
+
isIncomplete: boolean;
|
|
41
|
+
items: vscode.CompletionItem[];
|
|
42
|
+
}>;
|
|
43
|
+
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
44
|
+
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
45
|
+
doCompletionResolve: (item: vscode.CompletionItem, newPosition?: vscode.Position | undefined) => Promise<vscode.CompletionItem>;
|
|
46
|
+
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
47
|
+
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
48
|
+
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
49
|
+
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
50
|
+
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
51
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
52
|
+
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
53
|
+
lastChange: {
|
|
54
|
+
range: vscode.Range;
|
|
55
|
+
rangeOffset: number;
|
|
56
|
+
rangeLength: number;
|
|
57
|
+
text: string;
|
|
58
|
+
};
|
|
59
|
+
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
60
|
+
doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
61
|
+
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
62
|
+
callHierarchy: {
|
|
63
|
+
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
64
|
+
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
65
|
+
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
66
|
+
};
|
|
67
|
+
dispose: () => void;
|
|
68
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
69
|
+
};
|
|
70
|
+
getLanguageServiceDontCreate: () => {
|
|
71
|
+
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined, cancellationToken?: vscode.CancellationToken | undefined) => Promise<vscode.Diagnostic[]>;
|
|
72
|
+
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
73
|
+
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
74
|
+
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
75
|
+
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
76
|
+
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
77
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
78
|
+
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
79
|
+
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
80
|
+
getSemanticTokens: (uri: string, range?: vscode.Range | undefined, cancleToken?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
81
|
+
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
82
|
+
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
83
|
+
isIncomplete: boolean;
|
|
84
|
+
items: vscode.CompletionItem[];
|
|
85
|
+
}>;
|
|
86
|
+
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
87
|
+
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
88
|
+
doCompletionResolve: (item: vscode.CompletionItem, newPosition?: vscode.Position | undefined) => Promise<vscode.CompletionItem>;
|
|
89
|
+
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
90
|
+
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
91
|
+
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
92
|
+
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
93
|
+
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
94
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
95
|
+
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
96
|
+
lastChange: {
|
|
97
|
+
range: vscode.Range;
|
|
98
|
+
rangeOffset: number;
|
|
99
|
+
rangeLength: number;
|
|
100
|
+
text: string;
|
|
101
|
+
};
|
|
102
|
+
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
103
|
+
doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
104
|
+
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
105
|
+
callHierarchy: {
|
|
106
|
+
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
107
|
+
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
108
|
+
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
109
|
+
};
|
|
110
|
+
dispose: () => void;
|
|
111
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
112
|
+
} | undefined;
|
|
113
|
+
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
114
|
+
dispose: () => void;
|
|
115
|
+
};
|
|
116
|
+
} | undefined>;
|
|
117
|
+
getInferredProject: () => import("./project").Project;
|
|
118
|
+
reload: () => void;
|
|
119
|
+
dispose(): void;
|
|
120
|
+
}>>;
|
|
121
|
+
getProject: (uri: string) => Promise<{
|
|
122
|
+
tsconfig: string;
|
|
123
|
+
project: {
|
|
124
|
+
getLanguageService: () => {
|
|
125
|
+
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined, cancellationToken?: vscode.CancellationToken | undefined) => Promise<vscode.Diagnostic[]>;
|
|
126
|
+
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
127
|
+
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
128
|
+
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
129
|
+
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
130
|
+
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
131
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
132
|
+
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
133
|
+
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
134
|
+
getSemanticTokens: (uri: string, range?: vscode.Range | undefined, cancleToken?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
135
|
+
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
136
|
+
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
137
|
+
isIncomplete: boolean;
|
|
138
|
+
items: vscode.CompletionItem[];
|
|
139
|
+
}>;
|
|
140
|
+
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
141
|
+
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
142
|
+
doCompletionResolve: (item: vscode.CompletionItem, newPosition?: vscode.Position | undefined) => Promise<vscode.CompletionItem>;
|
|
143
|
+
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
144
|
+
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
145
|
+
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
146
|
+
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
147
|
+
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
148
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
149
|
+
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
150
|
+
lastChange: {
|
|
151
|
+
range: vscode.Range;
|
|
152
|
+
rangeOffset: number;
|
|
153
|
+
rangeLength: number;
|
|
154
|
+
text: string;
|
|
155
|
+
};
|
|
156
|
+
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
157
|
+
doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
158
|
+
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
159
|
+
callHierarchy: {
|
|
160
|
+
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
161
|
+
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
162
|
+
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
163
|
+
};
|
|
164
|
+
dispose: () => void;
|
|
165
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
166
|
+
};
|
|
167
|
+
getLanguageServiceDontCreate: () => {
|
|
168
|
+
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined, cancellationToken?: vscode.CancellationToken | undefined) => Promise<vscode.Diagnostic[]>;
|
|
169
|
+
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
170
|
+
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
171
|
+
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
172
|
+
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
173
|
+
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
174
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
175
|
+
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
176
|
+
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
177
|
+
getSemanticTokens: (uri: string, range?: vscode.Range | undefined, cancleToken?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
178
|
+
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
179
|
+
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
180
|
+
isIncomplete: boolean;
|
|
181
|
+
items: vscode.CompletionItem[];
|
|
182
|
+
}>;
|
|
183
|
+
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
184
|
+
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
185
|
+
doCompletionResolve: (item: vscode.CompletionItem, newPosition?: vscode.Position | undefined) => Promise<vscode.CompletionItem>;
|
|
186
|
+
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
187
|
+
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
188
|
+
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
189
|
+
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
190
|
+
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
191
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
192
|
+
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
193
|
+
lastChange: {
|
|
194
|
+
range: vscode.Range;
|
|
195
|
+
rangeOffset: number;
|
|
196
|
+
rangeLength: number;
|
|
197
|
+
text: string;
|
|
198
|
+
};
|
|
199
|
+
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
200
|
+
doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
201
|
+
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
202
|
+
callHierarchy: {
|
|
203
|
+
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
204
|
+
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
205
|
+
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
206
|
+
};
|
|
207
|
+
dispose: () => void;
|
|
208
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
209
|
+
} | undefined;
|
|
210
|
+
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
211
|
+
dispose: () => void;
|
|
212
|
+
};
|
|
213
|
+
} | {
|
|
214
|
+
tsconfig: undefined;
|
|
215
|
+
project: {
|
|
216
|
+
getLanguageService: () => {
|
|
217
|
+
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined, cancellationToken?: vscode.CancellationToken | undefined) => Promise<vscode.Diagnostic[]>;
|
|
218
|
+
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
219
|
+
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
220
|
+
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
221
|
+
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
222
|
+
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
223
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
224
|
+
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
225
|
+
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
226
|
+
getSemanticTokens: (uri: string, range?: vscode.Range | undefined, cancleToken?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
227
|
+
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
228
|
+
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
229
|
+
isIncomplete: boolean;
|
|
230
|
+
items: vscode.CompletionItem[];
|
|
231
|
+
}>;
|
|
232
|
+
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
233
|
+
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
234
|
+
doCompletionResolve: (item: vscode.CompletionItem, newPosition?: vscode.Position | undefined) => Promise<vscode.CompletionItem>;
|
|
235
|
+
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
236
|
+
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
237
|
+
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
238
|
+
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
239
|
+
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
240
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
241
|
+
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
242
|
+
lastChange: {
|
|
243
|
+
range: vscode.Range;
|
|
244
|
+
rangeOffset: number;
|
|
245
|
+
rangeLength: number;
|
|
246
|
+
text: string;
|
|
247
|
+
};
|
|
248
|
+
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
249
|
+
doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
250
|
+
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
251
|
+
callHierarchy: {
|
|
252
|
+
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
253
|
+
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
254
|
+
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
255
|
+
};
|
|
256
|
+
dispose: () => void;
|
|
257
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
258
|
+
};
|
|
259
|
+
getLanguageServiceDontCreate: () => {
|
|
260
|
+
doValidation: (uri: string, response?: ((result: vscode.Diagnostic[]) => void) | undefined, cancellationToken?: vscode.CancellationToken | undefined) => Promise<vscode.Diagnostic[]>;
|
|
261
|
+
findReferences: (uri: string, position: vscode.Position) => Promise<vscode.Location[] | undefined>;
|
|
262
|
+
findFileReferences: (uri: string) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
263
|
+
findDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
264
|
+
findTypeDefinition: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
265
|
+
findImplementations: (uri: string, position: vscode.Position) => Promise<vscode.LocationLink[] | undefined>;
|
|
266
|
+
prepareRename: (uri: string, position: vscode.Position) => Promise<NonNullable<vscode.Range | vscode.ResponseError<void> | null | undefined> | undefined>;
|
|
267
|
+
doRename: (uri: string, position: vscode.Position, newName: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
268
|
+
getEditsForFileRename: (oldUri: string, newUri: string) => Promise<vscode.WorkspaceEdit | undefined>;
|
|
269
|
+
getSemanticTokens: (uri: string, range?: vscode.Range | undefined, cancleToken?: vscode.CancellationToken | undefined, reportProgress?: ((tokens: import("@volar/vue-language-service").SemanticToken[]) => void) | undefined) => Promise<import("@volar/vue-language-service").SemanticToken[] | undefined> | undefined;
|
|
270
|
+
doHover: (uri: string, position: vscode.Position) => Promise<vscode.Hover | undefined>;
|
|
271
|
+
doComplete: (uri: string, position: vscode.Position, completionContext?: vscode.CompletionContext | undefined) => Promise<{
|
|
272
|
+
isIncomplete: boolean;
|
|
273
|
+
items: vscode.CompletionItem[];
|
|
274
|
+
}>;
|
|
275
|
+
doCodeActions: (uri: string, range: vscode.Range, codeActionContext: vscode.CodeActionContext) => Promise<vscode.CodeAction[] | undefined>;
|
|
276
|
+
doCodeActionResolve: (item: vscode.CodeAction) => Promise<vscode.CodeAction>;
|
|
277
|
+
doCompletionResolve: (item: vscode.CompletionItem, newPosition?: vscode.Position | undefined) => Promise<vscode.CompletionItem>;
|
|
278
|
+
getSignatureHelp: (uri: string, position: vscode.Position, signatureHelpContext?: vscode.SignatureHelpContext | undefined) => Promise<vscode.SignatureHelp | undefined>;
|
|
279
|
+
doCodeLens: (uri: string) => Promise<vscode.CodeLens[]>;
|
|
280
|
+
doCodeLensResolve: (item: vscode.CodeLens) => Promise<vscode.CodeLens>;
|
|
281
|
+
findDocumentHighlights: (uri: string, position: vscode.Position) => Promise<vscode.DocumentHighlight[] | undefined>;
|
|
282
|
+
findDocumentLinks: (uri: string) => Promise<vscode.DocumentLink[]>;
|
|
283
|
+
findWorkspaceSymbols: (query: string) => Promise<vscode.SymbolInformation[]>;
|
|
284
|
+
doAutoInsert: (uri: string, position: vscode.Position, autoInsertContext: {
|
|
285
|
+
lastChange: {
|
|
286
|
+
range: vscode.Range;
|
|
287
|
+
rangeOffset: number;
|
|
288
|
+
rangeLength: number;
|
|
289
|
+
text: string;
|
|
290
|
+
};
|
|
291
|
+
}) => Promise<NonNullable<string | vscode.TextEdit | null | undefined> | undefined>;
|
|
292
|
+
doExecuteCommand: (command: string, args: import("@volar/vue-language-service").ExecutePluginCommandArgs, executeCommandContext: import("@volar/language-service").ExecuteCommandContext) => Promise<void>;
|
|
293
|
+
getInlayHints: (uri: string, range: vscode.Range) => Promise<vscode.InlayHint[] | undefined>;
|
|
294
|
+
callHierarchy: {
|
|
295
|
+
doPrepare(uri: string, position: vscode.Position): Promise<vscode.CallHierarchyItem[] | undefined>;
|
|
296
|
+
getIncomingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyIncomingCall[]>;
|
|
297
|
+
getOutgoingCalls(item: vscode.CallHierarchyItem): Promise<vscode.CallHierarchyOutgoingCall[]>;
|
|
298
|
+
};
|
|
299
|
+
dispose: () => void;
|
|
300
|
+
context: import("@volar/language-service").LanguageServiceRuntimeContext;
|
|
301
|
+
} | undefined;
|
|
302
|
+
getParsedCommandLine: () => ts.ParsedCommandLine;
|
|
303
|
+
dispose: () => void;
|
|
304
|
+
} | undefined;
|
|
305
|
+
} | undefined>;
|
|
306
|
+
reloadProject: () => Promise<void>;
|
|
307
|
+
add: (rootUri: URI) => void;
|
|
308
|
+
remove: (rootUri: URI) => void;
|
|
309
|
+
};
|