vscode-languageserver-protocol 3.15.0-next.5 → 3.15.0-next.9

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.
@@ -1,33 +1,26 @@
1
- import { RequestType, RequestHandler } from 'vscode-jsonrpc';
1
+ import { RequestType, RequestHandler, ProgressType } from 'vscode-jsonrpc';
2
2
  import { Declaration, DeclarationLink, Location, LocationLink } from 'vscode-languageserver-types';
3
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
3
+ import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
4
+ /**
5
+ * Since 3.14.0
6
+ */
4
7
  export interface DeclarationClientCapabilities {
5
8
  /**
6
- * The text document client capabilities
9
+ * Whether declaration supports dynamic registration. If this is set to `true`
10
+ * the client supports the new `DeclarationRegistrationOptions` return value
11
+ * for the corresponding server capability as well.
7
12
  */
8
- textDocument?: {
9
- /**
10
- * Capabilities specific to the `textDocument/declaration`
11
- */
12
- declaration?: {
13
- /**
14
- * Whether declaration supports dynamic registration. If this is set to `true`
15
- * the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
- * return value for the corresponding server capability as well.
17
- */
18
- dynamicRegistration?: boolean;
19
- /**
20
- * The client supports additional metadata in the form of declaration links.
21
- */
22
- linkSupport?: boolean;
23
- };
24
- };
25
- }
26
- export interface DeclarationServerCapabilities {
13
+ dynamicRegistration?: boolean;
27
14
  /**
28
- * The server provides Goto Type Definition support.
15
+ * The client supports additional metadata in the form of declaration links.
29
16
  */
30
- declarationProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions);
17
+ linkSupport?: boolean;
18
+ }
19
+ export interface DeclarationOptions extends WorkDoneProgressOptions {
20
+ }
21
+ export interface DeclarationRegistrationOptions extends DeclarationOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions {
22
+ }
23
+ export interface DeclarationParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
31
24
  }
32
25
  /**
33
26
  * A request to resolve the type definition locations of a symbol at a given text
@@ -37,6 +30,7 @@ export interface DeclarationServerCapabilities {
37
30
  * to such.
38
31
  */
39
32
  export declare namespace DeclarationRequest {
40
- const type: RequestType<TextDocumentPositionParams, Location | Location[] | LocationLink[] | null, void, TextDocumentRegistrationOptions>;
41
- type HandlerSignature = RequestHandler<TextDocumentPositionParams, Declaration | DeclarationLink[] | null, void>;
33
+ const type: RequestType<DeclarationParams, Location | Location[] | LocationLink[] | null, void, DeclarationRegistrationOptions>;
34
+ const resultType: ProgressType<Location[] | LocationLink[]>;
35
+ type HandlerSignature = RequestHandler<DeclarationParams, Declaration | DeclarationLink[] | null, void>;
42
36
  }
@@ -17,4 +17,5 @@ let __noDynamicImport;
17
17
  var DeclarationRequest;
18
18
  (function (DeclarationRequest) {
19
19
  DeclarationRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/declaration');
20
+ DeclarationRequest.resultType = new vscode_jsonrpc_1.ProgressType();
20
21
  })(DeclarationRequest = exports.DeclarationRequest || (exports.DeclarationRequest = {}));
@@ -1,41 +1,27 @@
1
- import { RequestType } from 'vscode-jsonrpc';
1
+ import { RequestType, RequestHandler, ProgressType } from 'vscode-jsonrpc';
2
2
  import { TextDocumentIdentifier } from 'vscode-languageserver-types';
