vscode-languageserver-protocol 3.16.0-next.9 → 3.17.0-next.11
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/lib/browser/main.js +1 -1
- package/lib/common/api.d.ts +80 -17
- package/lib/common/api.js +44 -8
- package/lib/common/connection.d.ts +25 -17
- package/lib/common/connection.js +1 -1
- package/lib/common/messages.d.ts +19 -7
- package/lib/common/messages.js +7 -7
- package/lib/common/proposed.diagnostic.d.ts +324 -0
- package/lib/common/proposed.diagnostic.js +72 -0
- package/lib/common/proposed.inlineValue.d.ts +86 -0
- package/lib/common/proposed.inlineValue.js +29 -0
- package/lib/common/proposed.typeHierarchy.d.ts +83 -0
- package/lib/common/proposed.typeHierarchy.js +40 -0
- package/lib/common/protocol.callHierarchy.js +1 -1
- package/lib/common/protocol.configuration.d.ts +4 -3
- package/lib/common/protocol.d.ts +466 -58
- package/lib/common/protocol.declaration.d.ts +1 -1
- package/lib/common/protocol.fileOperations.d.ts +293 -0
- package/lib/common/protocol.fileOperations.js +92 -0
- package/lib/common/protocol.foldingRange.d.ts +2 -29
- package/lib/common/protocol.implementation.d.ts +1 -1
- package/lib/common/protocol.js +58 -9
- package/lib/common/protocol.linkedEditingRange.d.ts +51 -0
- package/lib/common/protocol.linkedEditingRange.js +19 -0
- package/lib/common/{protocol.moniker.proposed.d.ts → protocol.moniker.d.ts} +11 -14
- package/lib/common/{protocol.moniker.proposed.js → protocol.moniker.js} +1 -1
- package/lib/common/protocol.progress.d.ts +6 -4
- package/lib/common/protocol.progress.js +4 -0
- package/lib/common/protocol.semanticTokens.d.ts +70 -134
- package/lib/common/protocol.semanticTokens.js +5 -69
- package/lib/common/protocol.showDocument.d.ts +71 -0
- package/lib/common/protocol.showDocument.js +22 -0
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/common/protocol.workspaceFolders.d.ts +1 -1
- package/lib/node/main.js +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { RequestHandler0, RequestHandler, ProgressType } from 'vscode-jsonrpc';
|
|
2
|
+
import { TextDocumentIdentifier, Diagnostic, DocumentUri, integer } from 'vscode-languageserver-types';
|
|
3
|
+
import { ProtocolRequestType0, ProtocolRequestType } from './messages';
|
|
4
|
+
import { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, TextDocumentClientCapabilities } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* @since 3.17.0 - proposed state
|
|
7
|
+
*/
|
|
8
|
+
export interface DiagnosticClientCapabilities {
|
|
9
|
+
/**
|
|
10
|
+
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
11
|
+
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
12
|
+
* return value for the corresponding server capability as well.
|
|
13
|
+
*/
|
|
14
|
+
dynamicRegistration?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the clients supports related documents for document diagnostic pulls.
|
|
17
|
+
*/
|
|
18
|
+
relatedDocumentSupport?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface $DiagnosticClientCapabilities {
|
|
21
|
+
textDocument?: TextDocumentClientCapabilities & {
|
|
22
|
+
diagnostic?: DiagnosticClientCapabilities;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Diagnostic options.
|
|
27
|
+
*
|
|
28
|
+
* @since 3.17.0 - proposed state
|
|
29
|
+
*/
|
|
30
|
+
export interface DiagnosticOptions extends WorkDoneProgressOptions {
|
|
31
|
+
/**
|
|
32
|
+
* An optional identifier under which the diagnostics are
|
|
33
|
+
* managed by the client.
|
|
34
|
+
*/
|
|
35
|
+
identifier?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the language has inter file dependencies meaning that
|
|
38
|
+
* editing code in one file can result in a different diagnostic
|
|
39
|
+
* set in another file. Inter file dependencies are common for
|
|
40
|
+
* most programming languages and typically uncommon for linters.
|
|
41
|
+
*/
|
|
42
|
+
interFileDependencies: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The server provides support for workspace diagnostics as well.
|
|
45
|
+
*/
|
|
46
|
+
workspaceDiagnostics: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Diagnostic registration options.
|
|
50
|
+
*
|
|
51
|
+
* @since 3.17.0 - proposed state
|
|
52
|
+
*/
|
|
53
|
+
export interface DiagnosticRegistrationOptions extends TextDocumentRegistrationOptions, DiagnosticOptions, StaticRegistrationOptions {
|
|
54
|
+
}
|
|
55
|
+
export interface $DiagnosticServerCapabilities {
|
|
56
|
+
diagnosticProvider?: DiagnosticOptions;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Cancellation data returned from a diagnostic request.
|
|
60
|
+
*
|
|
61
|
+
* @since 3.17.0 - proposed state
|
|
62
|
+
*/
|
|
63
|
+
export interface DiagnosticServerCancellationData {
|
|
64
|
+
retriggerRequest: boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* @since 3.17.0 - proposed state
|
|
68
|
+
*/
|
|
69
|
+
export declare namespace DiagnosticServerCancellationData {
|
|
70
|
+
function is(value: any): value is DiagnosticServerCancellationData;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Parameters of the document diagnostic request.
|
|
74
|
+
*
|
|
75
|
+
* @since 3.17.0 - proposed state
|
|
76
|
+
*/
|
|
77
|
+
export interface DocumentDiagnosticParams extends WorkDoneProgressParams, PartialResultParams {
|
|
78
|
+
/**
|
|
79
|
+
* The text document.
|
|
80
|
+
*/
|
|
81
|
+
textDocument: TextDocumentIdentifier;
|
|
82
|
+
/**
|
|
83
|
+
* The additional identifier provided during registration.
|
|
84
|
+
*/
|
|
85
|
+
identifier?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The result id of a previous response if provided.
|
|
88
|
+
*/
|
|
89
|
+
previousResultId?: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The document diagnostic report kinds.
|
|
93
|
+
*
|
|
94
|
+
* @since 3.17.0 - proposed state
|
|
95
|
+
*/
|
|
96
|
+
export declare enum DocumentDiagnosticReportKind {
|
|
97
|
+
/**
|
|
98
|
+
* A diagnostic report with a full
|
|
99
|
+
* set of problems.
|
|
100
|
+
*/
|
|
101
|
+
full = "full",
|
|
102
|
+
/**
|
|
103
|
+
* A report indicating that the last
|
|
104
|
+
* returned report is still accurate.
|
|
105
|
+
*/
|
|
106
|
+
unChanged = "unChanged"
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* A diagnostic report with a full set of problems.
|
|
110
|
+
*
|
|
111
|
+
* @since 3.17.0 - proposed state
|
|
112
|
+
*/
|
|
113
|
+
export interface FullDocumentDiagnosticReport {
|
|
114
|
+
/**
|
|
115
|
+
* A full document diagnostic report.
|
|
116
|
+
*/
|
|
117
|
+
kind: DocumentDiagnosticReportKind.full;
|
|
118
|
+
/**
|
|
119
|
+
* An optional result id. If provided it will
|
|
120
|
+
* be sent on the next diagnostic request for the
|
|
121
|
+
* same document.
|
|
122
|
+
*/
|
|
123
|
+
resultId?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The actual items.
|
|
126
|
+
*/
|
|
127
|
+
items: Diagnostic[];
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* A full diagnostic report with a set of related documents.
|
|
131
|
+
*
|
|
132
|
+
* @since 3.17.0 - proposed state
|
|
133
|
+
*/
|
|
134
|
+
export interface RelatedFullDocumentDiagnosticReport extends FullDocumentDiagnosticReport {
|
|
135
|
+
/**
|
|
136
|
+
* Diagnostics of related documents. This information is useful
|
|
137
|
+
* in programming languages where code in a file A can generate
|
|
138
|
+
* diagnostics in a file B which A depends on. An example of
|
|
139
|
+
* such a language is C/C++ where marco definitions in a file
|
|
140
|
+
* a.cpp and result in errors in a header file b.hpp.
|
|
141
|
+
*
|
|
142
|
+
* @since 3.17.0 - proposed state
|
|
143
|
+
*/
|
|
144
|
+
relatedDocuments?: {
|
|
145
|
+
[uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* A diagnostic report indicating that the last returned
|
|
150
|
+
* report is still accurate.
|
|
151
|
+
*
|
|
152
|
+
* @since 3.17.0 - proposed state
|
|
153
|
+
*/
|
|
154
|
+
export interface UnchangedDocumentDiagnosticReport {
|
|
155
|
+
/**
|
|
156
|
+
* A document diagnostic report indicating
|
|
157
|
+
* no changes to the last result. A server can
|
|
158
|
+
* only return `unchanged` if result ids are
|
|
159
|
+
* provided.
|
|
160
|
+
*/
|
|
161
|
+
kind: DocumentDiagnosticReportKind.unChanged;
|
|
162
|
+
/**
|
|
163
|
+
* A result id which will be sent on the next
|
|
164
|
+
* diagnostic request for the same document.
|
|
165
|
+
*/
|
|
166
|
+
resultId: string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* An unchanged diagnostic report with a set of related documents.
|
|
170
|
+
*
|
|
171
|
+
* @since 3.17.0 - proposed state
|
|
172
|
+
*/
|
|
173
|
+
export interface RelatedUnchangedDocumentDiagnosticReport extends UnchangedDocumentDiagnosticReport {
|
|
174
|
+
/**
|
|
175
|
+
* Diagnostics of related documents. This information is useful
|
|
176
|
+
* in programming languages where code in a file A can generate
|
|
177
|
+
* diagnostics in a file B which A depends on. An example of
|
|
178
|
+
* such a language is C/C++ where marco definitions in a file
|
|
179
|
+
* a.cpp and result in errors in a header file b.hpp.
|
|
180
|
+
*
|
|
181
|
+
* @since 3.17.0 - proposed state
|
|
182
|
+
*/
|
|
183
|
+
relatedDocuments?: {
|
|
184
|
+
[uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* The result of a document diagnostic pull request. A report can
|
|
189
|
+
* either be a full report containing all diagnostics for the
|
|
190
|
+
* requested document or a unchanged report indicating that nothing
|
|
191
|
+
* has changed in terms of diagnostics in comparison to the last
|
|
192
|
+
* pull request.
|
|
193
|
+
*
|
|
194
|
+
* @since 3.17.0 - proposed state
|
|
195
|
+
*/
|
|
196
|
+
export declare type DocumentDiagnosticReport = RelatedFullDocumentDiagnosticReport | RelatedUnchangedDocumentDiagnosticReport;
|
|
197
|
+
/**
|
|
198
|
+
* A partial result for a document diagnostic report.
|
|
199
|
+
*
|
|
200
|
+
* @since 3.17.0 - proposed state
|
|
201
|
+
*/
|
|
202
|
+
export interface DocumentDiagnosticReportPartialResult {
|
|
203
|
+
relatedDocuments: {
|
|
204
|
+
[uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* The document diagnostic request definition.
|
|
209
|
+
*
|
|
210
|
+
* @since 3.17.0 - proposed state
|
|
211
|
+
*/
|
|
212
|
+
export declare namespace DocumentDiagnosticRequest {
|
|
213
|
+
const method: 'textDocument/diagnostic';
|
|
214
|
+
const type: ProtocolRequestType<DocumentDiagnosticParams, DocumentDiagnosticReport, DocumentDiagnosticReportPartialResult, DiagnosticServerCancellationData, DiagnosticRegistrationOptions>;
|
|
215
|
+
const partialResult: ProgressType<DocumentDiagnosticReportPartialResult>;
|
|
216
|
+
type HandlerSignature = RequestHandler<DocumentDiagnosticParams, DocumentDiagnosticReport, void>;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* A previous result id in a workspace pull request.
|
|
220
|
+
*
|
|
221
|
+
* @since 3.17.0 - proposed state
|
|
222
|
+
*/
|
|
223
|
+
export declare type PreviousResultId = {
|
|
224
|
+
/**
|
|
225
|
+
* The URI for which the client knowns a
|
|
226
|
+
* result id.
|
|
227
|
+
*/
|
|
228
|
+
uri: DocumentUri;
|
|
229
|
+
/**
|
|
230
|
+
* The value of the previous result id.
|
|
231
|
+
*/
|
|
232
|
+
value: string;
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Parameters of the workspace diagnostic request.
|
|
236
|
+
*
|
|
237
|
+
* @since 3.17.0 - proposed state
|
|
238
|
+
*/
|
|
239
|
+
export interface WorkspaceDiagnosticParams extends WorkDoneProgressParams, PartialResultParams {
|
|
240
|
+
/**
|
|
241
|
+
* The additional identifier provided during registration.
|
|
242
|
+
*/
|
|
243
|
+
identifier?: string;
|
|
244
|
+
/**
|
|
245
|
+
* The currently known diagnostic reports with their
|
|
246
|
+
* previous result ids.
|
|
247
|
+
*/
|
|
248
|
+
previousResultIds: PreviousResultId[];
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* A full document diagnostic report for a workspace diagnostic result.
|
|
252
|
+
*
|
|
253
|
+
* @since 3.17.0 - proposed state
|
|
254
|
+
*/
|
|
255
|
+
export interface WorkspaceFullDocumentDiagnosticReport extends FullDocumentDiagnosticReport {
|
|
256
|
+
/**
|
|
257
|
+
* The URI for which diagnostic information is reported.
|
|
258
|
+
*/
|
|
259
|
+
uri: DocumentUri;
|
|
260
|
+
/**
|
|
261
|
+
* The version number for which the diagnostics are reported.
|
|
262
|
+
* If the document is not marked as open `null` can be provided.
|
|
263
|
+
*/
|
|
264
|
+
version: integer | null;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* An unchanged document diagnostic report for a workspace diagnostic result.
|
|
268
|
+
*
|
|
269
|
+
* @since 3.17.0 - proposed state
|
|
270
|
+
*/
|
|
271
|
+
export interface WorkspaceUnchangedDocumentDiagnosticReport extends UnchangedDocumentDiagnosticReport {
|
|
272
|
+
/**
|
|
273
|
+
* The URI for which diagnostic information is reported.
|
|
274
|
+
*/
|
|
275
|
+
uri: DocumentUri;
|
|
276
|
+
/**
|
|
277
|
+
* The version number for which the diagnostics are reported.
|
|
278
|
+
* If the document is not marked as open `null` can be provided.
|
|
279
|
+
*/
|
|
280
|
+
version: integer | null;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* A workspace diagnostic document report.
|
|
284
|
+
*
|
|
285
|
+
* @since 3.17.0 - proposed state
|
|
286
|
+
*/
|
|
287
|
+
export declare type WorkspaceDocumentDiagnosticReport = WorkspaceFullDocumentDiagnosticReport | WorkspaceUnchangedDocumentDiagnosticReport;
|
|
288
|
+
/**
|
|
289
|
+
* A workspace diagnostic report.
|
|
290
|
+
*
|
|
291
|
+
* @since 3.17.0 - proposed state
|
|
292
|
+
*/
|
|
293
|
+
export interface WorkspaceDiagnosticReport {
|
|
294
|
+
items: WorkspaceDocumentDiagnosticReport[];
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* A partial result for a workspace diagnostic report.
|
|
298
|
+
*
|
|
299
|
+
* @since 3.17.0 - proposed state
|
|
300
|
+
*/
|
|
301
|
+
export interface WorkspaceDiagnosticReportPartialResult {
|
|
302
|
+
items: WorkspaceDocumentDiagnosticReport[];
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* The workspace diagnostic request definition.
|
|
306
|
+
*
|
|
307
|
+
* @since 3.17.0 - proposed state
|
|
308
|
+
*/
|
|
309
|
+
export declare namespace WorkspaceDiagnosticRequest {
|
|
310
|
+
const method: 'workspace/diagnostic';
|
|
311
|
+
const type: ProtocolRequestType<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport, WorkspaceDiagnosticReportPartialResult, DiagnosticServerCancellationData, void>;
|
|
312
|
+
const partialResult: ProgressType<WorkspaceDiagnosticReportPartialResult>;
|
|
313
|
+
type HandlerSignature = RequestHandler<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport | null, void>;
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* The diagnostic refresh request definition.
|
|
317
|
+
*
|
|
318
|
+
* @since 3.17.0 - proposed state
|
|
319
|
+
*/
|
|
320
|
+
export declare namespace DiagnosticRefreshRequest {
|
|
321
|
+
const method: `workspace/diagnostic/refresh`;
|
|
322
|
+
const type: ProtocolRequestType0<void, void, void, void>;
|
|
323
|
+
type HandlerSignature = RequestHandler0<void, void>;
|
|
324
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* --------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
+
* ------------------------------------------------------------------------------------------ */
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = void 0;
|
|
8
|
+
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
9
|
+
const Is = require("./utils/is");
|
|
10
|
+
const messages_1 = require("./messages");
|
|
11
|
+
/**
|
|
12
|
+
* @since 3.17.0 - proposed state
|
|
13
|
+
*/
|
|
14
|
+
var DiagnosticServerCancellationData;
|
|
15
|
+
(function (DiagnosticServerCancellationData) {
|
|
16
|
+
function is(value) {
|
|
17
|
+
const candidate = value;
|
|
18
|
+
return candidate && Is.boolean(candidate.retriggerRequest);
|
|
19
|
+
}
|
|
20
|
+
DiagnosticServerCancellationData.is = is;
|
|
21
|
+
})(DiagnosticServerCancellationData = exports.DiagnosticServerCancellationData || (exports.DiagnosticServerCancellationData = {}));
|
|
22
|
+
/**
|
|
23
|
+
* The document diagnostic report kinds.
|
|
24
|
+
*
|
|
25
|
+
* @since 3.17.0 - proposed state
|
|
26
|
+
*/
|
|
27
|
+
var DocumentDiagnosticReportKind;
|
|
28
|
+
(function (DocumentDiagnosticReportKind) {
|
|
29
|
+
/**
|
|
30
|
+
* A diagnostic report with a full
|
|
31
|
+
* set of problems.
|
|
32
|
+
*/
|
|
33
|
+
DocumentDiagnosticReportKind["full"] = "full";
|
|
34
|
+
/**
|
|
35
|
+
* A report indicating that the last
|
|
36
|
+
* returned report is still accurate.
|
|
37
|
+
*/
|
|
38
|
+
DocumentDiagnosticReportKind["unChanged"] = "unChanged";
|
|
39
|
+
})(DocumentDiagnosticReportKind = exports.DocumentDiagnosticReportKind || (exports.DocumentDiagnosticReportKind = {}));
|
|
40
|
+
/**
|
|
41
|
+
* The document diagnostic request definition.
|
|
42
|
+
*
|
|
43
|
+
* @since 3.17.0 - proposed state
|
|
44
|
+
*/
|
|
45
|
+
var DocumentDiagnosticRequest;
|
|
46
|
+
(function (DocumentDiagnosticRequest) {
|
|
47
|
+
DocumentDiagnosticRequest.method = 'textDocument/diagnostic';
|
|
48
|
+
DocumentDiagnosticRequest.type = new messages_1.ProtocolRequestType(DocumentDiagnosticRequest.method);
|
|
49
|
+
DocumentDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
|
|
50
|
+
})(DocumentDiagnosticRequest = exports.DocumentDiagnosticRequest || (exports.DocumentDiagnosticRequest = {}));
|
|
51
|
+
/**
|
|
52
|
+
* The workspace diagnostic request definition.
|
|
53
|
+
*
|
|
54
|
+
* @since 3.17.0 - proposed state
|
|
55
|
+
*/
|
|
56
|
+
var WorkspaceDiagnosticRequest;
|
|
57
|
+
(function (WorkspaceDiagnosticRequest) {
|
|
58
|
+
WorkspaceDiagnosticRequest.method = 'workspace/diagnostic';
|
|
59
|
+
WorkspaceDiagnosticRequest.type = new messages_1.ProtocolRequestType(WorkspaceDiagnosticRequest.method);
|
|
60
|
+
WorkspaceDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
|
|
61
|
+
})(WorkspaceDiagnosticRequest = exports.WorkspaceDiagnosticRequest || (exports.WorkspaceDiagnosticRequest = {}));
|
|
62
|
+
/**
|
|
63
|
+
* The diagnostic refresh request definition.
|
|
64
|
+
*
|
|
65
|
+
* @since 3.17.0 - proposed state
|
|
66
|
+
*/
|
|
67
|
+
var DiagnosticRefreshRequest;
|
|
68
|
+
(function (DiagnosticRefreshRequest) {
|
|
69
|
+
DiagnosticRefreshRequest.method = `workspace/diagnostic/refresh`;
|
|
70
|
+
DiagnosticRefreshRequest.type = new messages_1.ProtocolRequestType0(DiagnosticRefreshRequest.method);
|
|
71
|
+
})(DiagnosticRefreshRequest = exports.DiagnosticRefreshRequest || (exports.DiagnosticRefreshRequest = {}));
|
|
72
|
+
//# sourceMappingURL=proposed.diagnostic.js.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { TextDocumentIdentifier, Range, InlineValue, InlineValuesContext } from 'vscode-languageserver-types';
|
|
2
|
+
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
3
|
+
import { ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
+
import { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* Client capabilities specific to inline values.
|
|
7
|
+
*
|
|
8
|
+
* @since 3.17.0 - proposed state
|
|
9
|
+
*/
|
|
10
|
+
export interface InlineValuesClientCapabilities {
|
|
11
|
+
/**
|
|
12
|
+
* Whether implementation supports dynamic registration for inline value providers.
|
|
13
|
+
*/
|
|
14
|
+
dynamicRegistration?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Client workspace capabilities specific to inline values.
|
|
18
|
+
*
|
|
19
|
+
* @since 3.17.0 - proposed state
|
|
20
|
+
*/
|
|
21
|
+
export interface InlineValuesWorkspaceClientCapabilities {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the client implementation supports a refresh request sent from the
|
|
24
|
+
* server to the client.
|
|
25
|
+
*
|
|
26
|
+
* Note that this event is global and will force the client to refresh all
|
|
27
|
+
* inline values currently shown. It should be used with absolute care and is
|
|
28
|
+
* useful for situation where a server for example detect a project wide
|
|
29
|
+
* change that requires such a calculation.
|
|
30
|
+
*/
|
|
31
|
+
refreshSupport?: boolean;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Inline values options used during static registration.
|
|
35
|
+
*
|
|
36
|
+
* @since 3.17.0 - proposed state
|
|
37
|
+
*/
|
|
38
|
+
export interface InlineValuesOptions extends WorkDoneProgressOptions {
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Inline value options used during static or dynamic registration.
|
|
42
|
+
*
|
|
43
|
+
* @since 3.17.0 - proposed state
|
|
44
|
+
*/
|
|
45
|
+
export interface InlineValuesRegistrationOptions extends InlineValuesOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions {
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A parameter literal used in inline values requests.
|
|
49
|
+
*
|
|
50
|
+
* @since 3.17.0 - proposed state
|
|
51
|
+
*/
|
|
52
|
+
export interface InlineValuesParams extends WorkDoneProgressParams {
|
|
53
|
+
/**
|
|
54
|
+
* The text document.
|
|
55
|
+
*/
|
|
56
|
+
textDocument: TextDocumentIdentifier;
|
|
57
|
+
/**
|
|
58
|
+
* The visible document range for which inline values should be computed.
|
|
59
|
+
*/
|
|
60
|
+
viewPort: Range;
|
|
61
|
+
/**
|
|
62
|
+
* Additional information about the context in which inline values were
|
|
63
|
+
* requested.
|
|
64
|
+
*/
|
|
65
|
+
context: InlineValuesContext;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A request to provide inline values in a document. The request's parameter is of
|
|
69
|
+
* type [InlineValuesParams](#InlineValuesParams), the response is of type
|
|
70
|
+
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
71
|
+
*
|
|
72
|
+
* @since 3.17.0 - proposed state
|
|
73
|
+
*/
|
|
74
|
+
export declare namespace InlineValuesRequest {
|
|
75
|
+
const method: 'textDocument/inlineValues';
|
|
76
|
+
const type: ProtocolRequestType<InlineValuesParams, InlineValue[] | null, InlineValue[], any, InlineValuesRegistrationOptions>;
|
|
77
|
+
type HandlerSignature = RequestHandler<InlineValuesParams, InlineValue[] | null, void>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @since 3.17.0 - proposed state
|
|
81
|
+
*/
|
|
82
|
+
export declare namespace InlineValuesRefreshRequest {
|
|
83
|
+
const method: `workspace/inlineValues/refresh`;
|
|
84
|
+
const type: ProtocolRequestType0<void, void, void, void>;
|
|
85
|
+
type HandlerSignature = RequestHandler0<void, void>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
+
*--------------------------------------------------------------------------------------------*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.InlineValuesRefreshRequest = exports.InlineValuesRequest = void 0;
|
|
8
|
+
const messages_1 = require("./messages");
|
|
9
|
+
/**
|
|
10
|
+
* A request to provide inline values in a document. The request's parameter is of
|
|
11
|
+
* type [InlineValuesParams](#InlineValuesParams), the response is of type
|
|
12
|
+
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
13
|
+
*
|
|
14
|
+
* @since 3.17.0 - proposed state
|
|
15
|
+
*/
|
|
16
|
+
var InlineValuesRequest;
|
|
17
|
+
(function (InlineValuesRequest) {
|
|
18
|
+
InlineValuesRequest.method = 'textDocument/inlineValues';
|
|
19
|
+
InlineValuesRequest.type = new messages_1.ProtocolRequestType(InlineValuesRequest.method);
|
|
20
|
+
})(InlineValuesRequest = exports.InlineValuesRequest || (exports.InlineValuesRequest = {}));
|
|
21
|
+
/**
|
|
22
|
+
* @since 3.17.0 - proposed state
|
|
23
|
+
*/
|
|
24
|
+
var InlineValuesRefreshRequest;
|
|
25
|
+
(function (InlineValuesRefreshRequest) {
|
|
26
|
+
InlineValuesRefreshRequest.method = `workspace/inlineValues/refresh`;
|
|
27
|
+
InlineValuesRefreshRequest.type = new messages_1.ProtocolRequestType0(InlineValuesRefreshRequest.method);
|
|
28
|
+
})(InlineValuesRefreshRequest = exports.InlineValuesRefreshRequest || (exports.InlineValuesRefreshRequest = {}));
|
|
29
|
+
//# sourceMappingURL=proposed.inlineValue.js.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
|
+
import { TypeHierarchyItem } from 'vscode-languageserver-types';
|
|
3
|
+
import { ProtocolRequestType } from './messages';
|
|
4
|
+
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* @since 3.17.0 - proposed state
|
|
7
|
+
*/
|
|
8
|
+
export interface TypeHierarchyClientCapabilities {
|
|
9
|
+
/**
|
|
10
|
+
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
11
|
+
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
12
|
+
* return value for the corresponding server capability as well.
|
|
13
|
+
*/
|
|
14
|
+
dynamicRegistration?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Type hierarchy options used during static registration.
|
|
18
|
+
*
|
|
19
|
+
* @since 3.17.0 - proposed state
|
|
20
|
+
*/
|
|
21
|
+
export interface TypeHierarchyOptions extends WorkDoneProgressOptions {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Type hierarchy options used during static or dynamic registration.
|
|
25
|
+
*
|
|
26
|
+
* @since 3.17.0 - proposed state
|
|
27
|
+
*/
|
|
28
|
+
export interface TypeHierarchyRegistrationOptions extends TextDocumentRegistrationOptions, TypeHierarchyOptions, StaticRegistrationOptions {
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* The parameter of a `textDocument/prepareTypeHierarchy` request.
|
|
32
|
+
*
|
|
33
|
+
* @since 3.17.0 - proposed state
|
|
34
|
+
*/
|
|
35
|
+
export interface TypeHierarchyPrepareParams extends TextDocumentPositionParams, WorkDoneProgressParams {
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* A request to result a `TypeHierarchyItem` in a document at a given position.
|
|
39
|
+
* Can be used as an input to a subtypes or supertypes type hierarchy.
|
|
40
|
+
*
|
|
41
|
+
* @since 3.17.0 - proposed state
|
|
42
|
+
*/
|
|
43
|
+
export declare namespace TypeHierarchyPrepareRequest {
|
|
44
|
+
const method: 'textDocument/prepareTypeHierarchy';
|
|
45
|
+
const type: ProtocolRequestType<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, never, void, TypeHierarchyRegistrationOptions>;
|
|
46
|
+
type HandlerSignature = RequestHandler<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, void>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The parameter of a `typeHierarchy/supertypes` request.
|
|
50
|
+
*
|
|
51
|
+
* @since 3.17.0 - proposed state
|
|
52
|
+
*/
|
|
53
|
+
export interface TypeHierarchySupertypesParams extends WorkDoneProgressParams, PartialResultParams {
|
|
54
|
+
item: TypeHierarchyItem;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A request to resolve the supertypes for a given `TypeHierarchyItem`.
|
|
58
|
+
*
|
|
59
|
+
* @since 3.17.0 - proposed state
|
|
60
|
+
*/
|
|
61
|
+
export declare namespace TypeHierarchySupertypesRequest {
|
|
62
|
+
const method: 'typeHierarchy/supertypes';
|
|
63
|
+
const type: ProtocolRequestType<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
|
|
64
|
+
type HandlerSignature = RequestHandler<TypeHierarchySupertypesParams, TypeHierarchyItem[] | null, void>;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The parameter of a `typeHierarchy/subtypes` request.
|
|
68
|
+
*
|
|
69
|
+
* @since 3.17.0 - proposed state
|
|
70
|
+
*/
|
|
71
|
+
export interface TypeHierarchySubtypesParams extends WorkDoneProgressParams, PartialResultParams {
|
|
72
|
+
item: TypeHierarchyItem;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A request to resolve the subtypes for a given `TypeHierarchyItem`.
|
|
76
|
+
*
|
|
77
|
+
* @since 3.17.0 - proposed state
|
|
78
|
+
*/
|
|
79
|
+
export declare namespace TypeHierarchySubtypesRequest {
|
|
80
|
+
const method: 'typeHierarchy/subtypes';
|
|
81
|
+
const type: ProtocolRequestType<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, TypeHierarchyItem[], void, void>;
|
|
82
|
+
type HandlerSignature = RequestHandler<TypeHierarchySubtypesParams, TypeHierarchyItem[] | null, void>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* --------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) TypeFox, Microsoft and others. All rights reserved.
|
|
4
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
+
* ------------------------------------------------------------------------------------------ */
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.TypeHierarchySubtypesRequest = exports.TypeHierarchySupertypesRequest = exports.TypeHierarchyPrepareRequest = void 0;
|
|
8
|
+
const messages_1 = require("./messages");
|
|
9
|
+
/**
|
|
10
|
+
* A request to result a `TypeHierarchyItem` in a document at a given position.
|
|
11
|
+
* Can be used as an input to a subtypes or supertypes type hierarchy.
|
|
12
|
+
*
|
|
13
|
+
* @since 3.17.0 - proposed state
|
|
14
|
+
*/
|
|
15
|
+
var TypeHierarchyPrepareRequest;
|
|
16
|
+
(function (TypeHierarchyPrepareRequest) {
|
|
17
|
+
TypeHierarchyPrepareRequest.method = 'textDocument/prepareTypeHierarchy';
|
|
18
|
+
TypeHierarchyPrepareRequest.type = new messages_1.ProtocolRequestType(TypeHierarchyPrepareRequest.method);
|
|
19
|
+
})(TypeHierarchyPrepareRequest = exports.TypeHierarchyPrepareRequest || (exports.TypeHierarchyPrepareRequest = {}));
|
|
20
|
+
/**
|
|
21
|
+
* A request to resolve the supertypes for a given `TypeHierarchyItem`.
|
|
22
|
+
*
|
|
23
|
+
* @since 3.17.0 - proposed state
|
|
24
|
+
*/
|
|
25
|
+
var TypeHierarchySupertypesRequest;
|
|
26
|
+
(function (TypeHierarchySupertypesRequest) {
|
|
27
|
+
TypeHierarchySupertypesRequest.method = 'typeHierarchy/supertypes';
|
|
28
|
+
TypeHierarchySupertypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySupertypesRequest.method);
|
|
29
|
+
})(TypeHierarchySupertypesRequest = exports.TypeHierarchySupertypesRequest || (exports.TypeHierarchySupertypesRequest = {}));
|
|
30
|
+
/**
|
|
31
|
+
* A request to resolve the subtypes for a given `TypeHierarchyItem`.
|
|
32
|
+
*
|
|
33
|
+
* @since 3.17.0 - proposed state
|
|
34
|
+
*/
|
|
35
|
+
var TypeHierarchySubtypesRequest;
|
|
36
|
+
(function (TypeHierarchySubtypesRequest) {
|
|
37
|
+
TypeHierarchySubtypesRequest.method = 'typeHierarchy/subtypes';
|
|
38
|
+
TypeHierarchySubtypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySubtypesRequest.method);
|
|
39
|
+
})(TypeHierarchySubtypesRequest = exports.TypeHierarchySubtypesRequest || (exports.TypeHierarchySubtypesRequest = {}));
|
|
40
|
+
//# sourceMappingURL=proposed.typeHierarchy.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* --------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) TypeFox and others. All rights reserved.
|
|
3
|
+
* Copyright (c) TypeFox, Microsoft and others. All rights reserved.
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
2
|
+
import { LSPAny } from 'vscode-languageserver-types';
|
|
2
3
|
import { ProtocolRequestType } from './messages';
|
|
3
4
|
import { PartialResultParams } from './protocol';
|
|
4
5
|
export interface ConfigurationClientCapabilities {
|
|
@@ -24,9 +25,9 @@ export interface ConfigurationClientCapabilities {
|
|
|
24
25
|
* change event and empty the cache if such an event is received.
|
|
25
26
|
*/
|
|
26
27
|
export declare namespace ConfigurationRequest {
|
|
27
|
-
const type: ProtocolRequestType<ConfigurationParams & PartialResultParams,
|
|
28
|
-
type HandlerSignature = RequestHandler<ConfigurationParams,
|
|
29
|
-
type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<
|
|
28
|
+
const type: ProtocolRequestType<ConfigurationParams & PartialResultParams, LSPAny[], never, void, void>;
|
|
29
|
+
type HandlerSignature = RequestHandler<ConfigurationParams, LSPAny[], void>;
|
|
30
|
+
type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<LSPAny[], void>;
|
|
30
31
|
}
|
|
31
32
|
export interface ConfigurationItem {
|
|
32
33
|
/**
|