vscode-languageserver-protocol 3.15.0-next.2 → 3.15.0-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License.txt +11 -11
- package/README.md +16 -16
- package/lib/main.d.ts +183 -146
- package/lib/main.js +73 -43
- package/lib/protocol.callHierarchy.proposed.d.ts +108 -0
- package/lib/protocol.callHierarchy.proposed.js +33 -0
- package/lib/protocol.colorProvider.d.ts +73 -73
- package/lib/protocol.colorProvider.js +27 -27
- package/lib/protocol.configuration.d.ts +42 -42
- package/lib/protocol.configuration.js +20 -20
- package/lib/protocol.d.ts +1696 -1677
- package/lib/protocol.declaration.d.ts +42 -42
- package/lib/protocol.declaration.js +20 -20
- package/lib/protocol.foldingRange.d.ts +101 -101
- package/lib/protocol.foldingRange.js +35 -35
- package/lib/protocol.implementation.d.ts +41 -41
- package/lib/protocol.implementation.js +19 -19
- package/lib/protocol.js +545 -546
- package/lib/protocol.progress.proposed.d.ts +116 -0
- package/lib/protocol.progress.proposed.js +39 -0
- package/lib/protocol.selectionRange.d.ts +52 -84
- package/lib/protocol.selectionRange.js +17 -37
- package/lib/protocol.typeDefinition.d.ts +41 -41
- package/lib/protocol.typeDefinition.js +19 -19
- package/lib/protocol.workspaceFolders.d.ts +91 -91
- package/lib/protocol.workspaceFolders.js +22 -22
- package/lib/utils/is.d.ts +9 -9
- package/lib/utils/is.js +42 -42
- package/package.json +30 -30
- package/thirdpartynotices.txt +30 -30
package/lib/protocol.js
CHANGED
|
@@ -1,546 +1,545 @@
|
|
|
1
|
-
/* --------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
* ------------------------------------------------------------------------------------------ */
|
|
5
|
-
'use strict';
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
const Is = require("./utils/is");
|
|
8
|
-
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
9
|
-
const protocol_implementation_1 = require("./protocol.implementation");
|
|
10
|
-
exports.ImplementationRequest = protocol_implementation_1.ImplementationRequest;
|
|
11
|
-
const protocol_typeDefinition_1 = require("./protocol.typeDefinition");
|
|
12
|
-
exports.TypeDefinitionRequest = protocol_typeDefinition_1.TypeDefinitionRequest;
|
|
13
|
-
const protocol_workspaceFolders_1 = require("./protocol.workspaceFolders");
|
|
14
|
-
exports.WorkspaceFoldersRequest = protocol_workspaceFolders_1.WorkspaceFoldersRequest;
|
|
15
|
-
exports.DidChangeWorkspaceFoldersNotification = protocol_workspaceFolders_1.DidChangeWorkspaceFoldersNotification;
|
|
16
|
-
const protocol_configuration_1 = require("./protocol.configuration");
|
|
17
|
-
exports.ConfigurationRequest = protocol_configuration_1.ConfigurationRequest;
|
|
18
|
-
const protocol_colorProvider_1 = require("./protocol.colorProvider");
|
|
19
|
-
exports.DocumentColorRequest = protocol_colorProvider_1.DocumentColorRequest;
|
|
20
|
-
exports.ColorPresentationRequest = protocol_colorProvider_1.ColorPresentationRequest;
|
|
21
|
-
const protocol_foldingRange_1 = require("./protocol.foldingRange");
|
|
22
|
-
exports.FoldingRangeRequest = protocol_foldingRange_1.FoldingRangeRequest;
|
|
23
|
-
const protocol_declaration_1 = require("./protocol.declaration");
|
|
24
|
-
exports.DeclarationRequest = protocol_declaration_1.DeclarationRequest;
|
|
25
|
-
const protocol_selectionRange_1 = require("./protocol.selectionRange");
|
|
26
|
-
exports.SelectionRangeRequest = protocol_selectionRange_1.SelectionRangeRequest;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
*
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
*
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
* If
|
|
83
|
-
*
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
*
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
*
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
*
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
*
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
*
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
*
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
*
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
*
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
* The document
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
*
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
*
|
|
257
|
-
* the document
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
*
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
*
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
*
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
*
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
*
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
*
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
*
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
*
|
|
384
|
-
*
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
*
|
|
408
|
-
*
|
|
409
|
-
*
|
|
410
|
-
*
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
*
|
|
419
|
-
*
|
|
420
|
-
*
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
* (#
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
*
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
*
|
|
452
|
-
*
|
|
453
|
-
*
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
*
|
|
525
|
-
*
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
*
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
})(ApplyWorkspaceEditRequest = exports.ApplyWorkspaceEditRequest || (exports.ApplyWorkspaceEditRequest = {}));
|
|
1
|
+
/* --------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
+
* ------------------------------------------------------------------------------------------ */
|
|
5
|
+
'use strict';
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const Is = require("./utils/is");
|
|
8
|
+
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
9
|
+
const protocol_implementation_1 = require("./protocol.implementation");
|
|
10
|
+
exports.ImplementationRequest = protocol_implementation_1.ImplementationRequest;
|
|
11
|
+
const protocol_typeDefinition_1 = require("./protocol.typeDefinition");
|
|
12
|
+
exports.TypeDefinitionRequest = protocol_typeDefinition_1.TypeDefinitionRequest;
|
|
13
|
+
const protocol_workspaceFolders_1 = require("./protocol.workspaceFolders");
|
|
14
|
+
exports.WorkspaceFoldersRequest = protocol_workspaceFolders_1.WorkspaceFoldersRequest;
|
|
15
|
+
exports.DidChangeWorkspaceFoldersNotification = protocol_workspaceFolders_1.DidChangeWorkspaceFoldersNotification;
|
|
16
|
+
const protocol_configuration_1 = require("./protocol.configuration");
|
|
17
|
+
exports.ConfigurationRequest = protocol_configuration_1.ConfigurationRequest;
|
|
18
|
+
const protocol_colorProvider_1 = require("./protocol.colorProvider");
|
|
19
|
+
exports.DocumentColorRequest = protocol_colorProvider_1.DocumentColorRequest;
|
|
20
|
+
exports.ColorPresentationRequest = protocol_colorProvider_1.ColorPresentationRequest;
|
|
21
|
+
const protocol_foldingRange_1 = require("./protocol.foldingRange");
|
|
22
|
+
exports.FoldingRangeRequest = protocol_foldingRange_1.FoldingRangeRequest;
|
|
23
|
+
const protocol_declaration_1 = require("./protocol.declaration");
|
|
24
|
+
exports.DeclarationRequest = protocol_declaration_1.DeclarationRequest;
|
|
25
|
+
const protocol_selectionRange_1 = require("./protocol.selectionRange");
|
|
26
|
+
exports.SelectionRangeRequest = protocol_selectionRange_1.SelectionRangeRequest;
|
|
27
|
+
// @ts-ignore: to avoid inlining LocatioLink as dynamic import
|
|
28
|
+
let __noDynamicImport;
|
|
29
|
+
var DocumentFilter;
|
|
30
|
+
(function (DocumentFilter) {
|
|
31
|
+
function is(value) {
|
|
32
|
+
let candidate = value;
|
|
33
|
+
return Is.string(candidate.language) || Is.string(candidate.scheme) || Is.string(candidate.pattern);
|
|
34
|
+
}
|
|
35
|
+
DocumentFilter.is = is;
|
|
36
|
+
})(DocumentFilter = exports.DocumentFilter || (exports.DocumentFilter = {}));
|
|
37
|
+
/**
|
|
38
|
+
* The `client/registerCapability` request is sent from the server to the client to register a new capability
|
|
39
|
+
* handler on the client side.
|
|
40
|
+
*/
|
|
41
|
+
var RegistrationRequest;
|
|
42
|
+
(function (RegistrationRequest) {
|
|
43
|
+
RegistrationRequest.type = new vscode_jsonrpc_1.RequestType('client/registerCapability');
|
|
44
|
+
})(RegistrationRequest = exports.RegistrationRequest || (exports.RegistrationRequest = {}));
|
|
45
|
+
/**
|
|
46
|
+
* The `client/unregisterCapability` request is sent from the server to the client to unregister a previously registered capability
|
|
47
|
+
* handler on the client side.
|
|
48
|
+
*/
|
|
49
|
+
var UnregistrationRequest;
|
|
50
|
+
(function (UnregistrationRequest) {
|
|
51
|
+
UnregistrationRequest.type = new vscode_jsonrpc_1.RequestType('client/unregisterCapability');
|
|
52
|
+
})(UnregistrationRequest = exports.UnregistrationRequest || (exports.UnregistrationRequest = {}));
|
|
53
|
+
var ResourceOperationKind;
|
|
54
|
+
(function (ResourceOperationKind) {
|
|
55
|
+
/**
|
|
56
|
+
* Supports creating new files and folders.
|
|
57
|
+
*/
|
|
58
|
+
ResourceOperationKind.Create = 'create';
|
|
59
|
+
/**
|
|
60
|
+
* Supports renaming existing files and folders.
|
|
61
|
+
*/
|
|
62
|
+
ResourceOperationKind.Rename = 'rename';
|
|
63
|
+
/**
|
|
64
|
+
* Supports deleting existing files and folders.
|
|
65
|
+
*/
|
|
66
|
+
ResourceOperationKind.Delete = 'delete';
|
|
67
|
+
})(ResourceOperationKind = exports.ResourceOperationKind || (exports.ResourceOperationKind = {}));
|
|
68
|
+
var FailureHandlingKind;
|
|
69
|
+
(function (FailureHandlingKind) {
|
|
70
|
+
/**
|
|
71
|
+
* Applying the workspace change is simply aborted if one of the changes provided
|
|
72
|
+
* fails. All operations executed before the failing operation stay executed.
|
|
73
|
+
*/
|
|
74
|
+
FailureHandlingKind.Abort = 'abort';
|
|
75
|
+
/**
|
|
76
|
+
* All operations are executed transactional. That means they either all
|
|
77
|
+
* succeed or no changes at all are applied to the workspace.
|
|
78
|
+
*/
|
|
79
|
+
FailureHandlingKind.Transactional = 'transactional';
|
|
80
|
+
/**
|
|
81
|
+
* If the workspace edit contains only textual file changes they are executed transactional.
|
|
82
|
+
* If resource changes (create, rename or delete file) are part of the change the failure
|
|
83
|
+
* handling startegy is abort.
|
|
84
|
+
*/
|
|
85
|
+
FailureHandlingKind.TextOnlyTransactional = 'textOnlyTransactional';
|
|
86
|
+
/**
|
|
87
|
+
* The client tries to undo the operations already executed. But there is no
|
|
88
|
+
* guaruntee that this is succeeding.
|
|
89
|
+
*/
|
|
90
|
+
FailureHandlingKind.Undo = 'undo';
|
|
91
|
+
})(FailureHandlingKind = exports.FailureHandlingKind || (exports.FailureHandlingKind = {}));
|
|
92
|
+
/**
|
|
93
|
+
* Defines how the host (editor) should sync
|
|
94
|
+
* document changes to the language server.
|
|
95
|
+
*/
|
|
96
|
+
var TextDocumentSyncKind;
|
|
97
|
+
(function (TextDocumentSyncKind) {
|
|
98
|
+
/**
|
|
99
|
+
* Documents should not be synced at all.
|
|
100
|
+
*/
|
|
101
|
+
TextDocumentSyncKind.None = 0;
|
|
102
|
+
/**
|
|
103
|
+
* Documents are synced by always sending the full content
|
|
104
|
+
* of the document.
|
|
105
|
+
*/
|
|
106
|
+
TextDocumentSyncKind.Full = 1;
|
|
107
|
+
/**
|
|
108
|
+
* Documents are synced by sending the full content on open.
|
|
109
|
+
* After that only incremental updates to the document are
|
|
110
|
+
* send.
|
|
111
|
+
*/
|
|
112
|
+
TextDocumentSyncKind.Incremental = 2;
|
|
113
|
+
})(TextDocumentSyncKind = exports.TextDocumentSyncKind || (exports.TextDocumentSyncKind = {}));
|
|
114
|
+
/**
|
|
115
|
+
* The initialize request is sent from the client to the server.
|
|
116
|
+
* It is sent once as the request after starting up the server.
|
|
117
|
+
* The requests parameter is of type [InitializeParams](#InitializeParams)
|
|
118
|
+
* the response if of type [InitializeResult](#InitializeResult) of a Thenable that
|
|
119
|
+
* resolves to such.
|
|
120
|
+
*/
|
|
121
|
+
var InitializeRequest;
|
|
122
|
+
(function (InitializeRequest) {
|
|
123
|
+
InitializeRequest.type = new vscode_jsonrpc_1.RequestType('initialize');
|
|
124
|
+
})(InitializeRequest = exports.InitializeRequest || (exports.InitializeRequest = {}));
|
|
125
|
+
/**
|
|
126
|
+
* Known error codes for an `InitializeError`;
|
|
127
|
+
*/
|
|
128
|
+
var InitializeError;
|
|
129
|
+
(function (InitializeError) {
|
|
130
|
+
/**
|
|
131
|
+
* If the protocol version provided by the client can't be handled by the server.
|
|
132
|
+
* @deprecated This initialize error got replaced by client capabilities. There is
|
|
133
|
+
* no version handshake in version 3.0x
|
|
134
|
+
*/
|
|
135
|
+
InitializeError.unknownProtocolVersion = 1;
|
|
136
|
+
})(InitializeError = exports.InitializeError || (exports.InitializeError = {}));
|
|
137
|
+
/**
|
|
138
|
+
* The intialized notification is sent from the client to the
|
|
139
|
+
* server after the client is fully initialized and the server
|
|
140
|
+
* is allowed to send requests from the server to the client.
|
|
141
|
+
*/
|
|
142
|
+
var InitializedNotification;
|
|
143
|
+
(function (InitializedNotification) {
|
|
144
|
+
InitializedNotification.type = new vscode_jsonrpc_1.NotificationType('initialized');
|
|
145
|
+
})(InitializedNotification = exports.InitializedNotification || (exports.InitializedNotification = {}));
|
|
146
|
+
//---- Shutdown Method ----
|
|
147
|
+
/**
|
|
148
|
+
* A shutdown request is sent from the client to the server.
|
|
149
|
+
* It is sent once when the client decides to shutdown the
|
|
150
|
+
* server. The only notification that is sent after a shutdown request
|
|
151
|
+
* is the exit event.
|
|
152
|
+
*/
|
|
153
|
+
var ShutdownRequest;
|
|
154
|
+
(function (ShutdownRequest) {
|
|
155
|
+
ShutdownRequest.type = new vscode_jsonrpc_1.RequestType0('shutdown');
|
|
156
|
+
})(ShutdownRequest = exports.ShutdownRequest || (exports.ShutdownRequest = {}));
|
|
157
|
+
//---- Exit Notification ----
|
|
158
|
+
/**
|
|
159
|
+
* The exit event is sent from the client to the server to
|
|
160
|
+
* ask the server to exit its process.
|
|
161
|
+
*/
|
|
162
|
+
var ExitNotification;
|
|
163
|
+
(function (ExitNotification) {
|
|
164
|
+
ExitNotification.type = new vscode_jsonrpc_1.NotificationType0('exit');
|
|
165
|
+
})(ExitNotification = exports.ExitNotification || (exports.ExitNotification = {}));
|
|
166
|
+
//---- Configuration notification ----
|
|
167
|
+
/**
|
|
168
|
+
* The configuration change notification is sent from the client to the server
|
|
169
|
+
* when the client's configuration has changed. The notification contains
|
|
170
|
+
* the changed configuration as defined by the language client.
|
|
171
|
+
*/
|
|
172
|
+
var DidChangeConfigurationNotification;
|
|
173
|
+
(function (DidChangeConfigurationNotification) {
|
|
174
|
+
DidChangeConfigurationNotification.type = new vscode_jsonrpc_1.NotificationType('workspace/didChangeConfiguration');
|
|
175
|
+
})(DidChangeConfigurationNotification = exports.DidChangeConfigurationNotification || (exports.DidChangeConfigurationNotification = {}));
|
|
176
|
+
//---- Message show and log notifications ----
|
|
177
|
+
/**
|
|
178
|
+
* The message type
|
|
179
|
+
*/
|
|
180
|
+
var MessageType;
|
|
181
|
+
(function (MessageType) {
|
|
182
|
+
/**
|
|
183
|
+
* An error message.
|
|
184
|
+
*/
|
|
185
|
+
MessageType.Error = 1;
|
|
186
|
+
/**
|
|
187
|
+
* A warning message.
|
|
188
|
+
*/
|
|
189
|
+
MessageType.Warning = 2;
|
|
190
|
+
/**
|
|
191
|
+
* An information message.
|
|
192
|
+
*/
|
|
193
|
+
MessageType.Info = 3;
|
|
194
|
+
/**
|
|
195
|
+
* A log message.
|
|
196
|
+
*/
|
|
197
|
+
MessageType.Log = 4;
|
|
198
|
+
})(MessageType = exports.MessageType || (exports.MessageType = {}));
|
|
199
|
+
/**
|
|
200
|
+
* The show message notification is sent from a server to a client to ask
|
|
201
|
+
* the client to display a particular message in the user interface.
|
|
202
|
+
*/
|
|
203
|
+
var ShowMessageNotification;
|
|
204
|
+
(function (ShowMessageNotification) {
|
|
205
|
+
ShowMessageNotification.type = new vscode_jsonrpc_1.NotificationType('window/showMessage');
|
|
206
|
+
})(ShowMessageNotification = exports.ShowMessageNotification || (exports.ShowMessageNotification = {}));
|
|
207
|
+
/**
|
|
208
|
+
* The show message request is sent from the server to the client to show a message
|
|
209
|
+
* and a set of options actions to the user.
|
|
210
|
+
*/
|
|
211
|
+
var ShowMessageRequest;
|
|
212
|
+
(function (ShowMessageRequest) {
|
|
213
|
+
ShowMessageRequest.type = new vscode_jsonrpc_1.RequestType('window/showMessageRequest');
|
|
214
|
+
})(ShowMessageRequest = exports.ShowMessageRequest || (exports.ShowMessageRequest = {}));
|
|
215
|
+
/**
|
|
216
|
+
* The log message notification is sent from the server to the client to ask
|
|
217
|
+
* the client to log a particular message.
|
|
218
|
+
*/
|
|
219
|
+
var LogMessageNotification;
|
|
220
|
+
(function (LogMessageNotification) {
|
|
221
|
+
LogMessageNotification.type = new vscode_jsonrpc_1.NotificationType('window/logMessage');
|
|
222
|
+
})(LogMessageNotification = exports.LogMessageNotification || (exports.LogMessageNotification = {}));
|
|
223
|
+
//---- Telemetry notification
|
|
224
|
+
/**
|
|
225
|
+
* The telemetry event notification is sent from the server to the client to ask
|
|
226
|
+
* the client to log telemetry data.
|
|
227
|
+
*/
|
|
228
|
+
var TelemetryEventNotification;
|
|
229
|
+
(function (TelemetryEventNotification) {
|
|
230
|
+
TelemetryEventNotification.type = new vscode_jsonrpc_1.NotificationType('telemetry/event');
|
|
231
|
+
})(TelemetryEventNotification = exports.TelemetryEventNotification || (exports.TelemetryEventNotification = {}));
|
|
232
|
+
/**
|
|
233
|
+
* The document open notification is sent from the client to the server to signal
|
|
234
|
+
* newly opened text documents. The document's truth is now managed by the client
|
|
235
|
+
* and the server must not try to read the document's truth using the document's
|
|
236
|
+
* uri. Open in this sense means it is managed by the client. It doesn't necessarily
|
|
237
|
+
* mean that its content is presented in an editor. An open notification must not
|
|
238
|
+
* be sent more than once without a corresponding close notification send before.
|
|
239
|
+
* This means open and close notification must be balanced and the max open count
|
|
240
|
+
* is one.
|
|
241
|
+
*/
|
|
242
|
+
var DidOpenTextDocumentNotification;
|
|
243
|
+
(function (DidOpenTextDocumentNotification) {
|
|
244
|
+
DidOpenTextDocumentNotification.type = new vscode_jsonrpc_1.NotificationType('textDocument/didOpen');
|
|
245
|
+
})(DidOpenTextDocumentNotification = exports.DidOpenTextDocumentNotification || (exports.DidOpenTextDocumentNotification = {}));
|
|
246
|
+
/**
|
|
247
|
+
* The document change notification is sent from the client to the server to signal
|
|
248
|
+
* changes to a text document.
|
|
249
|
+
*/
|
|
250
|
+
var DidChangeTextDocumentNotification;
|
|
251
|
+
(function (DidChangeTextDocumentNotification) {
|
|
252
|
+
DidChangeTextDocumentNotification.type = new vscode_jsonrpc_1.NotificationType('textDocument/didChange');
|
|
253
|
+
})(DidChangeTextDocumentNotification = exports.DidChangeTextDocumentNotification || (exports.DidChangeTextDocumentNotification = {}));
|
|
254
|
+
/**
|
|
255
|
+
* The document close notification is sent from the client to the server when
|
|
256
|
+
* the document got closed in the client. The document's truth now exists where
|
|
257
|
+
* the document's uri points to (e.g. if the document's uri is a file uri the
|
|
258
|
+
* truth now exists on disk). As with the open notification the close notification
|
|
259
|
+
* is about managing the document's content. Receiving a close notification
|
|
260
|
+
* doesn't mean that the document was open in an editor before. A close
|
|
261
|
+
* notification requires a previous open notification to be sent.
|
|
262
|
+
*/
|
|
263
|
+
var DidCloseTextDocumentNotification;
|
|
264
|
+
(function (DidCloseTextDocumentNotification) {
|
|
265
|
+
DidCloseTextDocumentNotification.type = new vscode_jsonrpc_1.NotificationType('textDocument/didClose');
|
|
266
|
+
})(DidCloseTextDocumentNotification = exports.DidCloseTextDocumentNotification || (exports.DidCloseTextDocumentNotification = {}));
|
|
267
|
+
/**
|
|
268
|
+
* The document save notification is sent from the client to the server when
|
|
269
|
+
* the document got saved in the client.
|
|
270
|
+
*/
|
|
271
|
+
var DidSaveTextDocumentNotification;
|
|
272
|
+
(function (DidSaveTextDocumentNotification) {
|
|
273
|
+
DidSaveTextDocumentNotification.type = new vscode_jsonrpc_1.NotificationType('textDocument/didSave');
|
|
274
|
+
})(DidSaveTextDocumentNotification = exports.DidSaveTextDocumentNotification || (exports.DidSaveTextDocumentNotification = {}));
|
|
275
|
+
/**
|
|
276
|
+
* A document will save notification is sent from the client to the server before
|
|
277
|
+
* the document is actually saved.
|
|
278
|
+
*/
|
|
279
|
+
var WillSaveTextDocumentNotification;
|
|
280
|
+
(function (WillSaveTextDocumentNotification) {
|
|
281
|
+
WillSaveTextDocumentNotification.type = new vscode_jsonrpc_1.NotificationType('textDocument/willSave');
|
|
282
|
+
})(WillSaveTextDocumentNotification = exports.WillSaveTextDocumentNotification || (exports.WillSaveTextDocumentNotification = {}));
|
|
283
|
+
/**
|
|
284
|
+
* A document will save request is sent from the client to the server before
|
|
285
|
+
* the document is actually saved. The request can return an array of TextEdits
|
|
286
|
+
* which will be applied to the text document before it is saved. Please note that
|
|
287
|
+
* clients might drop results if computing the text edits took too long or if a
|
|
288
|
+
* server constantly fails on this request. This is done to keep the save fast and
|
|
289
|
+
* reliable.
|
|
290
|
+
*/
|
|
291
|
+
var WillSaveTextDocumentWaitUntilRequest;
|
|
292
|
+
(function (WillSaveTextDocumentWaitUntilRequest) {
|
|
293
|
+
WillSaveTextDocumentWaitUntilRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/willSaveWaitUntil');
|
|
294
|
+
})(WillSaveTextDocumentWaitUntilRequest = exports.WillSaveTextDocumentWaitUntilRequest || (exports.WillSaveTextDocumentWaitUntilRequest = {}));
|
|
295
|
+
//---- File eventing ----
|
|
296
|
+
/**
|
|
297
|
+
* The watched files notification is sent from the client to the server when
|
|
298
|
+
* the client detects changes to file watched by the language client.
|
|
299
|
+
*/
|
|
300
|
+
var DidChangeWatchedFilesNotification;
|
|
301
|
+
(function (DidChangeWatchedFilesNotification) {
|
|
302
|
+
DidChangeWatchedFilesNotification.type = new vscode_jsonrpc_1.NotificationType('workspace/didChangeWatchedFiles');
|
|
303
|
+
})(DidChangeWatchedFilesNotification = exports.DidChangeWatchedFilesNotification || (exports.DidChangeWatchedFilesNotification = {}));
|
|
304
|
+
/**
|
|
305
|
+
* The file event type
|
|
306
|
+
*/
|
|
307
|
+
var FileChangeType;
|
|
308
|
+
(function (FileChangeType) {
|
|
309
|
+
/**
|
|
310
|
+
* The file got created.
|
|
311
|
+
*/
|
|
312
|
+
FileChangeType.Created = 1;
|
|
313
|
+
/**
|
|
314
|
+
* The file got changed.
|
|
315
|
+
*/
|
|
316
|
+
FileChangeType.Changed = 2;
|
|
317
|
+
/**
|
|
318
|
+
* The file got deleted.
|
|
319
|
+
*/
|
|
320
|
+
FileChangeType.Deleted = 3;
|
|
321
|
+
})(FileChangeType = exports.FileChangeType || (exports.FileChangeType = {}));
|
|
322
|
+
var WatchKind;
|
|
323
|
+
(function (WatchKind) {
|
|
324
|
+
/**
|
|
325
|
+
* Interested in create events.
|
|
326
|
+
*/
|
|
327
|
+
WatchKind.Create = 1;
|
|
328
|
+
/**
|
|
329
|
+
* Interested in change events
|
|
330
|
+
*/
|
|
331
|
+
WatchKind.Change = 2;
|
|
332
|
+
/**
|
|
333
|
+
* Interested in delete events
|
|
334
|
+
*/
|
|
335
|
+
WatchKind.Delete = 4;
|
|
336
|
+
})(WatchKind = exports.WatchKind || (exports.WatchKind = {}));
|
|
337
|
+
//---- Diagnostic notification ----
|
|
338
|
+
/**
|
|
339
|
+
* Diagnostics notification are sent from the server to the client to signal
|
|
340
|
+
* results of validation runs.
|
|
341
|
+
*/
|
|
342
|
+
var PublishDiagnosticsNotification;
|
|
343
|
+
(function (PublishDiagnosticsNotification) {
|
|
344
|
+
PublishDiagnosticsNotification.type = new vscode_jsonrpc_1.NotificationType('textDocument/publishDiagnostics');
|
|
345
|
+
})(PublishDiagnosticsNotification = exports.PublishDiagnosticsNotification || (exports.PublishDiagnosticsNotification = {}));
|
|
346
|
+
/**
|
|
347
|
+
* How a completion was triggered
|
|
348
|
+
*/
|
|
349
|
+
var CompletionTriggerKind;
|
|
350
|
+
(function (CompletionTriggerKind) {
|
|
351
|
+
/**
|
|
352
|
+
* Completion was triggered by typing an identifier (24x7 code
|
|
353
|
+
* complete), manual invocation (e.g Ctrl+Space) or via API.
|
|
354
|
+
*/
|
|
355
|
+
CompletionTriggerKind.Invoked = 1;
|
|
356
|
+
/**
|
|
357
|
+
* Completion was triggered by a trigger character specified by
|
|
358
|
+
* the `triggerCharacters` properties of the `CompletionRegistrationOptions`.
|
|
359
|
+
*/
|
|
360
|
+
CompletionTriggerKind.TriggerCharacter = 2;
|
|
361
|
+
/**
|
|
362
|
+
* Completion was re-triggered as current completion list is incomplete
|
|
363
|
+
*/
|
|
364
|
+
CompletionTriggerKind.TriggerForIncompleteCompletions = 3;
|
|
365
|
+
})(CompletionTriggerKind = exports.CompletionTriggerKind || (exports.CompletionTriggerKind = {}));
|
|
366
|
+
/**
|
|
367
|
+
* Request to request completion at a given text document position. The request's
|
|
368
|
+
* parameter is of type [TextDocumentPosition](#TextDocumentPosition) the response
|
|
369
|
+
* is of type [CompletionItem[]](#CompletionItem) or [CompletionList](#CompletionList)
|
|
370
|
+
* or a Thenable that resolves to such.
|
|
371
|
+
*
|
|
372
|
+
* The request can delay the computation of the [`detail`](#CompletionItem.detail)
|
|
373
|
+
* and [`documentation`](#CompletionItem.documentation) properties to the `completionItem/resolve`
|
|
374
|
+
* request. However, properties that are needed for the initial sorting and filtering, like `sortText`,
|
|
375
|
+
* `filterText`, `insertText`, and `textEdit`, must not be changed during resolve.
|
|
376
|
+
*/
|
|
377
|
+
var CompletionRequest;
|
|
378
|
+
(function (CompletionRequest) {
|
|
379
|
+
CompletionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/completion');
|
|
380
|
+
})(CompletionRequest = exports.CompletionRequest || (exports.CompletionRequest = {}));
|
|
381
|
+
/**
|
|
382
|
+
* Request to resolve additional information for a given completion item.The request's
|
|
383
|
+
* parameter is of type [CompletionItem](#CompletionItem) the response
|
|
384
|
+
* is of type [CompletionItem](#CompletionItem) or a Thenable that resolves to such.
|
|
385
|
+
*/
|
|
386
|
+
var CompletionResolveRequest;
|
|
387
|
+
(function (CompletionResolveRequest) {
|
|
388
|
+
CompletionResolveRequest.type = new vscode_jsonrpc_1.RequestType('completionItem/resolve');
|
|
389
|
+
})(CompletionResolveRequest = exports.CompletionResolveRequest || (exports.CompletionResolveRequest = {}));
|
|
390
|
+
//---- Hover Support -------------------------------
|
|
391
|
+
/**
|
|
392
|
+
* Request to request hover information at a given text document position. The request's
|
|
393
|
+
* parameter is of type [TextDocumentPosition](#TextDocumentPosition) the response is of
|
|
394
|
+
* type [Hover](#Hover) or a Thenable that resolves to such.
|
|
395
|
+
*/
|
|
396
|
+
var HoverRequest;
|
|
397
|
+
(function (HoverRequest) {
|
|
398
|
+
HoverRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/hover');
|
|
399
|
+
})(HoverRequest = exports.HoverRequest || (exports.HoverRequest = {}));
|
|
400
|
+
var SignatureHelpRequest;
|
|
401
|
+
(function (SignatureHelpRequest) {
|
|
402
|
+
SignatureHelpRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/signatureHelp');
|
|
403
|
+
})(SignatureHelpRequest = exports.SignatureHelpRequest || (exports.SignatureHelpRequest = {}));
|
|
404
|
+
//---- Goto Definition -------------------------------------
|
|
405
|
+
/**
|
|
406
|
+
* A request to resolve the definition location of a symbol at a given text
|
|
407
|
+
* document position. The request's parameter is of type [TextDocumentPosition]
|
|
408
|
+
* (#TextDocumentPosition) the response is of either type [Definition](#Definition)
|
|
409
|
+
* or a typed array of [DefinitionLink](#DefinitionLink) or a Thenable that resolves
|
|
410
|
+
* to such.
|
|
411
|
+
*/
|
|
412
|
+
var DefinitionRequest;
|
|
413
|
+
(function (DefinitionRequest) {
|
|
414
|
+
DefinitionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/definition');
|
|
415
|
+
})(DefinitionRequest = exports.DefinitionRequest || (exports.DefinitionRequest = {}));
|
|
416
|
+
/**
|
|
417
|
+
* A request to resolve project-wide references for the symbol denoted
|
|
418
|
+
* by the given text document position. The request's parameter is of
|
|
419
|
+
* type [ReferenceParams](#ReferenceParams) the response is of type
|
|
420
|
+
* [Location[]](#Location) or a Thenable that resolves to such.
|
|
421
|
+
*/
|
|
422
|
+
var ReferencesRequest;
|
|
423
|
+
(function (ReferencesRequest) {
|
|
424
|
+
ReferencesRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/references');
|
|
425
|
+
})(ReferencesRequest = exports.ReferencesRequest || (exports.ReferencesRequest = {}));
|
|
426
|
+
//---- Document Highlight ----------------------------------
|
|
427
|
+
/**
|
|
428
|
+
* Request to resolve a [DocumentHighlight](#DocumentHighlight) for a given
|
|
429
|
+
* text document position. The request's parameter is of type [TextDocumentPosition]
|
|
430
|
+
* (#TextDocumentPosition) the request response is of type [DocumentHighlight[]]
|
|
431
|
+
* (#DocumentHighlight) or a Thenable that resolves to such.
|
|
432
|
+
*/
|
|
433
|
+
var DocumentHighlightRequest;
|
|
434
|
+
(function (DocumentHighlightRequest) {
|
|
435
|
+
DocumentHighlightRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentHighlight');
|
|
436
|
+
})(DocumentHighlightRequest = exports.DocumentHighlightRequest || (exports.DocumentHighlightRequest = {}));
|
|
437
|
+
//---- Document Symbol Provider ---------------------------
|
|
438
|
+
/**
|
|
439
|
+
* A request to list all symbols found in a given text document. The request's
|
|
440
|
+
* parameter is of type [TextDocumentIdentifier](#TextDocumentIdentifier) the
|
|
441
|
+
* response is of type [SymbolInformation[]](#SymbolInformation) or a Thenable
|
|
442
|
+
* that resolves to such.
|
|
443
|
+
*/
|
|
444
|
+
var DocumentSymbolRequest;
|
|
445
|
+
(function (DocumentSymbolRequest) {
|
|
446
|
+
DocumentSymbolRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentSymbol');
|
|
447
|
+
})(DocumentSymbolRequest = exports.DocumentSymbolRequest || (exports.DocumentSymbolRequest = {}));
|
|
448
|
+
//---- Workspace Symbol Provider ---------------------------
|
|
449
|
+
/**
|
|
450
|
+
* A request to list project-wide symbols matching the query string given
|
|
451
|
+
* by the [WorkspaceSymbolParams](#WorkspaceSymbolParams). The response is
|
|
452
|
+
* of type [SymbolInformation[]](#SymbolInformation) or a Thenable that
|
|
453
|
+
* resolves to such.
|
|
454
|
+
*/
|
|
455
|
+
var WorkspaceSymbolRequest;
|
|
456
|
+
(function (WorkspaceSymbolRequest) {
|
|
457
|
+
WorkspaceSymbolRequest.type = new vscode_jsonrpc_1.RequestType('workspace/symbol');
|
|
458
|
+
})(WorkspaceSymbolRequest = exports.WorkspaceSymbolRequest || (exports.WorkspaceSymbolRequest = {}));
|
|
459
|
+
/**
|
|
460
|
+
* A request to provide commands for the given text document and range.
|
|
461
|
+
*/
|
|
462
|
+
var CodeActionRequest;
|
|
463
|
+
(function (CodeActionRequest) {
|
|
464
|
+
CodeActionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/codeAction');
|
|
465
|
+
})(CodeActionRequest = exports.CodeActionRequest || (exports.CodeActionRequest = {}));
|
|
466
|
+
/**
|
|
467
|
+
* A request to provide code lens for the given text document.
|
|
468
|
+
*/
|
|
469
|
+
var CodeLensRequest;
|
|
470
|
+
(function (CodeLensRequest) {
|
|
471
|
+
CodeLensRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/codeLens');
|
|
472
|
+
})(CodeLensRequest = exports.CodeLensRequest || (exports.CodeLensRequest = {}));
|
|
473
|
+
/**
|
|
474
|
+
* A request to resolve a command for a given code lens.
|
|
475
|
+
*/
|
|
476
|
+
var CodeLensResolveRequest;
|
|
477
|
+
(function (CodeLensResolveRequest) {
|
|
478
|
+
CodeLensResolveRequest.type = new vscode_jsonrpc_1.RequestType('codeLens/resolve');
|
|
479
|
+
})(CodeLensResolveRequest = exports.CodeLensResolveRequest || (exports.CodeLensResolveRequest = {}));
|
|
480
|
+
/**
|
|
481
|
+
* A request to to format a whole document.
|
|
482
|
+
*/
|
|
483
|
+
var DocumentFormattingRequest;
|
|
484
|
+
(function (DocumentFormattingRequest) {
|
|
485
|
+
DocumentFormattingRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/formatting');
|
|
486
|
+
})(DocumentFormattingRequest = exports.DocumentFormattingRequest || (exports.DocumentFormattingRequest = {}));
|
|
487
|
+
/**
|
|
488
|
+
* A request to to format a range in a document.
|
|
489
|
+
*/
|
|
490
|
+
var DocumentRangeFormattingRequest;
|
|
491
|
+
(function (DocumentRangeFormattingRequest) {
|
|
492
|
+
DocumentRangeFormattingRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/rangeFormatting');
|
|
493
|
+
})(DocumentRangeFormattingRequest = exports.DocumentRangeFormattingRequest || (exports.DocumentRangeFormattingRequest = {}));
|
|
494
|
+
/**
|
|
495
|
+
* A request to format a document on type.
|
|
496
|
+
*/
|
|
497
|
+
var DocumentOnTypeFormattingRequest;
|
|
498
|
+
(function (DocumentOnTypeFormattingRequest) {
|
|
499
|
+
DocumentOnTypeFormattingRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/onTypeFormatting');
|
|
500
|
+
})(DocumentOnTypeFormattingRequest = exports.DocumentOnTypeFormattingRequest || (exports.DocumentOnTypeFormattingRequest = {}));
|
|
501
|
+
/**
|
|
502
|
+
* A request to rename a symbol.
|
|
503
|
+
*/
|
|
504
|
+
var RenameRequest;
|
|
505
|
+
(function (RenameRequest) {
|
|
506
|
+
RenameRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/rename');
|
|
507
|
+
})(RenameRequest = exports.RenameRequest || (exports.RenameRequest = {}));
|
|
508
|
+
/**
|
|
509
|
+
* A request to test and perform the setup necessary for a rename.
|
|
510
|
+
*/
|
|
511
|
+
var PrepareRenameRequest;
|
|
512
|
+
(function (PrepareRenameRequest) {
|
|
513
|
+
PrepareRenameRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/prepareRename');
|
|
514
|
+
})(PrepareRenameRequest = exports.PrepareRenameRequest || (exports.PrepareRenameRequest = {}));
|
|
515
|
+
/**
|
|
516
|
+
* A request to provide document links
|
|
517
|
+
*/
|
|
518
|
+
var DocumentLinkRequest;
|
|
519
|
+
(function (DocumentLinkRequest) {
|
|
520
|
+
DocumentLinkRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentLink');
|
|
521
|
+
})(DocumentLinkRequest = exports.DocumentLinkRequest || (exports.DocumentLinkRequest = {}));
|
|
522
|
+
/**
|
|
523
|
+
* Request to resolve additional information for a given document link. The request's
|
|
524
|
+
* parameter is of type [DocumentLink](#DocumentLink) the response
|
|
525
|
+
* is of type [DocumentLink](#DocumentLink) or a Thenable that resolves to such.
|
|
526
|
+
*/
|
|
527
|
+
var DocumentLinkResolveRequest;
|
|
528
|
+
(function (DocumentLinkResolveRequest) {
|
|
529
|
+
DocumentLinkResolveRequest.type = new vscode_jsonrpc_1.RequestType('documentLink/resolve');
|
|
530
|
+
})(DocumentLinkResolveRequest = exports.DocumentLinkResolveRequest || (exports.DocumentLinkResolveRequest = {}));
|
|
531
|
+
/**
|
|
532
|
+
* A request send from the client to the server to execute a command. The request might return
|
|
533
|
+
* a workspace edit which the client will apply to the workspace.
|
|
534
|
+
*/
|
|
535
|
+
var ExecuteCommandRequest;
|
|
536
|
+
(function (ExecuteCommandRequest) {
|
|
537
|
+
ExecuteCommandRequest.type = new vscode_jsonrpc_1.RequestType('workspace/executeCommand');
|
|
538
|
+
})(ExecuteCommandRequest = exports.ExecuteCommandRequest || (exports.ExecuteCommandRequest = {}));
|
|
539
|
+
/**
|
|
540
|
+
* A request sent from the server to the client to modified certain resources.
|
|
541
|
+
*/
|
|
542
|
+
var ApplyWorkspaceEditRequest;
|
|
543
|
+
(function (ApplyWorkspaceEditRequest) {
|
|
544
|
+
ApplyWorkspaceEditRequest.type = new vscode_jsonrpc_1.RequestType('workspace/applyEdit');
|
|
545
|
+
})(ApplyWorkspaceEditRequest = exports.ApplyWorkspaceEditRequest || (exports.ApplyWorkspaceEditRequest = {}));
|