3
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
3
+ import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
4
4
  export interface FoldingRangeClientCapabilities {
5
5
  /**
6
- * The text document client capabilities
6
+ * Whether implementation supports dynamic registration for folding range providers. If this is set to `true`
7
+ * the client supports the new `FoldingRangeRegistrationOptions` return value for the corresponding server
8
+ * capability as well.
7
9
  */
8
- textDocument?: {
9
- /**
10
- * Capabilities specific to `textDocument/foldingRange` requests
11
- */
12
- foldingRange?: {
13
- /**
14
- * Whether implementation supports dynamic registration for folding range providers. If this is set to `true`
15
- * the client supports the new `(FoldingRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
- * return value for the corresponding server capability as well.
17
- */
18
- dynamicRegistration?: boolean;
19
- /**
20
- * The maximum number of folding ranges that the client prefers to receive per document. The value serves as a
21
- * hint, servers are free to follow the limit.
22
- */
23
- rangeLimit?: number;
24
- /**
25
- * If set, the client signals that it only supports folding complete lines. If set, client will
26
- * ignore specified `startCharacter` and `endCharacter` properties in a FoldingRange.
27
- */
28
- lineFoldingOnly?: boolean;
29
- };
30
- };
31
- }
32
- export interface FoldingRangeProviderOptions {
33
- }
34
- export interface FoldingRangeServerCapabilities {
10
+ dynamicRegistration?: boolean;
11
+ /**
12
+ * The maximum number of folding ranges that the client prefers to receive per document. The value serves as a
13
+ * hint, servers are free to follow the limit.
14
+ */
15
+ rangeLimit?: number;
35
16
  /**
36
- * The server provides folding provider support.
17
+ * If set, the client signals that it only supports folding complete lines. If set, client will
18
+ * ignore specified `startCharacter` and `endCharacter` properties in a FoldingRange.
37
19
  */
38
- foldingRangeProvider?: boolean | FoldingRangeProviderOptions | (FoldingRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions);
20
+ lineFoldingOnly?: boolean;
21
+ }
22
+ export interface FoldingRangeOptions extends WorkDoneProgressOptions {
23
+ }
24
+ export interface FoldingRangeRegistrationOptions extends TextDocumentRegistrationOptions, FoldingRangeOptions, StaticRegistrationOptions {
39
25
  }
40
26
  /**
41
27
  * Enum of known range kinds
@@ -84,7 +70,7 @@ export interface FoldingRange {
84
70
  /**
85
71
  * Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
86
72
  */
