@volar/language-server 1.4.0-alpha.0 → 1.4.0-alpha.1
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/browser/fileSystems.js +82 -102
- package/out/browser/index.js +10 -23
- package/out/browser/typescript/core.js +1 -1
- package/out/browser/typescript/corePublic.js +2 -2
- package/out/common/cancellationPipe.js +1 -1
- package/out/common/configurationHost.js +12 -28
- package/out/common/documents.js +2 -3
- package/out/common/features/customFeatures.js +34 -47
- package/out/common/features/languageFeatures.js +126 -151
- package/out/common/project.d.ts +2 -2
- package/out/common/project.js +211 -227
- package/out/common/server.js +51 -65
- package/out/common/utils/inferredCompilerOptions.js +57 -61
- package/out/common/utils/registerFeatures.js +8 -8
- package/out/common/utils/serverConfig.js +2 -2
- package/out/common/utils/uriMap.js +1 -1
- package/out/common/workspace.d.ts +18 -18
- package/out/common/workspace.js +164 -193
- package/out/common/workspaces.d.ts +22 -22
- package/out/common/workspaces.js +81 -107
- package/out/node/fileSystem.js +4 -14
- package/out/node/index.js +7 -18
- package/package.json +4 -4
package/out/common/workspace.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
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
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
2
|
exports.sortTsConfigs = exports.createWorkspace = exports.rootTsConfigNames = void 0;
|
|
12
3
|
const path = require("typesafe-path");
|
|
@@ -17,210 +8,190 @@ const inferredCompilerOptions_1 = require("./utils/inferredCompilerOptions");
|
|
|
17
8
|
const uriMap_1 = require("./utils/uriMap");
|
|
18
9
|
const isFileInDir_1 = require("./utils/isFileInDir");
|
|
19
10
|
exports.rootTsConfigNames = ['tsconfig.json', 'jsconfig.json'];
|
|
20
|
-
function createWorkspace(context) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
if ((0, isFileInDir_1.isFileInDir)(uriToFileName(change.uri), uriToFileName(context.rootUri.toString()))) {
|
|
35
|
-
rootTsConfigs.add(uriToFileName(change.uri));
|
|
36
|
-
}
|
|
11
|
+
async function createWorkspace(context) {
|
|
12
|
+
const fileNameToUri = context.workspaces.server.runtimeEnv.fileNameToUri;
|
|
13
|
+
const uriToFileName = context.workspaces.server.runtimeEnv.uriToFileName;
|
|
14
|
+
let inferredProject;
|
|
15
|
+
const sys = context.workspaces.fileSystemHost?.getWorkspaceFileSystem(context.rootUri);
|
|
16
|
+
const documentRegistry = sys ? context.workspaces.ts?.createDocumentRegistry(sys.useCaseSensitiveFileNames, uriToFileName(context.rootUri.toString())) : undefined;
|
|
17
|
+
const projects = (0, uriMap_1.createUriMap)(fileNameToUri);
|
|
18
|
+
const rootTsConfigs = new Set(sys?.readDirectory(uriToFileName(context.rootUri.toString()), exports.rootTsConfigNames, undefined, ['**/*']).map(fileName => fileName.replace(/\\/g, '/')));
|
|
19
|
+
const disposeTsConfigWatch = context.workspaces.fileSystemHost?.onDidChangeWatchedFiles(({ changes }) => {
|
|
20
|
+
for (const change of changes) {
|
|
21
|
+
if (exports.rootTsConfigNames.includes(change.uri.substring(change.uri.lastIndexOf('/') + 1))) {
|
|
22
|
+
if (change.type === vscode.FileChangeType.Created) {
|
|
23
|
+
if ((0, isFileInDir_1.isFileInDir)(uriToFileName(change.uri), uriToFileName(context.rootUri.toString()))) {
|
|
24
|
+
rootTsConfigs.add(uriToFileName(change.uri));
|
|
37
25
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
const project = projects.uriGet(change.uri);
|
|
43
|
-
projects.uriDelete(change.uri);
|
|
44
|
-
project === null || project === void 0 ? void 0 : project.then(project => project.dispose());
|
|
26
|
+
}
|
|
27
|
+
else if ((change.type === vscode.FileChangeType.Changed || change.type === vscode.FileChangeType.Deleted) && projects.uriHas(change.uri)) {
|
|
28
|
+
if (change.type === vscode.FileChangeType.Deleted) {
|
|
29
|
+
rootTsConfigs.delete(uriToFileName(change.uri));
|
|
45
30
|
}
|
|
31
|
+
const project = projects.uriGet(change.uri);
|
|
32
|
+
projects.uriDelete(change.uri);
|
|
33
|
+
project?.then(project => project.dispose());
|
|
46
34
|
}
|
|
47
35
|
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
return {
|
|
39
|
+
projects,
|
|
40
|
+
documentRegistry,
|
|
41
|
+
getProjectAndTsConfig,
|
|
42
|
+
getInferredProject,
|
|
43
|
+
getInferredProjectDontCreate: () => inferredProject,
|
|
44
|
+
reload: clearProjects,
|
|
45
|
+
dispose() {
|
|
46
|
+
clearProjects();
|
|
47
|
+
disposeTsConfigWatch?.();
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
function clearProjects() {
|
|
51
|
+
const _projects = [
|
|
52
|
+
inferredProject,
|
|
53
|
+
...projects.values(),
|
|
54
|
+
];
|
|
55
|
+
_projects.forEach(async (project) => {
|
|
56
|
+
(await project)?.dispose();
|
|
48
57
|
});
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
58
|
+
inferredProject = undefined;
|
|
59
|
+
projects.clear();
|
|
60
|
+
}
|
|
61
|
+
async function getProjectAndTsConfig(uri) {
|
|
62
|
+
const tsconfig = await findMatchConfigs(vscode_uri_1.URI.parse(uri));
|
|
63
|
+
if (tsconfig) {
|
|
64
|
+
const project = await getProjectByCreate(tsconfig);
|
|
65
|
+
return {
|
|
66
|
+
tsconfig: tsconfig,
|
|
67
|
+
project,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function getInferredProject() {
|
|
72
|
+
if (!inferredProject) {
|
|
73
|
+
inferredProject = (async () => {
|
|
74
|
+
const inferOptions = await (0, inferredCompilerOptions_1.getInferredCompilerOptions)(context.workspaces.configurationHost);
|
|
75
|
+
return (0, project_1.createProject)({
|
|
76
|
+
workspace: context,
|
|
77
|
+
rootUri: context.rootUri,
|
|
78
|
+
tsConfig: inferOptions,
|
|
79
|
+
documentRegistry,
|
|
80
|
+
});
|
|
81
|
+
})();
|
|
72
82
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
83
|
+
return inferredProject;
|
|
84
|
+
}
|
|
85
|
+
async function findMatchConfigs(uri) {
|
|
86
|
+
await prepareClosestootParsedCommandLine();
|
|
87
|
+
return await findDirectIncludeTsconfig() ?? await findIndirectReferenceTsconfig();
|
|
88
|
+
async function prepareClosestootParsedCommandLine() {
|
|
89
|
+
let matches = [];
|
|
90
|
+
for (const rootTsConfig of rootTsConfigs) {
|
|
91
|
+
if ((0, isFileInDir_1.isFileInDir)(uriToFileName(uri.toString()), path.dirname(rootTsConfig))) {
|
|
92
|
+
matches.push(rootTsConfig);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
matches = matches.sort((a, b) => sortTsConfigs(uriToFileName(uri.toString()), a, b));
|
|
96
|
+
if (matches.length) {
|
|
97
|
+
await getParsedCommandLine(matches[0]);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function findDirectIncludeTsconfig() {
|
|
101
|
+
return findTsconfig(async (tsconfig) => {
|
|
102
|
+
const map = (0, uriMap_1.createUriMap)(fileNameToUri);
|
|
103
|
+
const parsedCommandLine = await getParsedCommandLine(tsconfig);
|
|
104
|
+
for (const fileName of parsedCommandLine?.fileNames ?? []) {
|
|
105
|
+
map.pathSet(fileName, true);
|
|
82
106
|
}
|
|
107
|
+
return map.uriHas(uri.toString());
|
|
83
108
|
});
|
|
84
109
|
}
|
|
85
|
-
function
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
tsConfig: inferOptions,
|
|
93
|
-
documentRegistry,
|
|
94
|
-
});
|
|
95
|
-
}))();
|
|
96
|
-
}
|
|
97
|
-
return inferredProject;
|
|
110
|
+
function findIndirectReferenceTsconfig() {
|
|
111
|
+
return findTsconfig(async (tsconfig) => {
|
|
112
|
+
const project = await projects.pathGet(tsconfig);
|
|
113
|
+
const ls = project?.getLanguageServiceDontCreate();
|
|
114
|
+
const validDoc = ls?.context.typescript?.languageService.getProgram()?.getSourceFile(uriToFileName(uri.toString()));
|
|
115
|
+
return !!validDoc;
|
|
116
|
+
});
|
|
98
117
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
118
|
+
async function findTsconfig(match) {
|
|
119
|
+
const checked = new Set();
|
|
120
|
+
for (const rootTsConfig of [...rootTsConfigs].sort((a, b) => sortTsConfigs(uriToFileName(uri.toString()), a, b))) {
|
|
121
|
+
const project = await projects.pathGet(rootTsConfig);
|
|
122
|
+
if (project) {
|
|
123
|
+
let chains = await getReferencesChains(project.getParsedCommandLine(), rootTsConfig, []);
|
|
124
|
+
if (context.workspaces.initOptions.reverseConfigFilePriority) {
|
|
125
|
+
chains = chains.reverse();
|
|
126
|
+
}
|
|
127
|
+
for (const chain of chains) {
|
|
128
|
+
for (let i = chain.length - 1; i >= 0; i--) {
|
|
129
|
+
const tsconfig = chain[i];
|
|
130
|
+
if (checked.has(tsconfig))
|
|
131
|
+
continue;
|
|
132
|
+
checked.add(tsconfig);
|
|
133
|
+
if (await match(tsconfig)) {
|
|
134
|
+
return tsconfig;
|
|
110
135
|
}
|
|
111
136
|
}
|
|
112
|
-
|
|
113
|
-
if (matches.length) {
|
|
114
|
-
yield getParsedCommandLine(matches[0]);
|
|
115
|
-
}
|
|
116
|
-
});
|
|
137
|
+
}
|
|
117
138
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
async function getReferencesChains(parsedCommandLine, tsConfig, before) {
|
|
142
|
+
if (parsedCommandLine.projectReferences?.length) {
|
|
143
|
+
const newChains = [];
|
|
144
|
+
for (const projectReference of parsedCommandLine.projectReferences) {
|
|
145
|
+
let tsConfigPath = projectReference.path;
|
|
146
|
+
// fix https://github.com/johnsoncodehk/volar/issues/712
|
|
147
|
+
if (sys && !sys.fileExists(tsConfigPath)) {
|
|
148
|
+
const newTsConfigPath = path.join(tsConfigPath, 'tsconfig.json');
|
|
149
|
+
const newJsConfigPath = path.join(tsConfigPath, 'jsconfig.json');
|
|
150
|
+
if (sys.fileExists(newTsConfigPath)) {
|
|
151
|
+
tsConfigPath = newTsConfigPath;
|
|
125
152
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
function findIndirectReferenceTsconfig() {
|
|
130
|
-
return findTsconfig((tsconfig) => __awaiter(this, void 0, void 0, function* () {
|
|
131
|
-
var _a, _b;
|
|
132
|
-
const project = yield projects.pathGet(tsconfig);
|
|
133
|
-
const ls = project === null || project === void 0 ? void 0 : project.getLanguageServiceDontCreate();
|
|
134
|
-
const validDoc = (_b = (_a = ls === null || ls === void 0 ? void 0 : ls.context.typescript) === null || _a === void 0 ? void 0 : _a.languageService.getProgram()) === null || _b === void 0 ? void 0 : _b.getSourceFile(uriToFileName(uri.toString()));
|
|
135
|
-
return !!validDoc;
|
|
136
|
-
}));
|
|
137
|
-
}
|
|
138
|
-
function findTsconfig(match) {
|
|
139
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
-
const checked = new Set();
|
|
141
|
-
for (const rootTsConfig of [...rootTsConfigs].sort((a, b) => sortTsConfigs(uriToFileName(uri.toString()), a, b))) {
|
|
142
|
-
const project = yield projects.pathGet(rootTsConfig);
|
|
143
|
-
if (project) {
|
|
144
|
-
let chains = yield getReferencesChains(project.getParsedCommandLine(), rootTsConfig, []);
|
|
145
|
-
if (context.workspaces.initOptions.reverseConfigFilePriority) {
|
|
146
|
-
chains = chains.reverse();
|
|
147
|
-
}
|
|
148
|
-
for (const chain of chains) {
|
|
149
|
-
for (let i = chain.length - 1; i >= 0; i--) {
|
|
150
|
-
const tsconfig = chain[i];
|
|
151
|
-
if (checked.has(tsconfig))
|
|
152
|
-
continue;
|
|
153
|
-
checked.add(tsconfig);
|
|
154
|
-
if (yield match(tsconfig)) {
|
|
155
|
-
return tsconfig;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
153
|
+
else if (sys.fileExists(newJsConfigPath)) {
|
|
154
|
+
tsConfigPath = newJsConfigPath;
|
|
160
155
|
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
if (sys && !sys.fileExists(tsConfigPath)) {
|
|
172
|
-
const newTsConfigPath = path.join(tsConfigPath, 'tsconfig.json');
|
|
173
|
-
const newJsConfigPath = path.join(tsConfigPath, 'jsconfig.json');
|
|
174
|
-
if (sys.fileExists(newTsConfigPath)) {
|
|
175
|
-
tsConfigPath = newTsConfigPath;
|
|
176
|
-
}
|
|
177
|
-
else if (sys.fileExists(newJsConfigPath)) {
|
|
178
|
-
tsConfigPath = newJsConfigPath;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
const beforeIndex = before.indexOf(tsConfigPath); // cycle
|
|
182
|
-
if (beforeIndex >= 0) {
|
|
183
|
-
newChains.push(before.slice(0, Math.max(beforeIndex, 1)));
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
const referenceParsedCommandLine = yield getParsedCommandLine(tsConfigPath);
|
|
187
|
-
if (referenceParsedCommandLine) {
|
|
188
|
-
for (const chain of yield getReferencesChains(referenceParsedCommandLine, tsConfigPath, [...before, tsConfig])) {
|
|
189
|
-
newChains.push(chain);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
156
|
+
}
|
|
157
|
+
const beforeIndex = before.indexOf(tsConfigPath); // cycle
|
|
158
|
+
if (beforeIndex >= 0) {
|
|
159
|
+
newChains.push(before.slice(0, Math.max(beforeIndex, 1)));
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
const referenceParsedCommandLine = await getParsedCommandLine(tsConfigPath);
|
|
163
|
+
if (referenceParsedCommandLine) {
|
|
164
|
+
for (const chain of await getReferencesChains(referenceParsedCommandLine, tsConfigPath, [...before, tsConfig])) {
|
|
165
|
+
newChains.push(chain);
|
|
193
166
|
}
|
|
194
|
-
return newChains;
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
return [[...before, tsConfig]];
|
|
198
167
|
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function getParsedCommandLine(tsConfig) {
|
|
202
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
203
|
-
const project = yield getProjectByCreate(tsConfig);
|
|
204
|
-
return project === null || project === void 0 ? void 0 : project.getParsedCommandLine();
|
|
205
|
-
});
|
|
168
|
+
}
|
|
206
169
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
let project = projects.pathGet(tsConfig);
|
|
212
|
-
if (!project && documentRegistry) {
|
|
213
|
-
project = (0, project_1.createProject)({
|
|
214
|
-
workspace: context,
|
|
215
|
-
rootUri: vscode_uri_1.URI.parse(fileNameToUri(path.dirname(tsConfig))),
|
|
216
|
-
tsConfig,
|
|
217
|
-
documentRegistry,
|
|
218
|
-
});
|
|
219
|
-
projects.pathSet(tsConfig, project);
|
|
170
|
+
return newChains;
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
return [[...before, tsConfig]];
|
|
220
174
|
}
|
|
221
|
-
return project;
|
|
222
175
|
}
|
|
223
|
-
|
|
176
|
+
async function getParsedCommandLine(tsConfig) {
|
|
177
|
+
const project = await getProjectByCreate(tsConfig);
|
|
178
|
+
return project?.getParsedCommandLine();
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
function getProjectByCreate(_tsConfig) {
|
|
182
|
+
const tsConfig = _tsConfig.replace(/\\/g, '/');
|
|
183
|
+
let project = projects.pathGet(tsConfig);
|
|
184
|
+
if (!project && documentRegistry) {
|
|
185
|
+
project = (0, project_1.createProject)({
|
|
186
|
+
workspace: context,
|
|
187
|
+
rootUri: vscode_uri_1.URI.parse(fileNameToUri(path.dirname(tsConfig))),
|
|
188
|
+
tsConfig,
|
|
189
|
+
documentRegistry,
|
|
190
|
+
});
|
|
191
|
+
projects.pathSet(tsConfig, project);
|
|
192
|
+
}
|
|
193
|
+
return project;
|
|
194
|
+
}
|
|
224
195
|
}
|
|
225
196
|
exports.createWorkspace = createWorkspace;
|
|
226
197
|
function sortTsConfigs(file, a, b) {
|
|
@@ -85,7 +85,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
85
85
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
86
86
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
87
87
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
88
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
88
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
89
89
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
90
90
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
91
91
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -131,7 +131,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
131
131
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
132
132
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
133
133
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
134
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
134
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
135
135
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
136
136
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
137
137
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -227,7 +227,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
227
227
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
228
228
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
229
229
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
230
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
230
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
231
231
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
232
232
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
233
233
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -273,7 +273,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
273
273
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
274
274
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
275
275
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
276
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
276
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
277
277
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
278
278
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
279
279
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -369,7 +369,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
369
369
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
370
370
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
371
371
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
372
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
372
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
373
373
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
374
374
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
375
375
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -415,7 +415,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
415
415
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
416
416
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
417
417
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
418
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
418
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
419
419
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
420
420
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
421
421
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -511,7 +511,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
511
511
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
512
512
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
513
513
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
514
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
514
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
515
515
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
516
516
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
517
517
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -557,7 +557,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
557
557
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
558
558
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
559
559
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
560
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
560
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
561
561
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
562
562
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
563
563
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -652,7 +652,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
652
652
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
653
653
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
654
654
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
655
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
655
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
656
656
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
657
657
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
658
658
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -698,7 +698,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
698
698
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
699
699
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
700
700
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
701
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
701
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
702
702
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
703
703
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
704
704
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -793,7 +793,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
793
793
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
794
794
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
795
795
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
796
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
796
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
797
797
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
798
798
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
799
799
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -839,7 +839,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
839
839
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
840
840
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
841
841
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
842
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
842
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
843
843
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
844
844
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
845
845
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -938,7 +938,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
938
938
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
939
939
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
940
940
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
941
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
941
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
942
942
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
943
943
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
944
944
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -984,7 +984,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
984
984
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
985
985
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
986
986
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
987
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
987
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
988
988
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
989
989
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
990
990
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1080,7 +1080,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1080
1080
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1081
1081
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1082
1082
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1083
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
1083
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1084
1084
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
1085
1085
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1086
1086
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1126,7 +1126,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1126
1126
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1127
1127
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1128
1128
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1129
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
1129
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1130
1130
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
1131
1131
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1132
1132
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1221,7 +1221,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1221
1221
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1222
1222
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1223
1223
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1224
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
1224
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1225
1225
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
1226
1226
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1227
1227
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1267,7 +1267,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1267
1267
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1268
1268
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1269
1269
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1270
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
1270
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1271
1271
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
1272
1272
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1273
1273
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1367,7 +1367,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1367
1367
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1368
1368
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1369
1369
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1370
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
1370
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1371
1371
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
1372
1372
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1373
1373
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1413,7 +1413,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1413
1413
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1414
1414
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1415
1415
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1416
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
1416
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1417
1417
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
1418
1418
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1419
1419
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1510,7 +1510,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1510
1510
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1511
1511
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1512
1512
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1513
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
1513
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1514
1514
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
1515
1515
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1516
1516
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|
|
@@ -1556,7 +1556,7 @@ export declare function createWorkspaces(context: WorkspacesContext): {
|
|
|
1556
1556
|
findDocumentSymbols: (uri: string, token: vscode.CancellationToken) => Promise<vscode.DocumentSymbol[] | undefined>;
|
|
1557
1557
|
findDocumentColors: (uri: string, token: vscode.CancellationToken) => Promise<vscode.ColorInformation[] | undefined>;
|
|
1558
1558
|
getColorPresentations: (uri: string, color: vscode.Color, range: vscode.Range, token: vscode.CancellationToken) => Promise<vscode.ColorPresentation[] | undefined>;
|
|
1559
|
-
doValidation: (uri: string, token: vscode.CancellationToken, mode: "
|
|
1559
|
+
doValidation: (uri: string, token: vscode.CancellationToken, mode: "semantic" | "all" | "syntactic", response?: ((result: vscode.Diagnostic[]) => void) | undefined) => Promise<vscode.Diagnostic[]>;
|
|
1560
1560
|
findReferences: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.Location[] | undefined>;
|
|
1561
1561
|
findFileReferences: (uri: string, token: vscode.CancellationToken) => import("@volar/language-service").NullableResult<vscode.Location[]>;
|
|
1562
1562
|
findDefinition: (uri: string, position: vscode.Position, token: vscode.CancellationToken) => Promise<vscode.LocationLink[] | undefined>;
|