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