87
- export interface FoldingRangeParams {
73
+ export interface FoldingRangeParams extends WorkDoneProgressParams, PartialResultParams {
88
74
  /**
89
75
  * The text document.
90
76
  */
@@ -97,5 +83,7 @@ export interface FoldingRangeParams {
97
83
  * that resolves to such.
98
84
  */
99
85
  export declare namespace FoldingRangeRequest {
100
- const type: RequestType<FoldingRangeParams, FoldingRange[] | null, any, any>;
86
+ const type: RequestType<FoldingRangeParams, FoldingRange[] | null, any, FoldingRangeRegistrationOptions>;
87
+ const resultType: ProgressType<FoldingRange[]>;
88
+ type HandlerSignature = RequestHandler<FoldingRangeParams, FoldingRange[] | null, void>;
101
89
  }
@@ -32,4 +32,5 @@ var FoldingRangeKind;
32
32
  var FoldingRangeRequest;
33
33
  (function (FoldingRangeRequest) {
34
34
  FoldingRangeRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/foldingRange');
35
+ FoldingRangeRequest.resultType = new vscode_jsonrpc_1.ProgressType();
35
36
  })(FoldingRangeRequest = exports.FoldingRangeRequest || (exports.FoldingRangeRequest = {}));
@@ -1,33 +1,28 @@
1
- import { RequestType, RequestHandler } from 'vscode-jsonrpc';
1
+ import { RequestType, RequestHandler, ProgressType } from 'vscode-jsonrpc';
2
2
  import { Definition, DefinitionLink, Location, LocationLink } from 'vscode-languageserver-types';
3
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
3
+ import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
4
+ /**
5
+ * Since 3.6.0
6
+ */
4
7
  export interface ImplementationClientCapabilities {
5
8
  /**
6
- * The text document client capabilities
9
+ * Whether implementation supports dynamic registration. If this is set to `true`
10
+ * the client supports the new `ImplementationRegistrationOptions` return value
11
+ * for the corresponding server capability as well.
7
12
  */
8
- textDocument?: {
9
- /**
10
- * Capabilities specific to the `textDocument/implementation`
11
- */
12
- implementation?: {
13
- /**
14
- * Whether implementation supports dynamic registration. If this is set to `true`
15
- * the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
- * return value for the corresponding server capability as well.
17
- */
18
- dynamicRegistration?: boolean;
19
- /**
20
- * The client supports additional metadata in the form of definition links.
21
- */
22
- linkSupport?: boolean;
23
- };
24
- };
25
- }
26
- export interface ImplementationServerCapabilities {
13
+ dynamicRegistration?: boolean;
27
14
  /**
28
- * The server provides Goto Implementation support.
15
+ * The client supports additional metadata in the form of definition links.
16
+ *
17
+ * Since 3.14.0
29
18
  */
30
- implementationProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions);
19
+ linkSupport?: boolean;
20
+ }
21
+ export interface ImplementationOptions extends WorkDoneProgressOptions {
22
+ }
23
+ export interface ImplementationRegistrationOptions extends TextDocumentRegistrationOptions, ImplementationOptions, StaticRegistrationOptions {
24
+ }
25
+ export interface ImplementationParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
31
26
  }
32
27
  /**
33
28
  * A request to resolve the implementation locations of a symbol at a given text
@@ -36,6 +31,7 @@ export interface ImplementationServerCapabilities {
36
31
  * Thenable that resolves to such.
37
32
  */
38
33
  export declare namespace ImplementationRequest {
39
- const type: RequestType<TextDocumentPositionParams, Location | Location[] | LocationLink[] | null, void, TextDocumentRegistrationOptions>;
40
- type HandlerSignature = RequestHandler<TextDocumentPositionParams, Definition | DefinitionLink[] | null, void>;
34
+ const type: RequestType<ImplementationParams, Location | Location[] | LocationLink[] | null, void, ImplementationRegistrationOptions>;
35
+ const resultType: ProgressType<Location[] | LocationLink[]>;
36
+ type HandlerSignature = RequestHandler<ImplementationParams, Definition | DefinitionLink[] | null, void>;
41
37
  }
@@ -16,4 +16,5 @@ let __noDynamicImport;
16
16
  var ImplementationRequest;
17
17
  (function (ImplementationRequest) {
18
18
  ImplementationRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/implementation');
19
+ ImplementationRequest.resultType = new vscode_jsonrpc_1.ProgressType();
19
20
  })(ImplementationRequest = exports.ImplementationRequest || (exports.ImplementationRequest = {}));
package/lib/protocol.js CHANGED
@@ -22,16 +22,41 @@ const protocol_foldingRange_1 = require("./protocol.foldingRange");
22
22
  exports.FoldingRangeRequest = protocol_foldingRange_1.FoldingRangeRequest;
23
23
  const protocol_declaration_1 = require("./protocol.declaration");
24
24
  exports.DeclarationRequest = protocol_declaration_1.DeclarationRequest;
25
+ const protocol_selectionRange_1 = require("./protocol.selectionRange");
26
+ exports.SelectionRangeRequest = protocol_selectionRange_1.SelectionRangeRequest;
25
27
  // @ts-ignore: to avoid inlining LocatioLink as dynamic import
26
28
  let __noDynamicImport;
29
+ /**
30
+ * The DocumentFilter namespace provides helper functions to work with
31
+ * [DocumentFilter](#DocumentFilter) literals.
32
+ */
27
33
  var DocumentFilter;
28
34
  (function (DocumentFilter) {
29
35
  function is(value) {
30
- let candidate = value;
36
+ const candidate = value;
31
37
  return Is.string(candidate.language) || Is.string(candidate.scheme) || Is.string(candidate.pattern);
32
38
  }
33
39
  DocumentFilter.is = is;
34
40
  })(DocumentFilter = exports.DocumentFilter || (exports.DocumentFilter = {}));
41
+ /**
42
+ * The DocumentSelector namespace provides helper functions to work with
43
+ * [DocumentSelector](#DocumentSelector)s.
44
+ */
45
+ var DocumentSelector;
46
+ (function (DocumentSelector) {
47
+ function is(value) {
48
+ if (!Array.isArray(value)) {
49
+ return false;
50
+ }
51
+ for (let elem of value) {
52
+ if (!Is.string(elem) && !DocumentFilter.is(elem)) {
53
+ return false;
54
+ }
55
+ }
56
+ return true;
57
+ }
58
+ DocumentSelector.is = is;
59
+ })(DocumentSelector = exports.DocumentSelector || (exports.DocumentSelector = {}));
35
60
  /**
36
61
  * The `client/registerCapability` request is sent from the server to the client to register a new capability
37
62
  * handler on the client side.
@@ -88,27 +113,46 @@ var FailureHandlingKind;
88
113
  FailureHandlingKind.Undo = 'undo';
89
114
  })(FailureHandlingKind = exports.FailureHandlingKind || (exports.FailureHandlingKind = {}));
90
115
  /**
91
- * Defines how the host (editor) should sync
92
- * document changes to the language server.
116
+ * The StaticRegistrationOptions namespace provides helper functions to work with
117
+ * [StaticRegistrationOptions](#StaticRegistrationOptions) literals.
93
118
  */
94
- var TextDocumentSyncKind;
95
- (function (TextDocumentSyncKind) {
96
- /**
97
- * Documents should not be synced at all.
98
- */
99
- TextDocumentSyncKind.None = 0;
100
- /**
101
- * Documents are synced by always sending the full content
102
- * of the document.
103
- */
104
- TextDocumentSyncKind.Full = 1;
105
- /**
106
- * Documents are synced by sending the full content on open.
107
- * After that only incremental updates to the document are
108
- * send.
109
- */
110
- TextDocumentSyncKind.Incremental = 2;
111
- })(TextDocumentSyncKind = exports.TextDocumentSyncKind || (exports.TextDocumentSyncKind = {}));
119
+ var StaticRegistrationOptions;
120
+ (function (StaticRegistrationOptions) {
121
+ function hasId(value) {
122
+ const candidate = value;
123
+ return candidate && Is.string(candidate.id) && candidate.id.length > 0;
124
+ }
125
+ StaticRegistrationOptions.hasId = hasId;
126
+ })(StaticRegistrationOptions = exports.StaticRegistrationOptions || (exports.StaticRegistrationOptions = {}));
127
+ /**
128
+ * The TextDocumentRegistrationOptions namespace provides helper functions to work with
129
+ * [TextDocumentRegistrationOptions](#TextDocumentRegistrationOptions) literals.
130
+ */
131
+ var TextDocumentRegistrationOptions;
132
+ (function (TextDocumentRegistrationOptions) {
133
+ function is(value) {
134
+ const candidate = value;
135
+ return candidate && (candidate.documentSelector === null || DocumentSelector.is(candidate.documentSelector));
136
+ }
137
+ TextDocumentRegistrationOptions.is = is;
138
+ })(TextDocumentRegistrationOptions = exports.TextDocumentRegistrationOptions || (exports.TextDocumentRegistrationOptions = {}));
139
+ /**
140
+ * The WorkDoneProgressOptions namespace provides helper functions to work with
141
+ * [WorkDoneProgressOptions](#WorkDoneProgressOptions) literals.
142
+ */
143
+ var WorkDoneProgressOptions;
144
+ (function (WorkDoneProgressOptions) {
145
+ function is(value) {
146
+ const candidate = value;
147
+ return Is.objectLiteral(candidate) && (candidate.workDoneProgress === undefined || Is.boolean(candidate.workDoneProgress));
148
+ }
149
+ WorkDoneProgressOptions.is = is;
150
+ function hasWorkDoneProgress(value) {
151
+ const candidate = value;
152
+ return candidate && Is.boolean(candidate.workDoneProgress);
153
+ }
154
+ WorkDoneProgressOptions.hasWorkDoneProgress = hasWorkDoneProgress;
155
+ })(WorkDoneProgressOptions = exports.WorkDoneProgressOptions || (exports.WorkDoneProgressOptions = {}));
112
156
  /**
113
157
  * The initialize request is sent from the client to the server.
114
158
  * It is sent once as the request after starting up the server.
@@ -161,7 +205,6 @@ var ExitNotification;
161
205
  (function (ExitNotification) {
162
206
  ExitNotification.type = new vscode_jsonrpc_1.NotificationType0('exit');
163
207
  })(ExitNotification = exports.ExitNotification || (exports.ExitNotification = {}));
164
- //---- Configuration notification ----
165
208
  /**
166
209
  * The configuration change notification is sent from the client to the server
167
210
  * when the client's configuration has changed. The notification contains
@@ -227,6 +270,28 @@ var TelemetryEventNotification;
227
270
  (function (TelemetryEventNotification) {
228
271
  TelemetryEventNotification.type = new vscode_jsonrpc_1.NotificationType('telemetry/event');
229
272
  })(TelemetryEventNotification = exports.TelemetryEventNotification || (exports.TelemetryEventNotification = {}));
273
+ /**
274
+ * Defines how the host (editor) should sync
275
+ * document changes to the language server.
276
+ */
277
+ var TextDocumentSyncKind;
278
+ (function (TextDocumentSyncKind) {
279
+ /**
280
+ * Documents should not be synced at all.
281
+ */
282
+ TextDocumentSyncKind.None = 0;
283
+ /**
284
+ * Documents are synced by always sending the full content
285
+ * of the document.
286
+ */
287
+ TextDocumentSyncKind.Full = 1;
288
+ /**
289
+ * Documents are synced by sending the full content on open.
290
+ * After that only incremental updates to the document are
291
+ * send.
292
+ */
293
+ TextDocumentSyncKind.Incremental = 2;
294
+ })(TextDocumentSyncKind = exports.TextDocumentSyncKind || (exports.TextDocumentSyncKind = {}));
230
295
  /**
231
296
  * The document open notification is sent from the client to the server to signal
232
297
  * newly opened text documents. The document's truth is now managed by the client
@@ -290,7 +355,6 @@ var WillSaveTextDocumentWaitUntilRequest;
290
355
  (function (WillSaveTextDocumentWaitUntilRequest) {
291
356
  WillSaveTextDocumentWaitUntilRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/willSaveWaitUntil');
292
357
  })(WillSaveTextDocumentWaitUntilRequest = exports.WillSaveTextDocumentWaitUntilRequest || (exports.WillSaveTextDocumentWaitUntilRequest = {}));
293
- //---- File eventing ----
294
358
  /**
295
359
  * The watched files notification is sent from the client to the server when
296
360
  * the client detects changes to file watched by the language client.
@@ -332,7 +396,6 @@ var WatchKind;
332
396
  */
333
397
  WatchKind.Delete = 4;
334
398
  })(WatchKind = exports.WatchKind || (exports.WatchKind = {}));
