vscode-languageserver-protocol 3.17.0-next.9 → 3.17.2-next.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/README.md +1 -1
- package/lib/browser/main.js +5 -1
- package/lib/common/api.d.ts +1 -37
- package/lib/common/api.js +6 -15
- package/lib/common/connection.d.ts +26 -2
- package/lib/common/protocol.$.d.ts +1 -0
- package/lib/common/protocol.$.js +36 -0
- package/lib/common/protocol.callHierarchy.d.ts +1 -1
- package/lib/common/protocol.colorProvider.d.ts +1 -1
- package/lib/common/protocol.configuration.d.ts +4 -16
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +438 -73
- package/lib/common/protocol.declaration.d.ts +2 -2
- package/lib/common/protocol.declaration.js +2 -2
- package/lib/common/{proposed.diagnostic.d.ts → protocol.diagnostic.d.ts} +85 -71
- package/lib/common/{proposed.diagnostic.js → protocol.diagnostic.js} +8 -8
- package/lib/common/protocol.foldingRange.d.ts +40 -27
- package/lib/common/protocol.foldingRange.js +1 -19
- package/lib/common/protocol.implementation.d.ts +2 -2
- package/lib/common/protocol.implementation.js +2 -2
- package/lib/common/protocol.inlayHint.d.ts +107 -0
- package/lib/common/protocol.inlayHint.js +41 -0
- package/lib/common/protocol.inlineValue.d.ts +84 -0
- package/lib/common/protocol.inlineValue.js +29 -0
- package/lib/common/protocol.js +131 -17
- package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
- package/lib/common/protocol.moniker.d.ts +13 -11
- package/lib/common/protocol.moniker.js +8 -8
- package/lib/common/protocol.notebook.d.ts +391 -0
- package/lib/common/protocol.notebook.js +206 -0
- package/lib/common/protocol.progress.d.ts +2 -14
- package/lib/common/protocol.progress.js +4 -2
- package/lib/common/protocol.selectionRange.d.ts +2 -2
- package/lib/common/protocol.semanticTokens.d.ts +23 -1
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/common/{proposed.typeHierarchy.d.ts → protocol.typeHierarchy.d.ts} +19 -22
- package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +4 -4
- package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +12 -42
- package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
- package/lib/node/main.js +5 -1
- package/metaModel.schema.json +705 -0
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Declaration, DeclarationLink, Location, LocationLink } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.14.0
|
|
7
7
|
*/
|
|
@@ -25,7 +25,7 @@ export interface DeclarationParams extends TextDocumentPositionParams, WorkDoneP
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
28
|
-
* document position. The request's parameter is of type [
|
|
28
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
29
29
|
* (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
|
|
30
30
|
* or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
|
|
31
31
|
* to such.
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.DeclarationRequest = void 0;
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
|
-
// @ts-ignore: to avoid inlining
|
|
9
|
+
// @ts-ignore: to avoid inlining LocationLink as dynamic import
|
|
10
10
|
let __noDynamicImport;
|
|
11
11
|
/**
|
|
12
12
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
13
|
-
* document position. The request's parameter is of type [
|
|
13
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
14
14
|
* (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
|
|
15
15
|
* or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
|
|
16
16
|
* to such.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { RequestHandler0, RequestHandler, ProgressType } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, Diagnostic, DocumentUri, integer } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType0, ProtocolRequestType } from './messages';
|
|
4
|
-
import { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions
|
|
4
|
+
import type { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Client capabilities specific to diagnostic pull requests.
|
|
7
|
+
*
|
|
8
|
+
* @since 3.17.0
|
|
7
9
|
*/
|
|
8
|
-
export
|
|
10
|
+
export declare type DiagnosticClientCapabilities = {
|
|
9
11
|
/**
|
|
10
12
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
11
13
|
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
@@ -16,18 +18,30 @@ export interface DiagnosticClientCapabilities {
|
|
|
16
18
|
* Whether the clients supports related documents for document diagnostic pulls.
|
|
17
19
|
*/
|
|
18
20
|
relatedDocumentSupport?: boolean;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Workspace client capabilities specific to diagnostic pull requests.
|
|
24
|
+
*
|
|
25
|
+
* @since 3.17.0
|
|
26
|
+
*/
|
|
27
|
+
export declare type DiagnosticWorkspaceClientCapabilities = {
|
|
28
|
+
/**
|
|
29
|
+
* Whether the client implementation supports a refresh request sent from
|
|
30
|
+
* the server to the client.
|
|
31
|
+
*
|
|
32
|
+
* Note that this event is global and will force the client to refresh all
|
|
33
|
+
* pulled diagnostics currently shown. It should be used with absolute care and
|
|
34
|
+
* is useful for situation where a server for example detects a project wide
|
|
35
|
+
* change that requires such a calculation.
|
|
36
|
+
*/
|
|
37
|
+
refreshSupport?: boolean;
|
|
38
|
+
};
|
|
25
39
|
/**
|
|
26
40
|
* Diagnostic options.
|
|
27
41
|
*
|
|
28
|
-
* @since 3.17.0
|
|
42
|
+
* @since 3.17.0
|
|
29
43
|
*/
|
|
30
|
-
export
|
|
44
|
+
export declare type DiagnosticOptions = WorkDoneProgressOptions & {
|
|
31
45
|
/**
|
|
32
46
|
* An optional identifier under which the diagnostics are
|
|
33
47
|
* managed by the client.
|
|
@@ -44,27 +58,26 @@ export interface DiagnosticOptions extends WorkDoneProgressOptions {
|
|
|
44
58
|
* The server provides support for workspace diagnostics as well.
|
|
45
59
|
*/
|
|
46
60
|
workspaceDiagnostics: boolean;
|
|
47
|
-
}
|
|
61
|
+
};
|
|
48
62
|
/**
|
|
49
63
|
* Diagnostic registration options.
|
|
50
64
|
*
|
|
51
|
-
* @since 3.17.0
|
|
65
|
+
* @since 3.17.0
|
|
52
66
|
*/
|
|
53
|
-
export
|
|
54
|
-
|
|
55
|
-
export interface $DiagnosticServerCapabilities {
|
|
67
|
+
export declare type DiagnosticRegistrationOptions = TextDocumentRegistrationOptions & DiagnosticOptions & StaticRegistrationOptions;
|
|
68
|
+
export declare type $DiagnosticServerCapabilities = {
|
|
56
69
|
diagnosticProvider?: DiagnosticOptions;
|
|
57
|
-
}
|
|
70
|
+
};
|
|
58
71
|
/**
|
|
59
72
|
* Cancellation data returned from a diagnostic request.
|
|
60
73
|
*
|
|
61
|
-
* @since 3.17.0
|
|
74
|
+
* @since 3.17.0
|
|
62
75
|
*/
|
|
63
|
-
export
|
|
76
|
+
export declare type DiagnosticServerCancellationData = {
|
|
64
77
|
retriggerRequest: boolean;
|
|
65
|
-
}
|
|
78
|
+
};
|
|
66
79
|
/**
|
|
67
|
-
* @since 3.17.0
|
|
80
|
+
* @since 3.17.0
|
|
68
81
|
*/
|
|
69
82
|
export declare namespace DiagnosticServerCancellationData {
|
|
70
83
|
function is(value: any): value is DiagnosticServerCancellationData;
|
|
@@ -72,9 +85,9 @@ export declare namespace DiagnosticServerCancellationData {
|
|
|
72
85
|
/**
|
|
73
86
|
* Parameters of the document diagnostic request.
|
|
74
87
|
*
|
|
75
|
-
* @since 3.17.0
|
|
88
|
+
* @since 3.17.0
|
|
76
89
|
*/
|
|
77
|
-
export
|
|
90
|
+
export declare type DocumentDiagnosticParams = WorkDoneProgressParams & PartialResultParams & {
|
|
78
91
|
/**
|
|
79
92
|
* The text document.
|
|
80
93
|
*/
|
|
@@ -87,34 +100,35 @@ export interface DocumentDiagnosticParams extends WorkDoneProgressParams, Partia
|
|
|
87
100
|
* The result id of a previous response if provided.
|
|
88
101
|
*/
|
|
89
102
|
previousResultId?: string;
|
|
90
|
-
}
|
|
103
|
+
};
|
|
91
104
|
/**
|
|
92
105
|
* The document diagnostic report kinds.
|
|
93
106
|
*
|
|
94
|
-
* @since 3.17.0
|
|
107
|
+
* @since 3.17.0
|
|
95
108
|
*/
|
|
96
|
-
export declare
|
|
109
|
+
export declare namespace DocumentDiagnosticReportKind {
|
|
97
110
|
/**
|
|
98
111
|
* A diagnostic report with a full
|
|
99
112
|
* set of problems.
|
|
100
113
|
*/
|
|
101
|
-
|
|
114
|
+
const Full = "full";
|
|
102
115
|
/**
|
|
103
116
|
* A report indicating that the last
|
|
104
117
|
* returned report is still accurate.
|
|
105
118
|
*/
|
|
106
|
-
|
|
119
|
+
const Unchanged = "unchanged";
|
|
107
120
|
}
|
|
121
|
+
export declare type DocumentDiagnosticReportKind = 'full' | 'unchanged';
|
|
108
122
|
/**
|
|
109
123
|
* A diagnostic report with a full set of problems.
|
|
110
124
|
*
|
|
111
|
-
* @since 3.17.0
|
|
125
|
+
* @since 3.17.0
|
|
112
126
|
*/
|
|
113
|
-
export
|
|
127
|
+
export declare type FullDocumentDiagnosticReport = {
|
|
114
128
|
/**
|
|
115
129
|
* A full document diagnostic report.
|
|
116
130
|
*/
|
|
117
|
-
kind: DocumentDiagnosticReportKind.
|
|
131
|
+
kind: typeof DocumentDiagnosticReportKind.Full;
|
|
118
132
|
/**
|
|
119
133
|
* An optional result id. If provided it will
|
|
120
134
|
* be sent on the next diagnostic request for the
|
|
@@ -125,13 +139,13 @@ export interface FullDocumentDiagnosticReport {
|
|
|
125
139
|
* The actual items.
|
|
126
140
|
*/
|
|
127
141
|
items: Diagnostic[];
|
|
128
|
-
}
|
|
142
|
+
};
|
|
129
143
|
/**
|
|
130
144
|
* A full diagnostic report with a set of related documents.
|
|
131
145
|
*
|
|
132
|
-
* @since 3.17.0
|
|
146
|
+
* @since 3.17.0
|
|
133
147
|
*/
|
|
134
|
-
export
|
|
148
|
+
export declare type RelatedFullDocumentDiagnosticReport = FullDocumentDiagnosticReport & {
|
|
135
149
|
/**
|
|
136
150
|
* Diagnostics of related documents. This information is useful
|
|
137
151
|
* in programming languages where code in a file A can generate
|
|
@@ -139,38 +153,38 @@ export interface RelatedFullDocumentDiagnosticReport extends FullDocumentDiagnos
|
|
|
139
153
|
* such a language is C/C++ where marco definitions in a file
|
|
140
154
|
* a.cpp and result in errors in a header file b.hpp.
|
|
141
155
|
*
|
|
142
|
-
* @since 3.17.0
|
|
156
|
+
* @since 3.17.0
|
|
143
157
|
*/
|
|
144
158
|
relatedDocuments?: {
|
|
145
|
-
[uri:
|
|
159
|
+
[uri: DocumentUri]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
|
|
146
160
|
};
|
|
147
|
-
}
|
|
161
|
+
};
|
|
148
162
|
/**
|
|
149
163
|
* A diagnostic report indicating that the last returned
|
|
150
164
|
* report is still accurate.
|
|
151
165
|
*
|
|
152
|
-
* @since 3.17.0
|
|
166
|
+
* @since 3.17.0
|
|
153
167
|
*/
|
|
154
|
-
export
|
|
168
|
+
export declare type UnchangedDocumentDiagnosticReport = {
|
|
155
169
|
/**
|
|
156
170
|
* A document diagnostic report indicating
|
|
157
171
|
* no changes to the last result. A server can
|
|
158
172
|
* only return `unchanged` if result ids are
|
|
159
173
|
* provided.
|
|
160
174
|
*/
|
|
161
|
-
kind: DocumentDiagnosticReportKind.
|
|
175
|
+
kind: typeof DocumentDiagnosticReportKind.Unchanged;
|
|
162
176
|
/**
|
|
163
177
|
* A result id which will be sent on the next
|
|
164
178
|
* diagnostic request for the same document.
|
|
165
179
|
*/
|
|
166
180
|
resultId: string;
|
|
167
|
-
}
|
|
181
|
+
};
|
|
168
182
|
/**
|
|
169
183
|
* An unchanged diagnostic report with a set of related documents.
|
|
170
184
|
*
|
|
171
|
-
* @since 3.17.0
|
|
185
|
+
* @since 3.17.0
|
|
172
186
|
*/
|
|
173
|
-
export
|
|
187
|
+
export declare type RelatedUnchangedDocumentDiagnosticReport = UnchangedDocumentDiagnosticReport & {
|
|
174
188
|
/**
|
|
175
189
|
* Diagnostics of related documents. This information is useful
|
|
176
190
|
* in programming languages where code in a file A can generate
|
|
@@ -178,12 +192,12 @@ export interface RelatedUnchangedDocumentDiagnosticReport extends UnchangedDocum
|
|
|
178
192
|
* such a language is C/C++ where marco definitions in a file
|
|
179
193
|
* a.cpp and result in errors in a header file b.hpp.
|
|
180
194
|
*
|
|
181
|
-
* @since 3.17.0
|
|
195
|
+
* @since 3.17.0
|
|
182
196
|
*/
|
|
183
197
|
relatedDocuments?: {
|
|
184
|
-
[uri:
|
|
198
|
+
[uri: DocumentUri]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
|
|
185
199
|
};
|
|
186
|
-
}
|
|
200
|
+
};
|
|
187
201
|
/**
|
|
188
202
|
* The result of a document diagnostic pull request. A report can
|
|
189
203
|
* either be a full report containing all diagnostics for the
|
|
@@ -191,23 +205,23 @@ export interface RelatedUnchangedDocumentDiagnosticReport extends UnchangedDocum
|
|
|
191
205
|
* has changed in terms of diagnostics in comparison to the last
|
|
192
206
|
* pull request.
|
|
193
207
|
*
|
|
194
|
-
* @since 3.17.0
|
|
208
|
+
* @since 3.17.0
|
|
195
209
|
*/
|
|
196
210
|
export declare type DocumentDiagnosticReport = RelatedFullDocumentDiagnosticReport | RelatedUnchangedDocumentDiagnosticReport;
|
|
197
211
|
/**
|
|
198
212
|
* A partial result for a document diagnostic report.
|
|
199
213
|
*
|
|
200
|
-
* @since 3.17.0
|
|
214
|
+
* @since 3.17.0
|
|
201
215
|
*/
|
|
202
|
-
export
|
|
216
|
+
export declare type DocumentDiagnosticReportPartialResult = {
|
|
203
217
|
relatedDocuments: {
|
|
204
|
-
[uri:
|
|
218
|
+
[uri: DocumentUri]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
|
|
205
219
|
};
|
|
206
|
-
}
|
|
220
|
+
};
|
|
207
221
|
/**
|
|
208
222
|
* The document diagnostic request definition.
|
|
209
223
|
*
|
|
210
|
-
* @since 3.17.0
|
|
224
|
+
* @since 3.17.0
|
|
211
225
|
*/
|
|
212
226
|
export declare namespace DocumentDiagnosticRequest {
|
|
213
227
|
const method: 'textDocument/diagnostic';
|
|
@@ -218,7 +232,7 @@ export declare namespace DocumentDiagnosticRequest {
|
|
|
218
232
|
/**
|
|
219
233
|
* A previous result id in a workspace pull request.
|
|
220
234
|
*
|
|
221
|
-
* @since 3.17.0
|
|
235
|
+
* @since 3.17.0
|
|
222
236
|
*/
|
|
223
237
|
export declare type PreviousResultId = {
|
|
224
238
|
/**
|
|
@@ -234,9 +248,9 @@ export declare type PreviousResultId = {
|
|
|
234
248
|
/**
|
|
235
249
|
* Parameters of the workspace diagnostic request.
|
|
236
250
|
*
|
|
237
|
-
* @since 3.17.0
|
|
251
|
+
* @since 3.17.0
|
|
238
252
|
*/
|
|
239
|
-
export
|
|
253
|
+
export declare type WorkspaceDiagnosticParams = WorkDoneProgressParams & PartialResultParams & {
|
|
240
254
|
/**
|
|
241
255
|
* The additional identifier provided during registration.
|
|
242
256
|
*/
|
|
@@ -246,13 +260,13 @@ export interface WorkspaceDiagnosticParams extends WorkDoneProgressParams, Parti
|
|
|
246
260
|
* previous result ids.
|
|
247
261
|
*/
|
|
248
262
|
previousResultIds: PreviousResultId[];
|
|
249
|
-
}
|
|
263
|
+
};
|
|
250
264
|
/**
|
|
251
265
|
* A full document diagnostic report for a workspace diagnostic result.
|
|
252
266
|
*
|
|
253
|
-
* @since 3.17.0
|
|
267
|
+
* @since 3.17.0
|
|
254
268
|
*/
|
|
255
|
-
export
|
|
269
|
+
export declare type WorkspaceFullDocumentDiagnosticReport = FullDocumentDiagnosticReport & {
|
|
256
270
|
/**
|
|
257
271
|
* The URI for which diagnostic information is reported.
|
|
258
272
|
*/
|
|
@@ -262,13 +276,13 @@ export interface WorkspaceFullDocumentDiagnosticReport extends FullDocumentDiagn
|
|
|
262
276
|
* If the document is not marked as open `null` can be provided.
|
|
263
277
|
*/
|
|
264
278
|
version: integer | null;
|
|
265
|
-
}
|
|
279
|
+
};
|
|
266
280
|
/**
|
|
267
281
|
* An unchanged document diagnostic report for a workspace diagnostic result.
|
|
268
282
|
*
|
|
269
|
-
* @since 3.17.0
|
|
283
|
+
* @since 3.17.0
|
|
270
284
|
*/
|
|
271
|
-
export
|
|
285
|
+
export declare type WorkspaceUnchangedDocumentDiagnosticReport = UnchangedDocumentDiagnosticReport & {
|
|
272
286
|
/**
|
|
273
287
|
* The URI for which diagnostic information is reported.
|
|
274
288
|
*/
|
|
@@ -278,33 +292,33 @@ export interface WorkspaceUnchangedDocumentDiagnosticReport extends UnchangedDoc
|
|
|
278
292
|
* If the document is not marked as open `null` can be provided.
|
|
279
293
|
*/
|
|
280
294
|
version: integer | null;
|
|
281
|
-
}
|
|
295
|
+
};
|
|
282
296
|
/**
|
|
283
297
|
* A workspace diagnostic document report.
|
|
284
298
|
*
|
|
285
|
-
* @since 3.17.0
|
|
299
|
+
* @since 3.17.0
|
|
286
300
|
*/
|
|
287
301
|
export declare type WorkspaceDocumentDiagnosticReport = WorkspaceFullDocumentDiagnosticReport | WorkspaceUnchangedDocumentDiagnosticReport;
|
|
288
302
|
/**
|
|
289
303
|
* A workspace diagnostic report.
|
|
290
304
|
*
|
|
291
|
-
* @since 3.17.0
|
|
305
|
+
* @since 3.17.0
|
|
292
306
|
*/
|
|
293
|
-
export
|
|
307
|
+
export declare type WorkspaceDiagnosticReport = {
|
|
294
308
|
items: WorkspaceDocumentDiagnosticReport[];
|
|
295
|
-
}
|
|
309
|
+
};
|
|
296
310
|
/**
|
|
297
311
|
* A partial result for a workspace diagnostic report.
|
|
298
312
|
*
|
|
299
|
-
* @since 3.17.0
|
|
313
|
+
* @since 3.17.0
|
|
300
314
|
*/
|
|
301
|
-
export
|
|
315
|
+
export declare type WorkspaceDiagnosticReportPartialResult = {
|
|
302
316
|
items: WorkspaceDocumentDiagnosticReport[];
|
|
303
|
-
}
|
|
317
|
+
};
|
|
304
318
|
/**
|
|
305
319
|
* The workspace diagnostic request definition.
|
|
306
320
|
*
|
|
307
|
-
* @since 3.17.0
|
|
321
|
+
* @since 3.17.0
|
|
308
322
|
*/
|
|
309
323
|
export declare namespace WorkspaceDiagnosticRequest {
|
|
310
324
|
const method: 'workspace/diagnostic';
|
|
@@ -315,7 +329,7 @@ export declare namespace WorkspaceDiagnosticRequest {
|
|
|
315
329
|
/**
|
|
316
330
|
* The diagnostic refresh request definition.
|
|
317
331
|
*
|
|
318
|
-
* @since 3.17.0
|
|
332
|
+
* @since 3.17.0
|
|
319
333
|
*/
|
|
320
334
|
export declare namespace DiagnosticRefreshRequest {
|
|
321
335
|
const method: `workspace/diagnostic/refresh`;
|
|
@@ -9,7 +9,7 @@ const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
|
9
9
|
const Is = require("./utils/is");
|
|
10
10
|
const messages_1 = require("./messages");
|
|
11
11
|
/**
|
|
12
|
-
* @since 3.17.0
|
|
12
|
+
* @since 3.17.0
|
|
13
13
|
*/
|
|
14
14
|
var DiagnosticServerCancellationData;
|
|
15
15
|
(function (DiagnosticServerCancellationData) {
|
|
@@ -22,7 +22,7 @@ var DiagnosticServerCancellationData;
|
|
|
22
22
|
/**
|
|
23
23
|
* The document diagnostic report kinds.
|
|
24
24
|
*
|
|
25
|
-
* @since 3.17.0
|
|
25
|
+
* @since 3.17.0
|
|
26
26
|
*/
|
|
27
27
|
var DocumentDiagnosticReportKind;
|
|
28
28
|
(function (DocumentDiagnosticReportKind) {
|
|
@@ -30,17 +30,17 @@ var DocumentDiagnosticReportKind;
|
|
|
30
30
|
* A diagnostic report with a full
|
|
31
31
|
* set of problems.
|
|
32
32
|
*/
|
|
33
|
-
DocumentDiagnosticReportKind
|
|
33
|
+
DocumentDiagnosticReportKind.Full = 'full';
|
|
34
34
|
/**
|
|
35
35
|
* A report indicating that the last
|
|
36
36
|
* returned report is still accurate.
|
|
37
37
|
*/
|
|
38
|
-
DocumentDiagnosticReportKind
|
|
38
|
+
DocumentDiagnosticReportKind.Unchanged = 'unchanged';
|
|
39
39
|
})(DocumentDiagnosticReportKind = exports.DocumentDiagnosticReportKind || (exports.DocumentDiagnosticReportKind = {}));
|
|
40
40
|
/**
|
|
41
41
|
* The document diagnostic request definition.
|
|
42
42
|
*
|
|
43
|
-
* @since 3.17.0
|
|
43
|
+
* @since 3.17.0
|
|
44
44
|
*/
|
|
45
45
|
var DocumentDiagnosticRequest;
|
|
46
46
|
(function (DocumentDiagnosticRequest) {
|
|
@@ -51,7 +51,7 @@ var DocumentDiagnosticRequest;
|
|
|
51
51
|
/**
|
|
52
52
|
* The workspace diagnostic request definition.
|
|
53
53
|
*
|
|
54
|
-
* @since 3.17.0
|
|
54
|
+
* @since 3.17.0
|
|
55
55
|
*/
|
|
56
56
|
var WorkspaceDiagnosticRequest;
|
|
57
57
|
(function (WorkspaceDiagnosticRequest) {
|
|
@@ -62,11 +62,11 @@ var WorkspaceDiagnosticRequest;
|
|
|
62
62
|
/**
|
|
63
63
|
* The diagnostic refresh request definition.
|
|
64
64
|
*
|
|
65
|
-
* @since 3.17.0
|
|
65
|
+
* @since 3.17.0
|
|
66
66
|
*/
|
|
67
67
|
var DiagnosticRefreshRequest;
|
|
68
68
|
(function (DiagnosticRefreshRequest) {
|
|
69
69
|
DiagnosticRefreshRequest.method = `workspace/diagnostic/refresh`;
|
|
70
70
|
DiagnosticRefreshRequest.type = new messages_1.ProtocolRequestType0(DiagnosticRefreshRequest.method);
|
|
71
71
|
})(DiagnosticRefreshRequest = exports.DiagnosticRefreshRequest || (exports.DiagnosticRefreshRequest = {}));
|
|
72
|
-
//# sourceMappingURL=
|
|
72
|
+
//# sourceMappingURL=protocol.diagnostic.js.map
|
|
@@ -1,45 +1,58 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
|
-
import { TextDocumentIdentifier, uinteger, FoldingRange } from 'vscode-languageserver-types';
|
|
2
|
+
import { TextDocumentIdentifier, uinteger, FoldingRange, FoldingRangeKind } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
export interface FoldingRangeClientCapabilities {
|
|
6
6
|
/**
|
|
7
|
-
* Whether implementation supports dynamic registration for folding range
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Whether implementation supports dynamic registration for folding range
|
|
8
|
+
* providers. If this is set to `true` the client supports the new
|
|
9
|
+
* `FoldingRangeRegistrationOptions` return value for the corresponding
|
|
10
|
+
* server capability as well.
|
|
10
11
|
*/
|
|
11
12
|
dynamicRegistration?: boolean;
|
|
12
13
|
/**
|
|
13
|
-
* The maximum number of folding ranges that the client prefers to receive
|
|
14
|
-
* hint, servers are free to follow the
|
|
14
|
+
* The maximum number of folding ranges that the client prefers to receive
|
|
15
|
+
* per document. The value serves as a hint, servers are free to follow the
|
|
16
|
+
* limit.
|
|
15
17
|
*/
|
|
16
18
|
rangeLimit?: uinteger;
|
|
17
19
|
/**
|
|
18
|
-
* If set, the client signals that it only supports folding complete lines.
|
|
19
|
-
* ignore specified `startCharacter` and `endCharacter`
|
|
20
|
+
* If set, the client signals that it only supports folding complete lines.
|
|
21
|
+
* If set, client will ignore specified `startCharacter` and `endCharacter`
|
|
22
|
+
* properties in a FoldingRange.
|
|
20
23
|
*/
|
|
21
24
|
lineFoldingOnly?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface FoldingRangeOptions extends WorkDoneProgressOptions {
|
|
24
|
-
}
|
|
25
|
-
export interface FoldingRangeRegistrationOptions extends TextDocumentRegistrationOptions, FoldingRangeOptions, StaticRegistrationOptions {
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Enum of known range kinds
|
|
29
|
-
*/
|
|
30
|
-
export declare enum FoldingRangeKind {
|
|
31
25
|
/**
|
|
32
|
-
*
|
|
26
|
+
* Specific options for the folding range kind.
|
|
27
|
+
*
|
|
28
|
+
* @since 3.17.0
|
|
33
29
|
*/
|
|
34
|
-
|
|
30
|
+
foldingRangeKind?: {
|
|
31
|
+
/**
|
|
32
|
+
* The folding range kind values the client supports. When this
|
|
33
|
+
* property exists the client also guarantees that it will
|
|
34
|
+
* handle values outside its set gracefully and falls back
|
|
35
|
+
* to a default value when unknown.
|
|
36
|
+
*/
|
|
37
|
+
valueSet?: FoldingRangeKind[];
|
|
38
|
+
};
|
|
35
39
|
/**
|
|
36
|
-
*
|
|
40
|
+
* Specific options for the folding range.
|
|
41
|
+
* @since 3.17.0
|
|
37
42
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
foldingRange?: {
|
|
44
|
+
/**
|
|
45
|
+
* If set, the client signals that it supports setting collapsedText on
|
|
46
|
+
* folding ranges to display custom labels instead of the default text.
|
|
47
|
+
*
|
|
48
|
+
* @since 3.17.0
|
|
49
|
+
*/
|
|
50
|
+
collapsedText?: boolean;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export interface FoldingRangeOptions extends WorkDoneProgressOptions {
|
|
54
|
+
}
|
|
55
|
+
export interface FoldingRangeRegistrationOptions extends TextDocumentRegistrationOptions, FoldingRangeOptions, StaticRegistrationOptions {
|
|
43
56
|
}
|
|
44
57
|
/**
|
|
45
58
|
* Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
|
|
@@ -58,6 +71,6 @@ export interface FoldingRangeParams extends WorkDoneProgressParams, PartialResul
|
|
|
58
71
|
*/
|
|
59
72
|
export declare namespace FoldingRangeRequest {
|
|
60
73
|
const method: 'textDocument/foldingRange';
|
|
61
|
-
const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[],
|
|
74
|
+
const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[], void, FoldingRangeRegistrationOptions>;
|
|
62
75
|
type HandlerSignature = RequestHandler<FoldingRangeParams, FoldingRange[] | null, void>;
|
|
63
76
|
}
|
|
@@ -4,26 +4,8 @@
|
|
|
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 });
|
|
7
|
-
exports.FoldingRangeRequest =
|
|
7
|
+
exports.FoldingRangeRequest = void 0;
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
|
-
/**
|
|
10
|
-
* Enum of known range kinds
|
|
11
|
-
*/
|
|
12
|
-
var FoldingRangeKind;
|
|
13
|
-
(function (FoldingRangeKind) {
|
|
14
|
-
/**
|
|
15
|
-
* Folding range for a comment
|
|
16
|
-
*/
|
|
17
|
-
FoldingRangeKind["Comment"] = "comment";
|
|
18
|
-
/**
|
|
19
|
-
* Folding range for a imports or includes
|
|
20
|
-
*/
|
|
21
|
-
FoldingRangeKind["Imports"] = "imports";
|
|
22
|
-
/**
|
|
23
|
-
* Folding range for a region (e.g. `#region`)
|
|
24
|
-
*/
|
|
25
|
-
FoldingRangeKind["Region"] = "region";
|
|
26
|
-
})(FoldingRangeKind = exports.FoldingRangeKind || (exports.FoldingRangeKind = {}));
|
|
27
9
|
/**
|
|
28
10
|
* A request to provide folding ranges in a document. The request's
|
|
29
11
|
* parameter is of type [FoldingRangeParams](#FoldingRangeParams), the
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Definition, DefinitionLink, Location, LocationLink } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.6.0
|
|
7
7
|
*/
|
|
@@ -27,7 +27,7 @@ export interface ImplementationParams extends TextDocumentPositionParams, WorkDo
|
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* A request to resolve the implementation locations of a symbol at a given text
|
|
30
|
-
* document position. The request's parameter is of type [
|
|
30
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
31
31
|
* (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
|
|
32
32
|
* Thenable that resolves to such.
|
|
33
33
|
*/
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.ImplementationRequest = void 0;
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
|
-
// @ts-ignore: to avoid inlining
|
|
9
|
+
// @ts-ignore: to avoid inlining LocationLink as dynamic import
|
|
10
10
|
let __noDynamicImport;
|
|
11
11
|
/**
|
|
12
12
|
* A request to resolve the implementation locations of a symbol at a given text
|
|
13
|
-
* document position. The request's parameter is of type [
|
|
13
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
14
14
|
* (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
|
|
15
15
|
* Thenable that resolves to such.
|
|
16
16
|
*/
|