@volar/language-server 2.2.0-alpha.8 → 2.2.0-patch.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/browser.d.ts +37 -6
- package/browser.js +26 -27
- package/lib/project/inferredCompilerOptions.d.ts +2 -2
- package/lib/project/inferredCompilerOptions.js +3 -3
- package/lib/project/simpleProject.d.ts +3 -4
- package/lib/project/simpleProject.js +5 -6
- package/lib/project/simpleProjectProvider.d.ts +4 -5
- package/lib/project/simpleProjectProvider.js +33 -37
- package/lib/project/typescriptProject.d.ts +8 -4
- package/lib/project/typescriptProject.js +16 -14
- package/lib/project/typescriptProjectProvider.d.ts +8 -2
- package/lib/project/typescriptProjectProvider.js +156 -151
- package/lib/register/registerEditorFeatures.d.ts +2 -3
- package/lib/register/registerEditorFeatures.js +21 -24
- package/lib/register/registerLanguageFeatures.d.ts +2 -3
- package/lib/register/registerLanguageFeatures.js +45 -45
- package/lib/server.d.ts +39 -27
- package/lib/server.js +138 -142
- package/lib/serverCapabilities.d.ts +2 -2
- package/lib/serverCapabilities.js +6 -21
- package/lib/types.d.ts +9 -29
- package/lib/types.js +1 -7
- package/node.d.ts +37 -6
- package/node.js +2 -3
- package/package.json +6 -7
- package/lib/configurationHost.d.ts +0 -5
- package/lib/configurationHost.js +0 -43
|
@@ -4,7 +4,7 @@ exports.sleep = exports.registerLanguageFeatures = void 0;
|
|
|
4
4
|
const embedded = require("@volar/language-service");
|
|
5
5
|
const vscode = require("vscode-languageserver");
|
|
6
6
|
const protocol_1 = require("../../protocol");
|
|
7
|
-
function registerLanguageFeatures(
|
|
7
|
+
function registerLanguageFeatures(server) {
|
|
8
8
|
let lastCompleteUri;
|
|
9
9
|
let lastCompleteLs;
|
|
10
10
|
let lastCodeLensLs;
|
|
@@ -12,52 +12,52 @@ function registerLanguageFeatures(connection, projectProvider, initParams, seman
|
|
|
12
12
|
let lastCallHierarchyLs;
|
|
13
13
|
let lastDocumentLinkLs;
|
|
14
14
|
let lastInlayHintLs;
|
|
15
|
-
connection.onDocumentFormatting(async (params, token) => {
|
|
15
|
+
server.connection.onDocumentFormatting(async (params, token) => {
|
|
16
16
|
return worker(params.textDocument.uri, token, service => {
|
|
17
17
|
return service.format(params.textDocument.uri, params.options, undefined, undefined, token);
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
|
-
connection.onDocumentRangeFormatting(async (params, token) => {
|
|
20
|
+
server.connection.onDocumentRangeFormatting(async (params, token) => {
|
|
21
21
|
return worker(params.textDocument.uri, token, service => {
|
|
22
22
|
return service.format(params.textDocument.uri, params.options, params.range, undefined, token);
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
|
-
connection.onDocumentOnTypeFormatting(async (params, token) => {
|
|
25
|
+
server.connection.onDocumentOnTypeFormatting(async (params, token) => {
|
|
26
26
|
return worker(params.textDocument.uri, token, service => {
|
|
27
27
|
return service.format(params.textDocument.uri, params.options, undefined, params, token);
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
|
-
connection.onSelectionRanges(async (params, token) => {
|
|
30
|
+
server.connection.onSelectionRanges(async (params, token) => {
|
|
31
31
|
return worker(params.textDocument.uri, token, service => {
|
|
32
32
|
return service.getSelectionRanges(params.textDocument.uri, params.positions, token);
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
|
-
connection.onFoldingRanges(async (params, token) => {
|
|
35
|
+
server.connection.onFoldingRanges(async (params, token) => {
|
|
36
36
|
return worker(params.textDocument.uri, token, service => {
|
|
37
37
|
return service.getFoldingRanges(params.textDocument.uri, token);
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
|
-
connection.languages.onLinkedEditingRange(async (params, token) => {
|
|
40
|
+
server.connection.languages.onLinkedEditingRange(async (params, token) => {
|
|
41
41
|
return worker(params.textDocument.uri, token, service => {
|
|
42
42
|
return service.findLinkedEditingRanges(params.textDocument.uri, params.position, token);
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
|
-
connection.onDocumentSymbol(async (params, token) => {
|
|
45
|
+
server.connection.onDocumentSymbol(async (params, token) => {
|
|
46
46
|
return worker(params.textDocument.uri, token, service => {
|
|
47
47
|
return service.findDocumentSymbols(params.textDocument.uri, token);
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
|
-
connection.onDocumentColor(async (params, token) => {
|
|
50
|
+
server.connection.onDocumentColor(async (params, token) => {
|
|
51
51
|
return worker(params.textDocument.uri, token, service => {
|
|
52
52
|
return service.findDocumentColors(params.textDocument.uri, token);
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
|
-
connection.onColorPresentation(async (params, token) => {
|
|
55
|
+
server.connection.onColorPresentation(async (params, token) => {
|
|
56
56
|
return worker(params.textDocument.uri, token, service => {
|
|
57
57
|
return service.getColorPresentations(params.textDocument.uri, params.color, params.range, token);
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
|
-
connection.onCompletion(async (params, token) => {
|
|
60
|
+
server.connection.onCompletion(async (params, token) => {
|
|
61
61
|
return worker(params.textDocument.uri, token, async (service) => {
|
|
62
62
|
lastCompleteUri = params.textDocument.uri;
|
|
63
63
|
lastCompleteLs = service;
|
|
@@ -68,24 +68,24 @@ function registerLanguageFeatures(connection, projectProvider, initParams, seman
|
|
|
68
68
|
return list;
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
|
-
connection.onCompletionResolve(async (item, token) => {
|
|
71
|
+
server.connection.onCompletionResolve(async (item, token) => {
|
|
72
72
|
if (lastCompleteUri && lastCompleteLs) {
|
|
73
73
|
item = await lastCompleteLs.doCompletionResolve(item, token);
|
|
74
74
|
fixTextEdit(item);
|
|
75
75
|
}
|
|
76
76
|
return item;
|
|
77
77
|
});
|
|
78
|
-
connection.onHover(async (params, token) => {
|
|
78
|
+
server.connection.onHover(async (params, token) => {
|
|
79
79
|
return worker(params.textDocument.uri, token, service => {
|
|
80
80
|
return service.doHover(params.textDocument.uri, params.position, token);
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
|
-
connection.onSignatureHelp(async (params, token) => {
|
|
83
|
+
server.connection.onSignatureHelp(async (params, token) => {
|
|
84
84
|
return worker(params.textDocument.uri, token, service => {
|
|
85
85
|
return service.getSignatureHelp(params.textDocument.uri, params.position, params.context, token);
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
|
-
connection.onPrepareRename(async (params, token) => {
|
|
88
|
+
server.connection.onPrepareRename(async (params, token) => {
|
|
89
89
|
return worker(params.textDocument.uri, token, async (service) => {
|
|
90
90
|
const result = await service.prepareRename(params.textDocument.uri, params.position, token);
|
|
91
91
|
if (result && 'message' in result) {
|
|
@@ -94,21 +94,21 @@ function registerLanguageFeatures(connection, projectProvider, initParams, seman
|
|
|
94
94
|
return result;
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
|
-
connection.onRenameRequest(async (params, token) => {
|
|
97
|
+
server.connection.onRenameRequest(async (params, token) => {
|
|
98
98
|
return worker(params.textDocument.uri, token, service => {
|
|
99
99
|
return service.doRename(params.textDocument.uri, params.position, params.newName, token);
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
|
-
connection.onCodeLens(async (params, token) => {
|
|
102
|
+
server.connection.onCodeLens(async (params, token) => {
|
|
103
103
|
return worker(params.textDocument.uri, token, async (service) => {
|
|
104
104
|
lastCodeLensLs = service;
|
|
105
105
|
return service.doCodeLens(params.textDocument.uri, token);
|
|
106
106
|
});
|
|
107
107
|
});
|
|
108
|
-
connection.onCodeLensResolve(async (codeLens, token) => {
|
|
108
|
+
server.connection.onCodeLensResolve(async (codeLens, token) => {
|
|
109
109
|
return await lastCodeLensLs?.doCodeLensResolve(codeLens, token) ?? codeLens;
|
|
110
110
|
});
|
|
111
|
-
connection.onCodeAction(async (params, token) => {
|
|
111
|
+
server.connection.onCodeAction(async (params, token) => {
|
|
112
112
|
return worker(params.textDocument.uri, token, async (service) => {
|
|
113
113
|
lastCodeActionLs = service;
|
|
114
114
|
let codeActions = await service.doCodeActions(params.textDocument.uri, params.range, params.context, token) ?? [];
|
|
@@ -120,57 +120,57 @@ function registerLanguageFeatures(connection, projectProvider, initParams, seman
|
|
|
120
120
|
codeAction.data = { uri: params.textDocument.uri };
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
if (!
|
|
123
|
+
if (!server.initializeParams?.capabilities.textDocument?.codeAction?.disabledSupport) {
|
|
124
124
|
codeActions = codeActions.filter(codeAction => !codeAction.disabled);
|
|
125
125
|
}
|
|
126
126
|
return codeActions;
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
|
-
connection.onCodeActionResolve(async (codeAction, token) => {
|
|
129
|
+
server.connection.onCodeActionResolve(async (codeAction, token) => {
|
|
130
130
|
return await lastCodeActionLs.doCodeActionResolve(codeAction, token) ?? codeAction;
|
|
131
131
|
});
|
|
132
|
-
connection.onReferences(async (params, token) => {
|
|
132
|
+
server.connection.onReferences(async (params, token) => {
|
|
133
133
|
return worker(params.textDocument.uri, token, service => {
|
|
134
134
|
return service.findReferences(params.textDocument.uri, params.position, { includeDeclaration: true }, token);
|
|
135
135
|
});
|
|
136
136
|
});
|
|
137
|
-
connection.onRequest(protocol_1.FindFileReferenceRequest.type, async (params, token) => {
|
|
137
|
+
server.connection.onRequest(protocol_1.FindFileReferenceRequest.type, async (params, token) => {
|
|
138
138
|
return worker(params.textDocument.uri, token, service => {
|
|
139
139
|
return service.findFileReferences(params.textDocument.uri, token);
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
|
-
connection.onImplementation(async (params, token) => {
|
|
142
|
+
server.connection.onImplementation(async (params, token) => {
|
|
143
143
|
return worker(params.textDocument.uri, token, service => {
|
|
144
144
|
return service.findImplementations(params.textDocument.uri, params.position, token);
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
|
-
connection.onDefinition(async (params, token) => {
|
|
147
|
+
server.connection.onDefinition(async (params, token) => {
|
|
148
148
|
return worker(params.textDocument.uri, token, service => {
|
|
149
149
|
return service.findDefinition(params.textDocument.uri, params.position, token);
|
|
150
150
|
});
|
|
151
151
|
});
|
|
152
|
-
connection.onTypeDefinition(async (params, token) => {
|
|
152
|
+
server.connection.onTypeDefinition(async (params, token) => {
|
|
153
153
|
return worker(params.textDocument.uri, token, service => {
|
|
154
154
|
return service.findTypeDefinition(params.textDocument.uri, params.position, token);
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
|
-
connection.onDocumentHighlight(async (params, token) => {
|
|
157
|
+
server.connection.onDocumentHighlight(async (params, token) => {
|
|
158
158
|
return worker(params.textDocument.uri, token, service => {
|
|
159
159
|
return service.findDocumentHighlights(params.textDocument.uri, params.position, token);
|
|
160
160
|
});
|
|
161
161
|
});
|
|
162
|
-
connection.onDocumentLinks(async (params, token) => {
|
|
162
|
+
server.connection.onDocumentLinks(async (params, token) => {
|
|
163
163
|
return await worker(params.textDocument.uri, token, service => {
|
|
164
164
|
lastDocumentLinkLs = service;
|
|
165
165
|
return service.findDocumentLinks(params.textDocument.uri, token);
|
|
166
166
|
});
|
|
167
167
|
});
|
|
168
|
-
connection.onDocumentLinkResolve(async (link, token) => {
|
|
168
|
+
server.connection.onDocumentLinkResolve(async (link, token) => {
|
|
169
169
|
return await lastDocumentLinkLs.doDocumentLinkResolve(link, token);
|
|
170
170
|
});
|
|
171
|
-
connection.onWorkspaceSymbol(async (params, token) => {
|
|
171
|
+
server.connection.onWorkspaceSymbol(async (params, token) => {
|
|
172
172
|
let results = [];
|
|
173
|
-
for (const project of await
|
|
173
|
+
for (const project of await server.projects.all.call(server)) {
|
|
174
174
|
if (token.isCancellationRequested) {
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
@@ -178,29 +178,29 @@ function registerLanguageFeatures(connection, projectProvider, initParams, seman
|
|
|
178
178
|
}
|
|
179
179
|
return results;
|
|
180
180
|
});
|
|
181
|
-
connection.languages.callHierarchy.onPrepare(async (params, token) => {
|
|
181
|
+
server.connection.languages.callHierarchy.onPrepare(async (params, token) => {
|
|
182
182
|
return await worker(params.textDocument.uri, token, async (service) => {
|
|
183
183
|
lastCallHierarchyLs = service;
|
|
184
184
|
return service.callHierarchy.doPrepare(params.textDocument.uri, params.position, token);
|
|
185
185
|
}) ?? [];
|
|
186
186
|
});
|
|
187
|
-
connection.languages.callHierarchy.onIncomingCalls(async (params, token) => {
|
|
187
|
+
server.connection.languages.callHierarchy.onIncomingCalls(async (params, token) => {
|
|
188
188
|
return await lastCallHierarchyLs?.callHierarchy.getIncomingCalls(params.item, token) ?? [];
|
|
189
189
|
});
|
|
190
|
-
connection.languages.callHierarchy.onOutgoingCalls(async (params, token) => {
|
|
190
|
+
server.connection.languages.callHierarchy.onOutgoingCalls(async (params, token) => {
|
|
191
191
|
return await lastCallHierarchyLs?.callHierarchy.getOutgoingCalls(params.item, token) ?? [];
|
|
192
192
|
});
|
|
193
|
-
connection.languages.semanticTokens.on(async (params, token, _, resultProgress) => {
|
|
193
|
+
server.connection.languages.semanticTokens.on(async (params, token, _, resultProgress) => {
|
|
194
194
|
return await worker(params.textDocument.uri, token, async (service) => {
|
|
195
|
-
return await service?.getSemanticTokens(params.textDocument.uri, undefined, semanticTokensLegend, token, tokens => resultProgress?.report(tokens));
|
|
195
|
+
return await service?.getSemanticTokens(params.textDocument.uri, undefined, server.semanticTokensLegend, token, tokens => resultProgress?.report(tokens));
|
|
196
196
|
}) ?? { data: [] };
|
|
197
197
|
});
|
|
198
|
-
connection.languages.semanticTokens.onRange(async (params, token, _, resultProgress) => {
|
|
198
|
+
server.connection.languages.semanticTokens.onRange(async (params, token, _, resultProgress) => {
|
|
199
199
|
return await worker(params.textDocument.uri, token, async (service) => {
|
|
200
|
-
return await service?.getSemanticTokens(params.textDocument.uri, params.range, semanticTokensLegend, token, tokens => resultProgress?.report(tokens));
|
|
200
|
+
return await service?.getSemanticTokens(params.textDocument.uri, params.range, server.semanticTokensLegend, token, tokens => resultProgress?.report(tokens));
|
|
201
201
|
}) ?? { data: [] };
|
|
202
202
|
});
|
|
203
|
-
connection.languages.diagnostics.on(async (params, token, _workDoneProgressReporter, resultProgressReporter) => {
|
|
203
|
+
server.connection.languages.diagnostics.on(async (params, token, _workDoneProgressReporter, resultProgressReporter) => {
|
|
204
204
|
const result = await worker(params.textDocument.uri, token, service => {
|
|
205
205
|
return service.doValidation(params.textDocument.uri, token, errors => {
|
|
206
206
|
// resultProgressReporter is undefined in vscode
|
|
@@ -219,16 +219,16 @@ function registerLanguageFeatures(connection, projectProvider, initParams, seman
|
|
|
219
219
|
items: result ?? [],
|
|
220
220
|
};
|
|
221
221
|
});
|
|
222
|
-
connection.languages.inlayHint.on(async (params, token) => {
|
|
222
|
+
server.connection.languages.inlayHint.on(async (params, token) => {
|
|
223
223
|
return worker(params.textDocument.uri, token, async (service) => {
|
|
224
224
|
lastInlayHintLs = service;
|
|
225
225
|
return service.getInlayHints(params.textDocument.uri, params.range, token);
|
|
226
226
|
});
|
|
227
227
|
});
|
|
228
|
-
connection.languages.inlayHint.resolve(async (hint, token) => {
|
|
228
|
+
server.connection.languages.inlayHint.resolve(async (hint, token) => {
|
|
229
229
|
return await lastInlayHintLs.doInlayHintResolve(hint, token);
|
|
230
230
|
});
|
|
231
|
-
connection.workspace.onWillRenameFiles(async (params, token) => {
|
|
231
|
+
server.connection.workspace.onWillRenameFiles(async (params, token) => {
|
|
232
232
|
const _edits = await Promise.all(params.files.map(async (file) => {
|
|
233
233
|
return await worker(file.oldUri, token, service => {
|
|
234
234
|
return service.getEditsForFileRename(file.oldUri, file.newUri, token) ?? null;
|
|
@@ -241,7 +241,7 @@ function registerLanguageFeatures(connection, projectProvider, initParams, seman
|
|
|
241
241
|
}
|
|
242
242
|
return null;
|
|
243
243
|
});
|
|
244
|
-
connection.onRequest(protocol_1.AutoInsertRequest.type, async (params, token) => {
|
|
244
|
+
server.connection.onRequest(protocol_1.AutoInsertRequest.type, async (params, token) => {
|
|
245
245
|
return worker(params.textDocument.uri, token, service => {
|
|
246
246
|
return service.doAutoInsert(params.textDocument.uri, params.selection, params.change, token);
|
|
247
247
|
});
|
|
@@ -254,7 +254,7 @@ function registerLanguageFeatures(connection, projectProvider, initParams, seman
|
|
|
254
254
|
resolve(undefined);
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
|
-
const languageService = (await
|
|
257
|
+
const languageService = (await server.projects.get.call(server, uri)).getLanguageService();
|
|
258
258
|
try { // handle TS cancel throw
|
|
259
259
|
const result = await cb(languageService);
|
|
260
260
|
if (token.isCancellationRequested) {
|
|
@@ -271,7 +271,7 @@ function registerLanguageFeatures(connection, projectProvider, initParams, seman
|
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
function fixTextEdit(item) {
|
|
274
|
-
const insertReplaceSupport =
|
|
274
|
+
const insertReplaceSupport = server.initializeParams?.capabilities.textDocument?.completion?.completionItem?.insertReplaceSupport ?? false;
|
|
275
275
|
if (!insertReplaceSupport) {
|
|
276
276
|
if (item.textEdit && vscode.InsertReplaceEdit.is(item.textEdit)) {
|
|
277
277
|
item.textEdit = vscode.TextEdit.replace(item.textEdit.insert, item.textEdit.newText);
|
package/lib/server.d.ts
CHANGED
|
@@ -1,32 +1,44 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FileSystem, LanguageServicePlugin } from '@volar/language-service';
|
|
2
2
|
import { SnapshotDocument } from '@volar/snapshot-document';
|
|
3
|
-
import type { TextDocuments } from 'vscode-languageserver';
|
|
4
3
|
import * as vscode from 'vscode-languageserver';
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import type { ServerProjectProvider, VolarInitializeParams } from './types.js';
|
|
5
|
+
export * from '@volar/snapshot-document';
|
|
6
|
+
export declare function createServerBase(connection: vscode.Connection, getFs: (initializeParams: VolarInitializeParams) => FileSystem): {
|
|
7
|
+
connection: vscode.Connection;
|
|
8
|
+
initializeParams: VolarInitializeParams;
|
|
9
|
+
languageServicePlugins: LanguageServicePlugin<any>[];
|
|
10
|
+
projects: ServerProjectProvider;
|
|
11
|
+
fs: FileSystem;
|
|
12
|
+
semanticTokensLegend: vscode.SemanticTokensLegend;
|
|
13
|
+
pullModelDiagnostics: boolean;
|
|
14
|
+
documents: vscode.TextDocuments<SnapshotDocument>;
|
|
15
|
+
workspaceFolders: {
|
|
16
|
+
clear: () => void;
|
|
17
|
+
values: () => IterableIterator<boolean>;
|
|
18
|
+
uriKeys: () => IterableIterator<string>;
|
|
19
|
+
uriDelete: (_uri: string) => boolean;
|
|
20
|
+
uriGet: (_uri: string) => boolean | undefined;
|
|
21
|
+
uriHas: (_uri: string) => boolean;
|
|
22
|
+
uriSet: (_uri: string, item: boolean) => void;
|
|
23
|
+
pathDelete: (path: string) => boolean;
|
|
24
|
+
pathGet: (path: string) => boolean | undefined;
|
|
25
|
+
pathHas: (path: string) => boolean | undefined;
|
|
26
|
+
pathSet: (path: string, item: boolean) => void;
|
|
10
27
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
workspaceFolders: UriMap<boolean>;
|
|
16
|
-
documents: TextDocuments<SnapshotDocument>;
|
|
17
|
-
reloadDiagnostics(): void;
|
|
18
|
-
updateDiagnosticsAndSemanticTokens(): void;
|
|
19
|
-
}
|
|
20
|
-
export interface ServerOptions {
|
|
21
|
-
watchFileExtensions?: string[];
|
|
22
|
-
getServicePlugins(): LanguageServicePlugin[] | Promise<LanguageServicePlugin[]>;
|
|
23
|
-
getLanguagePlugins(serviceEnv: ServiceEnvironment, projectContext: ProjectContext): LanguagePlugin[] | Promise<LanguagePlugin[]>;
|
|
24
|
-
getLanguageId(uri: string): string;
|
|
25
|
-
}
|
|
26
|
-
export declare function createServerBase(connection: vscode.Connection, getRuntimeEnv: (params: ServerContext['initializeParams']) => ServerRuntimeEnvironment): {
|
|
27
|
-
initialize: (params: ServerContext['initializeParams'], projectProviderFactory: ServerProjectProviderFactory, _serverOptions: ServerOptions) => Promise<vscode.InitializeResult<any>>;
|
|
28
|
+
initialize: (initializeParams: VolarInitializeParams, languageServicePlugins: LanguageServicePlugin[], projects: ServerProjectProvider, options?: {
|
|
29
|
+
semanticTokensLegend?: vscode.SemanticTokensLegend;
|
|
30
|
+
pullModelDiagnostics?: boolean;
|
|
31
|
+
}) => vscode.InitializeResult<any>;
|
|
28
32
|
initialized: () => void;
|
|
29
|
-
shutdown: () => void
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
shutdown: () => Promise<void>;
|
|
34
|
+
watchFiles: (patterns: string[]) => void;
|
|
35
|
+
getConfiguration: <T>(section: string, scopeUri?: string) => Promise<T | undefined>;
|
|
36
|
+
onDidChangeConfiguration: (cb: vscode.NotificationHandler<vscode.DidChangeConfigurationParams>) => {
|
|
37
|
+
dispose(): void;
|
|
38
|
+
};
|
|
39
|
+
onDidChangeWatchedFiles: (cb: vscode.NotificationHandler<vscode.DidChangeWatchedFilesParams>) => {
|
|
40
|
+
dispose: () => void;
|
|
41
|
+
};
|
|
42
|
+
clearPushDiagnostics: () => void;
|
|
43
|
+
refresh: (projects: ServerProjectProvider) => Promise<void>;
|
|
32
44
|
};
|