335
- //---- Diagnostic notification ----
336
399
  /**
337
400
  * Diagnostics notification are sent from the server to the client to signal
338
401
  * results of validation runs.
@@ -375,6 +438,7 @@ var CompletionTriggerKind;
375
438
  var CompletionRequest;
376
439
  (function (CompletionRequest) {
377
440
  CompletionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/completion');
441
+ CompletionRequest.resultType = new vscode_jsonrpc_1.ProgressType();
378
442
  })(CompletionRequest = exports.CompletionRequest || (exports.CompletionRequest = {}));
379
443
  /**
380
444
  * Request to resolve additional information for a given completion item.The request's
@@ -385,7 +449,6 @@ var CompletionResolveRequest;
385
449
  (function (CompletionResolveRequest) {
386
450
  CompletionResolveRequest.type = new vscode_jsonrpc_1.RequestType('completionItem/resolve');
387
451
  })(CompletionResolveRequest = exports.CompletionResolveRequest || (exports.CompletionResolveRequest = {}));
388
- //---- Hover Support -------------------------------
389
452
  /**
390
453
  * Request to request hover information at a given text document position. The request's
391
454
  * parameter is of type [TextDocumentPosition](#TextDocumentPosition) the response is of
@@ -395,11 +458,30 @@ var HoverRequest;
395
458
  (function (HoverRequest) {
396
459
  HoverRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/hover');
397
460
  })(HoverRequest = exports.HoverRequest || (exports.HoverRequest = {}));
461
+ /**
462
+ * How a signature help was triggered.
463
+ *
464
+ * @since 3.15.0
465
+ */
466
+ var SignatureHelpTriggerKind;
467
+ (function (SignatureHelpTriggerKind) {
468
+ /**
469
+ * Signature help was invoked manually by the user or by a command.
470
+ */
471
+ SignatureHelpTriggerKind.Invoked = 1;
472
+ /**
473
+ * Signature help was triggered by a trigger character.
474
+ */
475
+ SignatureHelpTriggerKind.TriggerCharacter = 2;
476
+ /**
477
+ * Signature help was triggered by the cursor moving or by the document content changing.
478
+ */
479
+ SignatureHelpTriggerKind.ContentChange = 3;
480
+ })(SignatureHelpTriggerKind = exports.SignatureHelpTriggerKind || (exports.SignatureHelpTriggerKind = {}));
398
481
  var SignatureHelpRequest;
399
482
  (function (SignatureHelpRequest) {
400
483
  SignatureHelpRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/signatureHelp');
401
484
  })(SignatureHelpRequest = exports.SignatureHelpRequest || (exports.SignatureHelpRequest = {}));
402
- //---- Goto Definition -------------------------------------
403
485
  /**
404
486
  * A request to resolve the definition location of a symbol at a given text
405
487
  * document position. The request's parameter is of type [TextDocumentPosition]
@@ -410,6 +492,7 @@ var SignatureHelpRequest;
410
492
  var DefinitionRequest;
411
493
  (function (DefinitionRequest) {
412
494
  DefinitionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/definition');
495
+ DefinitionRequest.resultType = new vscode_jsonrpc_1.ProgressType();
413
496
  })(DefinitionRequest = exports.DefinitionRequest || (exports.DefinitionRequest = {}));
414
497
  /**
415
498
  * A request to resolve project-wide references for the symbol denoted
@@ -420,8 +503,8 @@ var DefinitionRequest;
420
503
  var ReferencesRequest;
421
504
  (function (ReferencesRequest) {
422
505
  ReferencesRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/references');
506
+ ReferencesRequest.resultType = new vscode_jsonrpc_1.ProgressType();
423
507
  })(ReferencesRequest = exports.ReferencesRequest || (exports.ReferencesRequest = {}));
424
- //---- Document Highlight ----------------------------------
425
508
  /**
426
509
  * Request to resolve a [DocumentHighlight](#DocumentHighlight) for a given
427
510
  * text document position. The request's parameter is of type [TextDocumentPosition]
@@ -431,8 +514,8 @@ var ReferencesRequest;
431
514
  var DocumentHighlightRequest;
432
515
  (function (DocumentHighlightRequest) {
433
516
  DocumentHighlightRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentHighlight');
517
+ DocumentHighlightRequest.resultType = new vscode_jsonrpc_1.ProgressType();
434
518
  })(DocumentHighlightRequest = exports.DocumentHighlightRequest || (exports.DocumentHighlightRequest = {}));
435
- //---- Document Symbol Provider ---------------------------
436
519
  /**
437
520
  * A request to list all symbols found in a given text document. The request's
438
521
  * parameter is of type [TextDocumentIdentifier](#TextDocumentIdentifier) the
@@ -442,8 +525,16 @@ var DocumentHighlightRequest;
442
525
  var DocumentSymbolRequest;
443
526
  (function (DocumentSymbolRequest) {
444
527
  DocumentSymbolRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentSymbol');
528
+ DocumentSymbolRequest.resultType = new vscode_jsonrpc_1.ProgressType();
445
529
  })(DocumentSymbolRequest = exports.DocumentSymbolRequest || (exports.DocumentSymbolRequest = {}));
446
- //---- Workspace Symbol Provider ---------------------------
530
+ /**
531
+ * A request to provide commands for the given text document and range.
532
+ */
533
+ var CodeActionRequest;
534
+ (function (CodeActionRequest) {
535
+ CodeActionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/codeAction');
536
+ CodeActionRequest.resultType = new vscode_jsonrpc_1.ProgressType();
537
+ })(CodeActionRequest = exports.CodeActionRequest || (exports.CodeActionRequest = {}));
447
538
  /**
448
539
  * A request to list project-wide symbols matching the query string given
449
540
  * by the [WorkspaceSymbolParams](#WorkspaceSymbolParams). The response is
@@ -453,20 +544,15 @@ var DocumentSymbolRequest;
453
544
  var WorkspaceSymbolRequest;
454
545
  (function (WorkspaceSymbolRequest) {
455
546
  WorkspaceSymbolRequest.type = new vscode_jsonrpc_1.RequestType('workspace/symbol');
547
+ WorkspaceSymbolRequest.resultType = new vscode_jsonrpc_1.ProgressType();
456
548
  })(WorkspaceSymbolRequest = exports.WorkspaceSymbolRequest || (exports.WorkspaceSymbolRequest = {}));
457
- /**
458
- * A request to provide commands for the given text document and range.
459
- */
460
- var CodeActionRequest;
461
- (function (CodeActionRequest) {
462
- CodeActionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/codeAction');
463
- })(CodeActionRequest = exports.CodeActionRequest || (exports.CodeActionRequest = {}));
464
549
  /**
465
550
  * A request to provide code lens for the given text document.
466
551
  */
467
552
  var CodeLensRequest;
468
553
  (function (CodeLensRequest) {
469
554
  CodeLensRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/codeLens');
555
+ CodeLensRequest.resultType = new vscode_jsonrpc_1.ProgressType();
470
556
  })(CodeLensRequest = exports.CodeLensRequest || (exports.CodeLensRequest = {}));
471
557
  /**
472
558
  * A request to resolve a command for a given code lens.
@@ -475,6 +561,23 @@ var CodeLensResolveRequest;
475
561
  (function (CodeLensResolveRequest) {
476
562
  CodeLensResolveRequest.type = new vscode_jsonrpc_1.RequestType('codeLens/resolve');
477
563
  })(CodeLensResolveRequest = exports.CodeLensResolveRequest || (exports.CodeLensResolveRequest = {}));
564
+ /**
565
+ * A request to provide document links
566
+ */
567
+ var DocumentLinkRequest;
568
+ (function (DocumentLinkRequest) {
569
+ DocumentLinkRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentLink');
570
+ DocumentLinkRequest.resultType = new vscode_jsonrpc_1.ProgressType();
571
+ })(DocumentLinkRequest = exports.DocumentLinkRequest || (exports.DocumentLinkRequest = {}));
572
+ /**
573
+ * Request to resolve additional information for a given document link. The request's
574
+ * parameter is of type [DocumentLink](#DocumentLink) the response
575
+ * is of type [DocumentLink](#DocumentLink) or a Thenable that resolves to such.
576
+ */
577
+ var DocumentLinkResolveRequest;
578
+ (function (DocumentLinkResolveRequest) {
579
+ DocumentLinkResolveRequest.type = new vscode_jsonrpc_1.RequestType('documentLink/resolve');
580
+ })(DocumentLinkResolveRequest = exports.DocumentLinkResolveRequest || (exports.DocumentLinkResolveRequest = {}));
478
581
  /**
479
582
  * A request to to format a whole document.
480
583
  */
@@ -510,22 +613,6 @@ var PrepareRenameRequest;
510
613
  (function (PrepareRenameRequest) {
511
614
  PrepareRenameRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/prepareRename');
512
615
  })(PrepareRenameRequest = exports.PrepareRenameRequest || (exports.PrepareRenameRequest = {}));
513
- /**
514
- * A request to provide document links
515
- */
516
- var DocumentLinkRequest;
517
- (function (DocumentLinkRequest) {
518
- DocumentLinkRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentLink');
519
- })(DocumentLinkRequest = exports.DocumentLinkRequest || (exports.DocumentLinkRequest = {}));
520
- /**
521
- * Request to resolve additional information for a given document link. The request's
522
- * parameter is of type [DocumentLink](#DocumentLink) the response
523
- * is of type [DocumentLink](#DocumentLink) or a Thenable that resolves to such.
524
- */
525
- var DocumentLinkResolveRequest;
526
- (function (DocumentLinkResolveRequest) {
527
- DocumentLinkResolveRequest.type = new vscode_jsonrpc_1.RequestType('documentLink/resolve');
528
- })(DocumentLinkResolveRequest = exports.DocumentLinkResolveRequest || (exports.DocumentLinkResolveRequest = {}));
529
616
  /**
530
617
  * A request send from the client to the server to execute a command. The request might return
531
618
  * a workspace edit which the client will apply to the workspace.