vscode-languageserver-protocol 3.17.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.
Files changed (57) hide show
  1. package/License.txt +11 -0
  2. package/README.md +16 -0
  3. package/browser.d.ts +6 -0
  4. package/browser.js +7 -0
  5. package/lib/browser/main.d.ts +4 -0
  6. package/lib/browser/main.js +25 -0
  7. package/lib/common/api.d.ts +94 -0
  8. package/lib/common/api.js +87 -0
  9. package/lib/common/connection.d.ts +163 -0
  10. package/lib/common/connection.js +16 -0
  11. package/lib/common/messages.d.ts +44 -0
  12. package/lib/common/messages.js +39 -0
  13. package/lib/common/proposed.diagnostic.d.ts +324 -0
  14. package/lib/common/proposed.diagnostic.js +72 -0
  15. package/lib/common/proposed.typeHierarchy.d.ts +83 -0
  16. package/lib/common/proposed.typeHierarchy.js +40 -0
  17. package/lib/common/protocol.callHierarchy.d.ts +83 -0
  18. package/lib/common/protocol.callHierarchy.js +40 -0
  19. package/lib/common/protocol.colorProvider.d.ts +63 -0
  20. package/lib/common/protocol.colorProvider.js +30 -0
  21. package/lib/common/protocol.configuration.d.ts +46 -0
  22. package/lib/common/protocol.configuration.js +22 -0
  23. package/lib/common/protocol.d.ts +2750 -0
  24. package/lib/common/protocol.declaration.d.ts +37 -0
  25. package/lib/common/protocol.declaration.js +23 -0
  26. package/lib/common/protocol.fileOperations.d.ts +293 -0
  27. package/lib/common/protocol.fileOperations.js +92 -0
  28. package/lib/common/protocol.foldingRange.d.ts +63 -0
  29. package/lib/common/protocol.foldingRange.js +38 -0
  30. package/lib/common/protocol.implementation.d.ts +38 -0
  31. package/lib/common/protocol.implementation.js +22 -0
  32. package/lib/common/protocol.js +752 -0
  33. package/lib/common/protocol.linkedEditingRange.d.ts +51 -0
  34. package/lib/common/protocol.linkedEditingRange.js +19 -0
  35. package/lib/common/protocol.moniker.d.ts +103 -0
  36. package/lib/common/protocol.moniker.js +68 -0
  37. package/lib/common/protocol.progress.d.ts +117 -0
  38. package/lib/common/protocol.progress.js +34 -0
  39. package/lib/common/protocol.selectionRange.d.ts +40 -0
  40. package/lib/common/protocol.selectionRange.js +20 -0
  41. package/lib/common/protocol.semanticTokens.d.ts +194 -0
  42. package/lib/common/protocol.semanticTokens.js +51 -0
  43. package/lib/common/protocol.showDocument.d.ts +71 -0
  44. package/lib/common/protocol.showDocument.js +22 -0
  45. package/lib/common/protocol.typeDefinition.d.ts +38 -0
  46. package/lib/common/protocol.typeDefinition.js +22 -0
  47. package/lib/common/protocol.workspaceFolders.d.ts +94 -0
  48. package/lib/common/protocol.workspaceFolders.js +24 -0
  49. package/lib/common/utils/is.d.ts +9 -0
  50. package/lib/common/utils/is.js +47 -0
  51. package/lib/node/main.d.ts +6 -0
  52. package/lib/node/main.js +25 -0
  53. package/node.cmd +5 -0
  54. package/node.d.ts +6 -0
  55. package/node.js +7 -0
  56. package/package.json +38 -0
  57. package/thirdpartynotices.txt +31 -0
@@ -0,0 +1,752 @@
1
+ "use strict";
2
+ /* --------------------------------------------------------------------------------------------
3
+ * Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * Licensed under the MIT License. See License.txt in the project root for license information.
5
+ * ------------------------------------------------------------------------------------------ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.DocumentLinkRequest = exports.CodeLensRefreshRequest = exports.CodeLensResolveRequest = exports.CodeLensRequest = exports.WorkspaceSymbolRequest = exports.CodeActionResolveRequest = exports.CodeActionRequest = exports.DocumentSymbolRequest = exports.DocumentHighlightRequest = exports.ReferencesRequest = exports.DefinitionRequest = exports.SignatureHelpRequest = exports.SignatureHelpTriggerKind = exports.HoverRequest = exports.CompletionResolveRequest = exports.CompletionRequest = exports.CompletionTriggerKind = exports.PublishDiagnosticsNotification = exports.WatchKind = exports.FileChangeType = exports.DidChangeWatchedFilesNotification = exports.WillSaveTextDocumentWaitUntilRequest = exports.WillSaveTextDocumentNotification = exports.TextDocumentSaveReason = exports.DidSaveTextDocumentNotification = exports.DidCloseTextDocumentNotification = exports.DidChangeTextDocumentNotification = exports.TextDocumentContentChangeEvent = exports.DidOpenTextDocumentNotification = exports.TextDocumentSyncKind = exports.TelemetryEventNotification = exports.LogMessageNotification = exports.ShowMessageRequest = exports.ShowMessageNotification = exports.MessageType = exports.DidChangeConfigurationNotification = exports.ExitNotification = exports.ShutdownRequest = exports.InitializedNotification = exports.InitializeError = exports.InitializeRequest = exports.WorkDoneProgressOptions = exports.TextDocumentRegistrationOptions = exports.StaticRegistrationOptions = exports.FailureHandlingKind = exports.ResourceOperationKind = exports.UnregistrationRequest = exports.RegistrationRequest = exports.DocumentSelector = exports.DocumentFilter = void 0;
8
+ exports.MonikerRequest = exports.MonikerKind = exports.UniquenessLevel = exports.WillDeleteFilesRequest = exports.DidDeleteFilesNotification = exports.WillRenameFilesRequest = exports.DidRenameFilesNotification = exports.WillCreateFilesRequest = exports.DidCreateFilesNotification = exports.FileOperationPatternKind = exports.LinkedEditingRangeRequest = exports.ShowDocumentRequest = exports.SemanticTokensRegistrationType = exports.SemanticTokensRefreshRequest = exports.SemanticTokensRangeRequest = exports.SemanticTokensDeltaRequest = exports.SemanticTokensRequest = exports.TokenFormat = exports.CallHierarchyPrepareRequest = exports.CallHierarchyOutgoingCallsRequest = exports.CallHierarchyIncomingCallsRequest = exports.WorkDoneProgressCancelNotification = exports.WorkDoneProgressCreateRequest = exports.WorkDoneProgress = exports.SelectionRangeRequest = exports.DeclarationRequest = exports.FoldingRangeRequest = exports.ColorPresentationRequest = exports.DocumentColorRequest = exports.ConfigurationRequest = exports.DidChangeWorkspaceFoldersNotification = exports.WorkspaceFoldersRequest = exports.TypeDefinitionRequest = exports.ImplementationRequest = exports.ApplyWorkspaceEditRequest = exports.ExecuteCommandRequest = exports.PrepareRenameRequest = exports.RenameRequest = exports.PrepareSupportDefaultBehavior = exports.DocumentOnTypeFormattingRequest = exports.DocumentRangeFormattingRequest = exports.DocumentFormattingRequest = exports.DocumentLinkResolveRequest = void 0;
9
+ const messages_1 = require("./messages");
10
+ const Is = require("./utils/is");
11
+ const protocol_implementation_1 = require("./protocol.implementation");
12
+ Object.defineProperty(exports, "ImplementationRequest", { enumerable: true, get: function () { return protocol_implementation_1.ImplementationRequest; } });
13
+ const protocol_typeDefinition_1 = require("./protocol.typeDefinition");
14
+ Object.defineProperty(exports, "TypeDefinitionRequest", { enumerable: true, get: function () { return protocol_typeDefinition_1.TypeDefinitionRequest; } });
15
+ const protocol_workspaceFolders_1 = require("./protocol.workspaceFolders");
16
+ Object.defineProperty(exports, "WorkspaceFoldersRequest", { enumerable: true, get: function () { return protocol_workspaceFolders_1.WorkspaceFoldersRequest; } });
17
+ Object.defineProperty(exports, "DidChangeWorkspaceFoldersNotification", { enumerable: true, get: function () { return protocol_workspaceFolders_1.DidChangeWorkspaceFoldersNotification; } });
18
+ const protocol_configuration_1 = require("./protocol.configuration");
19
+ Object.defineProperty(exports, "ConfigurationRequest", { enumerable: true, get: function () { return protocol_configuration_1.ConfigurationRequest; } });
20
+ const protocol_colorProvider_1 = require("./protocol.colorProvider");
21
+ Object.defineProperty(exports, "DocumentColorRequest", { enumerable: true, get: function () { return protocol_colorProvider_1.DocumentColorRequest; } });
22
+ Object.defineProperty(exports, "ColorPresentationRequest", { enumerable: true, get: function () { return protocol_colorProvider_1.ColorPresentationRequest; } });
23
+ const protocol_foldingRange_1 = require("./protocol.foldingRange");
24
+ Object.defineProperty(exports, "FoldingRangeRequest", { enumerable: true, get: function () { return protocol_foldingRange_1.FoldingRangeRequest; } });
25
+ const protocol_declaration_1 = require("./protocol.declaration");
26
+ Object.defineProperty(exports, "DeclarationRequest", { enumerable: true, get: function () { return protocol_declaration_1.DeclarationRequest; } });
27
+ const protocol_selectionRange_1 = require("./protocol.selectionRange");
28
+ Object.defineProperty(exports, "SelectionRangeRequest", { enumerable: true, get: function () { return protocol_selectionRange_1.SelectionRangeRequest; } });
29
+ const protocol_progress_1 = require("./protocol.progress");
30
+ Object.defineProperty(exports, "WorkDoneProgress", { enumerable: true, get: function () { return protocol_progress_1.WorkDoneProgress; } });
31
+ Object.defineProperty(exports, "WorkDoneProgressCreateRequest", { enumerable: true, get: function () { return protocol_progress_1.WorkDoneProgressCreateRequest; } });
32
+ Object.defineProperty(exports, "WorkDoneProgressCancelNotification", { enumerable: true, get: function () { return protocol_progress_1.WorkDoneProgressCancelNotification; } });
33
+ const protocol_callHierarchy_1 = require("./protocol.callHierarchy");
34
+ Object.defineProperty(exports, "CallHierarchyIncomingCallsRequest", { enumerable: true, get: function () { return protocol_callHierarchy_1.CallHierarchyIncomingCallsRequest; } });
35
+ Object.defineProperty(exports, "CallHierarchyOutgoingCallsRequest", { enumerable: true, get: function () { return protocol_callHierarchy_1.CallHierarchyOutgoingCallsRequest; } });
36
+ Object.defineProperty(exports, "CallHierarchyPrepareRequest", { enumerable: true, get: function () { return protocol_callHierarchy_1.CallHierarchyPrepareRequest; } });
37
+ const protocol_semanticTokens_1 = require("./protocol.semanticTokens");
38
+ Object.defineProperty(exports, "TokenFormat", { enumerable: true, get: function () { return protocol_semanticTokens_1.TokenFormat; } });
39
+ Object.defineProperty(exports, "SemanticTokensRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRequest; } });
40
+ Object.defineProperty(exports, "SemanticTokensDeltaRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensDeltaRequest; } });
41
+ Object.defineProperty(exports, "SemanticTokensRangeRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRangeRequest; } });
42
+ Object.defineProperty(exports, "SemanticTokensRefreshRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRefreshRequest; } });
43
+ Object.defineProperty(exports, "SemanticTokensRegistrationType", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRegistrationType; } });
44
+ const protocol_showDocument_1 = require("./protocol.showDocument");
45
+ Object.defineProperty(exports, "ShowDocumentRequest", { enumerable: true, get: function () { return protocol_showDocument_1.ShowDocumentRequest; } });
46
+ const protocol_linkedEditingRange_1 = require("./protocol.linkedEditingRange");
47
+ Object.defineProperty(exports, "LinkedEditingRangeRequest", { enumerable: true, get: function () { return protocol_linkedEditingRange_1.LinkedEditingRangeRequest; } });
48
+ const protocol_fileOperations_1 = require("./protocol.fileOperations");
49
+ Object.defineProperty(exports, "FileOperationPatternKind", { enumerable: true, get: function () { return protocol_fileOperations_1.FileOperationPatternKind; } });
50
+ Object.defineProperty(exports, "DidCreateFilesNotification", { enumerable: true, get: function () { return protocol_fileOperations_1.DidCreateFilesNotification; } });
51
+ Object.defineProperty(exports, "WillCreateFilesRequest", { enumerable: true, get: function () { return protocol_fileOperations_1.WillCreateFilesRequest; } });
52
+ Object.defineProperty(exports, "DidRenameFilesNotification", { enumerable: true, get: function () { return protocol_fileOperations_1.DidRenameFilesNotification; } });
53
+ Object.defineProperty(exports, "WillRenameFilesRequest", { enumerable: true, get: function () { return protocol_fileOperations_1.WillRenameFilesRequest; } });
54
+ Object.defineProperty(exports, "DidDeleteFilesNotification", { enumerable: true, get: function () { return protocol_fileOperations_1.DidDeleteFilesNotification; } });
55
+ Object.defineProperty(exports, "WillDeleteFilesRequest", { enumerable: true, get: function () { return protocol_fileOperations_1.WillDeleteFilesRequest; } });
56
+ const protocol_moniker_1 = require("./protocol.moniker");
57
+ Object.defineProperty(exports, "UniquenessLevel", { enumerable: true, get: function () { return protocol_moniker_1.UniquenessLevel; } });
58
+ Object.defineProperty(exports, "MonikerKind", { enumerable: true, get: function () { return protocol_moniker_1.MonikerKind; } });
59
+ Object.defineProperty(exports, "MonikerRequest", { enumerable: true, get: function () { return protocol_moniker_1.MonikerRequest; } });
60
+ // @ts-ignore: to avoid inlining LocationLink as dynamic import
61
+ let __noDynamicImport;
62
+ /**
63
+ * The DocumentFilter namespace provides helper functions to work with
64
+ * [DocumentFilter](#DocumentFilter) literals.
65
+ */
66
+ var DocumentFilter;
67
+ (function (DocumentFilter) {
68
+ function is(value) {
69
+ const candidate = value;
70
+ return Is.string(candidate.language) || Is.string(candidate.scheme) || Is.string(candidate.pattern);
71
+ }
72
+ DocumentFilter.is = is;
73
+ })(DocumentFilter = exports.DocumentFilter || (exports.DocumentFilter = {}));
74
+ /**
75
+ * The DocumentSelector namespace provides helper functions to work with
76
+ * [DocumentSelector](#DocumentSelector)s.
77
+ */
78
+ var DocumentSelector;
79
+ (function (DocumentSelector) {
80
+ function is(value) {
81
+ if (!Array.isArray(value)) {
82
+ return false;
83
+ }
84
+ for (let elem of value) {
85
+ if (!Is.string(elem) && !DocumentFilter.is(elem)) {
86
+ return false;
87
+ }
88
+ }
89
+ return true;
90
+ }
91
+ DocumentSelector.is = is;
92
+ })(DocumentSelector = exports.DocumentSelector || (exports.DocumentSelector = {}));
93
+ /**
94
+ * The `client/registerCapability` request is sent from the server to the client to register a new capability
95
+ * handler on the client side.
96
+ */
97
+ var RegistrationRequest;
98
+ (function (RegistrationRequest) {
99
+ RegistrationRequest.type = new messages_1.ProtocolRequestType('client/registerCapability');
100
+ })(RegistrationRequest = exports.RegistrationRequest || (exports.RegistrationRequest = {}));
101
+ /**
102
+ * The `client/unregisterCapability` request is sent from the server to the client to unregister a previously registered capability
103
+ * handler on the client side.
104
+ */
105
+ var UnregistrationRequest;
106
+ (function (UnregistrationRequest) {
107
+ UnregistrationRequest.type = new messages_1.ProtocolRequestType('client/unregisterCapability');
108
+ })(UnregistrationRequest = exports.UnregistrationRequest || (exports.UnregistrationRequest = {}));
109
+ var ResourceOperationKind;
110
+ (function (ResourceOperationKind) {
111
+ /**
112
+ * Supports creating new files and folders.
113
+ */
114
+ ResourceOperationKind.Create = 'create';
115
+ /**
116
+ * Supports renaming existing files and folders.
117
+ */
118
+ ResourceOperationKind.Rename = 'rename';
119
+ /**
120
+ * Supports deleting existing files and folders.
121
+ */
122
+ ResourceOperationKind.Delete = 'delete';
123
+ })(ResourceOperationKind = exports.ResourceOperationKind || (exports.ResourceOperationKind = {}));
124
+ var FailureHandlingKind;
125
+ (function (FailureHandlingKind) {
126
+ /**
127
+ * Applying the workspace change is simply aborted if one of the changes provided
128
+ * fails. All operations executed before the failing operation stay executed.
129
+ */
130
+ FailureHandlingKind.Abort = 'abort';
131
+ /**
132
+ * All operations are executed transactional. That means they either all
133
+ * succeed or no changes at all are applied to the workspace.
134
+ */
135
+ FailureHandlingKind.Transactional = 'transactional';
136
+ /**
137
+ * If the workspace edit contains only textual file changes they are executed transactional.
138
+ * If resource changes (create, rename or delete file) are part of the change the failure
139
+ * handling strategy is abort.
140
+ */
141
+ FailureHandlingKind.TextOnlyTransactional = 'textOnlyTransactional';
142
+ /**
143
+ * The client tries to undo the operations already executed. But there is no
144
+ * guarantee that this is succeeding.
145
+ */
146
+ FailureHandlingKind.Undo = 'undo';
147
+ })(FailureHandlingKind = exports.FailureHandlingKind || (exports.FailureHandlingKind = {}));
148
+ /**
149
+ * The StaticRegistrationOptions namespace provides helper functions to work with
150
+ * [StaticRegistrationOptions](#StaticRegistrationOptions) literals.
151
+ */
152
+ var StaticRegistrationOptions;
153
+ (function (StaticRegistrationOptions) {
154
+ function hasId(value) {
155
+ const candidate = value;
156
+ return candidate && Is.string(candidate.id) && candidate.id.length > 0;
157
+ }
158
+ StaticRegistrationOptions.hasId = hasId;
159
+ })(StaticRegistrationOptions = exports.StaticRegistrationOptions || (exports.StaticRegistrationOptions = {}));
160
+ /**
161
+ * The TextDocumentRegistrationOptions namespace provides helper functions to work with
162
+ * [TextDocumentRegistrationOptions](#TextDocumentRegistrationOptions) literals.
163
+ */
164
+ var TextDocumentRegistrationOptions;
165
+ (function (TextDocumentRegistrationOptions) {
166
+ function is(value) {
167
+ const candidate = value;
168
+ return candidate && (candidate.documentSelector === null || DocumentSelector.is(candidate.documentSelector));
169
+ }
170
+ TextDocumentRegistrationOptions.is = is;
171
+ })(TextDocumentRegistrationOptions = exports.TextDocumentRegistrationOptions || (exports.TextDocumentRegistrationOptions = {}));
172
+ /**
173
+ * The WorkDoneProgressOptions namespace provides helper functions to work with
174
+ * [WorkDoneProgressOptions](#WorkDoneProgressOptions) literals.
175
+ */
176
+ var WorkDoneProgressOptions;
177
+ (function (WorkDoneProgressOptions) {
178
+ function is(value) {
179
+ const candidate = value;
180
+ return Is.objectLiteral(candidate) && (candidate.workDoneProgress === undefined || Is.boolean(candidate.workDoneProgress));
181
+ }
182
+ WorkDoneProgressOptions.is = is;
183
+ function hasWorkDoneProgress(value) {
184
+ const candidate = value;
185
+ return candidate && Is.boolean(candidate.workDoneProgress);
186
+ }
187
+ WorkDoneProgressOptions.hasWorkDoneProgress = hasWorkDoneProgress;
188
+ })(WorkDoneProgressOptions = exports.WorkDoneProgressOptions || (exports.WorkDoneProgressOptions = {}));
189
+ /**
190
+ * The initialize request is sent from the client to the server.
191
+ * It is sent once as the request after starting up the server.
192
+ * The requests parameter is of type [InitializeParams](#InitializeParams)
193
+ * the response if of type [InitializeResult](#InitializeResult) of a Thenable that
194
+ * resolves to such.
195
+ */
196
+ var InitializeRequest;
197
+ (function (InitializeRequest) {
198
+ InitializeRequest.type = new messages_1.ProtocolRequestType('initialize');
199
+ })(InitializeRequest = exports.InitializeRequest || (exports.InitializeRequest = {}));
200
+ /**
201
+ * Known error codes for an `InitializeError`;
202
+ */
203
+ var InitializeError;
204
+ (function (InitializeError) {
205
+ /**
206
+ * If the protocol version provided by the client can't be handled by the server.
207
+ * @deprecated This initialize error got replaced by client capabilities. There is
208
+ * no version handshake in version 3.0x
209
+ */
210
+ InitializeError.unknownProtocolVersion = 1;
211
+ })(InitializeError = exports.InitializeError || (exports.InitializeError = {}));
212
+ /**
213
+ * The initialized notification is sent from the client to the
214
+ * server after the client is fully initialized and the server
215
+ * is allowed to send requests from the server to the client.
216
+ */
217
+ var InitializedNotification;
218
+ (function (InitializedNotification) {
219
+ InitializedNotification.type = new messages_1.ProtocolNotificationType('initialized');
220
+ })(InitializedNotification = exports.InitializedNotification || (exports.InitializedNotification = {}));
221
+ //---- Shutdown Method ----
222
+ /**
223
+ * A shutdown request is sent from the client to the server.
224
+ * It is sent once when the client decides to shutdown the
225
+ * server. The only notification that is sent after a shutdown request
226
+ * is the exit event.
227
+ */
228
+ var ShutdownRequest;
229
+ (function (ShutdownRequest) {
230
+ ShutdownRequest.type = new messages_1.ProtocolRequestType0('shutdown');
231
+ })(ShutdownRequest = exports.ShutdownRequest || (exports.ShutdownRequest = {}));
232
+ //---- Exit Notification ----
233
+ /**
234
+ * The exit event is sent from the client to the server to
235
+ * ask the server to exit its process.
236
+ */
237
+ var ExitNotification;
238
+ (function (ExitNotification) {
239
+ ExitNotification.type = new messages_1.ProtocolNotificationType0('exit');
240
+ })(ExitNotification = exports.ExitNotification || (exports.ExitNotification = {}));
241
+ /**
242
+ * The configuration change notification is sent from the client to the server
243
+ * when the client's configuration has changed. The notification contains
244
+ * the changed configuration as defined by the language client.
245
+ */
246
+ var DidChangeConfigurationNotification;
247
+ (function (DidChangeConfigurationNotification) {
248
+ DidChangeConfigurationNotification.type = new messages_1.ProtocolNotificationType('workspace/didChangeConfiguration');
249
+ })(DidChangeConfigurationNotification = exports.DidChangeConfigurationNotification || (exports.DidChangeConfigurationNotification = {}));
250
+ //---- Message show and log notifications ----
251
+ /**
252
+ * The message type
253
+ */
254
+ var MessageType;
255
+ (function (MessageType) {
256
+ /**
257
+ * An error message.
258
+ */
259
+ MessageType.Error = 1;
260
+ /**
261
+ * A warning message.
262
+ */
263
+ MessageType.Warning = 2;
264
+ /**
265
+ * An information message.
266
+ */
267
+ MessageType.Info = 3;
268
+ /**
269
+ * A log message.
270
+ */
271
+ MessageType.Log = 4;
272
+ })(MessageType = exports.MessageType || (exports.MessageType = {}));
273
+ /**
274
+ * The show message notification is sent from a server to a client to ask
275
+ * the client to display a particular message in the user interface.
276
+ */
277
+ var ShowMessageNotification;
278
+ (function (ShowMessageNotification) {
279
+ ShowMessageNotification.type = new messages_1.ProtocolNotificationType('window/showMessage');
280
+ })(ShowMessageNotification = exports.ShowMessageNotification || (exports.ShowMessageNotification = {}));
281
+ /**
282
+ * The show message request is sent from the server to the client to show a message
283
+ * and a set of options actions to the user.
284
+ */
285
+ var ShowMessageRequest;
286
+ (function (ShowMessageRequest) {
287
+ ShowMessageRequest.type = new messages_1.ProtocolRequestType('window/showMessageRequest');
288
+ })(ShowMessageRequest = exports.ShowMessageRequest || (exports.ShowMessageRequest = {}));
289
+ /**
290
+ * The log message notification is sent from the server to the client to ask
291
+ * the client to log a particular message.
292
+ */
293
+ var LogMessageNotification;
294
+ (function (LogMessageNotification) {
295
+ LogMessageNotification.type = new messages_1.ProtocolNotificationType('window/logMessage');
296
+ })(LogMessageNotification = exports.LogMessageNotification || (exports.LogMessageNotification = {}));
297
+ //---- Telemetry notification
298
+ /**
299
+ * The telemetry event notification is sent from the server to the client to ask
300
+ * the client to log telemetry data.
301
+ */
302
+ var TelemetryEventNotification;
303
+ (function (TelemetryEventNotification) {
304
+ TelemetryEventNotification.type = new messages_1.ProtocolNotificationType('telemetry/event');
305
+ })(TelemetryEventNotification = exports.TelemetryEventNotification || (exports.TelemetryEventNotification = {}));
306
+ /**
307
+ * Defines how the host (editor) should sync
308
+ * document changes to the language server.
309
+ */
310
+ var TextDocumentSyncKind;
311
+ (function (TextDocumentSyncKind) {
312
+ /**
313
+ * Documents should not be synced at all.
314
+ */
315
+ TextDocumentSyncKind.None = 0;
316
+ /**
317
+ * Documents are synced by always sending the full content
318
+ * of the document.
319
+ */
320
+ TextDocumentSyncKind.Full = 1;
321
+ /**
322
+ * Documents are synced by sending the full content on open.
323
+ * After that only incremental updates to the document are
324
+ * send.
325
+ */
326
+ TextDocumentSyncKind.Incremental = 2;
327
+ })(TextDocumentSyncKind = exports.TextDocumentSyncKind || (exports.TextDocumentSyncKind = {}));
328
+ /**
329
+ * The document open notification is sent from the client to the server to signal
330
+ * newly opened text documents. The document's truth is now managed by the client
331
+ * and the server must not try to read the document's truth using the document's
332
+ * uri. Open in this sense means it is managed by the client. It doesn't necessarily
333
+ * mean that its content is presented in an editor. An open notification must not
334
+ * be sent more than once without a corresponding close notification send before.
335
+ * This means open and close notification must be balanced and the max open count
336
+ * is one.
337
+ */
338
+ var DidOpenTextDocumentNotification;
339
+ (function (DidOpenTextDocumentNotification) {
340
+ DidOpenTextDocumentNotification.method = 'textDocument/didOpen';
341
+ DidOpenTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidOpenTextDocumentNotification.method);
342
+ })(DidOpenTextDocumentNotification = exports.DidOpenTextDocumentNotification || (exports.DidOpenTextDocumentNotification = {}));
343
+ var TextDocumentContentChangeEvent;
344
+ (function (TextDocumentContentChangeEvent) {
345
+ /**
346
+ * Checks whether the information describes a delta event.
347
+ */
348
+ function isIncremental(event) {
349
+ let candidate = event;
350
+ return candidate !== undefined && candidate !== null &&
351
+ typeof candidate.text === 'string' && candidate.range !== undefined &&
352
+ (candidate.rangeLength === undefined || typeof candidate.rangeLength === 'number');
353
+ }
354
+ TextDocumentContentChangeEvent.isIncremental = isIncremental;
355
+ /**
356
+ * Checks whether the information describes a full replacement event.
357
+ */
358
+ function isFull(event) {
359
+ let candidate = event;
360
+ return candidate !== undefined && candidate !== null &&
361
+ typeof candidate.text === 'string' && candidate.range === undefined && candidate.rangeLength === undefined;
362
+ }
363
+ TextDocumentContentChangeEvent.isFull = isFull;
364
+ })(TextDocumentContentChangeEvent = exports.TextDocumentContentChangeEvent || (exports.TextDocumentContentChangeEvent = {}));
365
+ /**
366
+ * The document change notification is sent from the client to the server to signal
367
+ * changes to a text document.
368
+ */
369
+ var DidChangeTextDocumentNotification;
370
+ (function (DidChangeTextDocumentNotification) {
371
+ DidChangeTextDocumentNotification.method = 'textDocument/didChange';
372
+ DidChangeTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidChangeTextDocumentNotification.method);
373
+ })(DidChangeTextDocumentNotification = exports.DidChangeTextDocumentNotification || (exports.DidChangeTextDocumentNotification = {}));
374
+ /**
375
+ * The document close notification is sent from the client to the server when
376
+ * the document got closed in the client. The document's truth now exists where
377
+ * the document's uri points to (e.g. if the document's uri is a file uri the
378
+ * truth now exists on disk). As with the open notification the close notification
379
+ * is about managing the document's content. Receiving a close notification
380
+ * doesn't mean that the document was open in an editor before. A close
381
+ * notification requires a previous open notification to be sent.
382
+ */
383
+ var DidCloseTextDocumentNotification;
384
+ (function (DidCloseTextDocumentNotification) {
385
+ DidCloseTextDocumentNotification.method = 'textDocument/didClose';
386
+ DidCloseTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseTextDocumentNotification.method);
387
+ })(DidCloseTextDocumentNotification = exports.DidCloseTextDocumentNotification || (exports.DidCloseTextDocumentNotification = {}));
388
+ /**
389
+ * The document save notification is sent from the client to the server when
390
+ * the document got saved in the client.
391
+ */
392
+ var DidSaveTextDocumentNotification;
393
+ (function (DidSaveTextDocumentNotification) {
394
+ DidSaveTextDocumentNotification.method = 'textDocument/didSave';
395
+ DidSaveTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidSaveTextDocumentNotification.method);
396
+ })(DidSaveTextDocumentNotification = exports.DidSaveTextDocumentNotification || (exports.DidSaveTextDocumentNotification = {}));
397
+ /**
398
+ * Represents reasons why a text document is saved.
399
+ */
400
+ var TextDocumentSaveReason;
401
+ (function (TextDocumentSaveReason) {
402
+ /**
403
+ * Manually triggered, e.g. by the user pressing save, by starting debugging,
404
+ * or by an API call.
405
+ */
406
+ TextDocumentSaveReason.Manual = 1;
407
+ /**
408
+ * Automatic after a delay.
409
+ */
410
+ TextDocumentSaveReason.AfterDelay = 2;
411
+ /**
412
+ * When the editor lost focus.
413
+ */
414
+ TextDocumentSaveReason.FocusOut = 3;
415
+ })(TextDocumentSaveReason = exports.TextDocumentSaveReason || (exports.TextDocumentSaveReason = {}));
416
+ /**
417
+ * A document will save notification is sent from the client to the server before
418
+ * the document is actually saved.
419
+ */
420
+ var WillSaveTextDocumentNotification;
421
+ (function (WillSaveTextDocumentNotification) {
422
+ WillSaveTextDocumentNotification.method = 'textDocument/willSave';
423
+ WillSaveTextDocumentNotification.type = new messages_1.ProtocolNotificationType(WillSaveTextDocumentNotification.method);
424
+ })(WillSaveTextDocumentNotification = exports.WillSaveTextDocumentNotification || (exports.WillSaveTextDocumentNotification = {}));
425
+ /**
426
+ * A document will save request is sent from the client to the server before
427
+ * the document is actually saved. The request can return an array of TextEdits
428
+ * which will be applied to the text document before it is saved. Please note that
429
+ * clients might drop results if computing the text edits took too long or if a
430
+ * server constantly fails on this request. This is done to keep the save fast and
431
+ * reliable.
432
+ */
433
+ var WillSaveTextDocumentWaitUntilRequest;
434
+ (function (WillSaveTextDocumentWaitUntilRequest) {
435
+ WillSaveTextDocumentWaitUntilRequest.method = 'textDocument/willSaveWaitUntil';
436
+ WillSaveTextDocumentWaitUntilRequest.type = new messages_1.ProtocolRequestType(WillSaveTextDocumentWaitUntilRequest.method);
437
+ })(WillSaveTextDocumentWaitUntilRequest = exports.WillSaveTextDocumentWaitUntilRequest || (exports.WillSaveTextDocumentWaitUntilRequest = {}));
438
+ /**
439
+ * The watched files notification is sent from the client to the server when
440
+ * the client detects changes to file watched by the language client.
441
+ */
442
+ var DidChangeWatchedFilesNotification;
443
+ (function (DidChangeWatchedFilesNotification) {
444
+ DidChangeWatchedFilesNotification.type = new messages_1.ProtocolNotificationType('workspace/didChangeWatchedFiles');
445
+ })(DidChangeWatchedFilesNotification = exports.DidChangeWatchedFilesNotification || (exports.DidChangeWatchedFilesNotification = {}));
446
+ /**
447
+ * The file event type
448
+ */
449
+ var FileChangeType;
450
+ (function (FileChangeType) {
451
+ /**
452
+ * The file got created.
453
+ */
454
+ FileChangeType.Created = 1;
455
+ /**
456
+ * The file got changed.
457
+ */
458
+ FileChangeType.Changed = 2;
459
+ /**
460
+ * The file got deleted.
461
+ */
462
+ FileChangeType.Deleted = 3;
463
+ })(FileChangeType = exports.FileChangeType || (exports.FileChangeType = {}));
464
+ var WatchKind;
465
+ (function (WatchKind) {
466
+ /**
467
+ * Interested in create events.
468
+ */
469
+ WatchKind.Create = 1;
470
+ /**
471
+ * Interested in change events
472
+ */
473
+ WatchKind.Change = 2;
474
+ /**
475
+ * Interested in delete events
476
+ */
477
+ WatchKind.Delete = 4;
478
+ })(WatchKind = exports.WatchKind || (exports.WatchKind = {}));
479
+ /**
480
+ * Diagnostics notification are sent from the server to the client to signal
481
+ * results of validation runs.
482
+ */
483
+ var PublishDiagnosticsNotification;
484
+ (function (PublishDiagnosticsNotification) {
485
+ PublishDiagnosticsNotification.type = new messages_1.ProtocolNotificationType('textDocument/publishDiagnostics');
486
+ })(PublishDiagnosticsNotification = exports.PublishDiagnosticsNotification || (exports.PublishDiagnosticsNotification = {}));
487
+ /**
488
+ * How a completion was triggered
489
+ */
490
+ var CompletionTriggerKind;
491
+ (function (CompletionTriggerKind) {
492
+ /**
493
+ * Completion was triggered by typing an identifier (24x7 code
494
+ * complete), manual invocation (e.g Ctrl+Space) or via API.
495
+ */
496
+ CompletionTriggerKind.Invoked = 1;
497
+ /**
498
+ * Completion was triggered by a trigger character specified by
499
+ * the `triggerCharacters` properties of the `CompletionRegistrationOptions`.
500
+ */
501
+ CompletionTriggerKind.TriggerCharacter = 2;
502
+ /**
503
+ * Completion was re-triggered as current completion list is incomplete
504
+ */
505
+ CompletionTriggerKind.TriggerForIncompleteCompletions = 3;
506
+ })(CompletionTriggerKind = exports.CompletionTriggerKind || (exports.CompletionTriggerKind = {}));
507
+ /**
508
+ * Request to request completion at a given text document position. The request's
509
+ * parameter is of type [TextDocumentPosition](#TextDocumentPosition) the response
510
+ * is of type [CompletionItem[]](#CompletionItem) or [CompletionList](#CompletionList)
511
+ * or a Thenable that resolves to such.
512
+ *
513
+ * The request can delay the computation of the [`detail`](#CompletionItem.detail)
514
+ * and [`documentation`](#CompletionItem.documentation) properties to the `completionItem/resolve`
515
+ * request. However, properties that are needed for the initial sorting and filtering, like `sortText`,
516
+ * `filterText`, `insertText`, and `textEdit`, must not be changed during resolve.
517
+ */
518
+ var CompletionRequest;
519
+ (function (CompletionRequest) {
520
+ CompletionRequest.method = 'textDocument/completion';
521
+ CompletionRequest.type = new messages_1.ProtocolRequestType(CompletionRequest.method);
522
+ })(CompletionRequest = exports.CompletionRequest || (exports.CompletionRequest = {}));
523
+ /**
524
+ * Request to resolve additional information for a given completion item.The request's
525
+ * parameter is of type [CompletionItem](#CompletionItem) the response
526
+ * is of type [CompletionItem](#CompletionItem) or a Thenable that resolves to such.
527
+ */
528
+ var CompletionResolveRequest;
529
+ (function (CompletionResolveRequest) {
530
+ CompletionResolveRequest.method = 'completionItem/resolve';
531
+ CompletionResolveRequest.type = new messages_1.ProtocolRequestType(CompletionResolveRequest.method);
532
+ })(CompletionResolveRequest = exports.CompletionResolveRequest || (exports.CompletionResolveRequest = {}));
533
+ /**
534
+ * Request to request hover information at a given text document position. The request's
535
+ * parameter is of type [TextDocumentPosition](#TextDocumentPosition) the response is of
536
+ * type [Hover](#Hover) or a Thenable that resolves to such.
537
+ */
538
+ var HoverRequest;
539
+ (function (HoverRequest) {
540
+ HoverRequest.method = 'textDocument/hover';
541
+ HoverRequest.type = new messages_1.ProtocolRequestType(HoverRequest.method);
542
+ })(HoverRequest = exports.HoverRequest || (exports.HoverRequest = {}));
543
+ /**
544
+ * How a signature help was triggered.
545
+ *
546
+ * @since 3.15.0
547
+ */
548
+ var SignatureHelpTriggerKind;
549
+ (function (SignatureHelpTriggerKind) {
550
+ /**
551
+ * Signature help was invoked manually by the user or by a command.
552
+ */
553
+ SignatureHelpTriggerKind.Invoked = 1;
554
+ /**
555
+ * Signature help was triggered by a trigger character.
556
+ */
557
+ SignatureHelpTriggerKind.TriggerCharacter = 2;
558
+ /**
559
+ * Signature help was triggered by the cursor moving or by the document content changing.
560
+ */
561
+ SignatureHelpTriggerKind.ContentChange = 3;
562
+ })(SignatureHelpTriggerKind = exports.SignatureHelpTriggerKind || (exports.SignatureHelpTriggerKind = {}));
563
+ var SignatureHelpRequest;
564
+ (function (SignatureHelpRequest) {
565
+ SignatureHelpRequest.method = 'textDocument/signatureHelp';
566
+ SignatureHelpRequest.type = new messages_1.ProtocolRequestType(SignatureHelpRequest.method);
567
+ })(SignatureHelpRequest = exports.SignatureHelpRequest || (exports.SignatureHelpRequest = {}));
568
+ /**
569
+ * A request to resolve the definition location of a symbol at a given text
570
+ * document position. The request's parameter is of type [TextDocumentPosition]
571
+ * (#TextDocumentPosition) the response is of either type [Definition](#Definition)
572
+ * or a typed array of [DefinitionLink](#DefinitionLink) or a Thenable that resolves
573
+ * to such.
574
+ */
575
+ var DefinitionRequest;
576
+ (function (DefinitionRequest) {
577
+ DefinitionRequest.method = 'textDocument/definition';
578
+ DefinitionRequest.type = new messages_1.ProtocolRequestType(DefinitionRequest.method);
579
+ })(DefinitionRequest = exports.DefinitionRequest || (exports.DefinitionRequest = {}));
580
+ /**
581
+ * A request to resolve project-wide references for the symbol denoted
582
+ * by the given text document position. The request's parameter is of
583
+ * type [ReferenceParams](#ReferenceParams) the response is of type
584
+ * [Location[]](#Location) or a Thenable that resolves to such.
585
+ */
586
+ var ReferencesRequest;
587
+ (function (ReferencesRequest) {
588
+ ReferencesRequest.method = 'textDocument/references';
589
+ ReferencesRequest.type = new messages_1.ProtocolRequestType(ReferencesRequest.method);
590
+ })(ReferencesRequest = exports.ReferencesRequest || (exports.ReferencesRequest = {}));
591
+ /**
592
+ * Request to resolve a [DocumentHighlight](#DocumentHighlight) for a given
593
+ * text document position. The request's parameter is of type [TextDocumentPosition]
594
+ * (#TextDocumentPosition) the request response is of type [DocumentHighlight[]]
595
+ * (#DocumentHighlight) or a Thenable that resolves to such.
596
+ */
597
+ var DocumentHighlightRequest;
598
+ (function (DocumentHighlightRequest) {
599
+ DocumentHighlightRequest.method = 'textDocument/documentHighlight';
600
+ DocumentHighlightRequest.type = new messages_1.ProtocolRequestType(DocumentHighlightRequest.method);
601
+ })(DocumentHighlightRequest = exports.DocumentHighlightRequest || (exports.DocumentHighlightRequest = {}));
602
+ /**
603
+ * A request to list all symbols found in a given text document. The request's
604
+ * parameter is of type [TextDocumentIdentifier](#TextDocumentIdentifier) the
605
+ * response is of type [SymbolInformation[]](#SymbolInformation) or a Thenable
606
+ * that resolves to such.
607
+ */
608
+ var DocumentSymbolRequest;
609
+ (function (DocumentSymbolRequest) {
610
+ DocumentSymbolRequest.method = 'textDocument/documentSymbol';
611
+ DocumentSymbolRequest.type = new messages_1.ProtocolRequestType(DocumentSymbolRequest.method);
612
+ })(DocumentSymbolRequest = exports.DocumentSymbolRequest || (exports.DocumentSymbolRequest = {}));
613
+ /**
614
+ * A request to provide commands for the given text document and range.
615
+ */
616
+ var CodeActionRequest;
617
+ (function (CodeActionRequest) {
618
+ CodeActionRequest.method = 'textDocument/codeAction';
619
+ CodeActionRequest.type = new messages_1.ProtocolRequestType(CodeActionRequest.method);
620
+ })(CodeActionRequest = exports.CodeActionRequest || (exports.CodeActionRequest = {}));
621
+ /**
622
+ * Request to resolve additional information for a given code action.The request's
623
+ * parameter is of type [CodeAction](#CodeAction) the response
624
+ * is of type [CodeAction](#CodeAction) or a Thenable that resolves to such.
625
+ */
626
+ var CodeActionResolveRequest;
627
+ (function (CodeActionResolveRequest) {
628
+ CodeActionResolveRequest.method = 'codeAction/resolve';
629
+ CodeActionResolveRequest.type = new messages_1.ProtocolRequestType(CodeActionResolveRequest.method);
630
+ })(CodeActionResolveRequest = exports.CodeActionResolveRequest || (exports.CodeActionResolveRequest = {}));
631
+ /**
632
+ * A request to list project-wide symbols matching the query string given
633
+ * by the [WorkspaceSymbolParams](#WorkspaceSymbolParams). The response is
634
+ * of type [SymbolInformation[]](#SymbolInformation) or a Thenable that
635
+ * resolves to such.
636
+ */
637
+ var WorkspaceSymbolRequest;
638
+ (function (WorkspaceSymbolRequest) {
639
+ WorkspaceSymbolRequest.method = 'workspace/symbol';
640
+ WorkspaceSymbolRequest.type = new messages_1.ProtocolRequestType(WorkspaceSymbolRequest.method);
641
+ })(WorkspaceSymbolRequest = exports.WorkspaceSymbolRequest || (exports.WorkspaceSymbolRequest = {}));
642
+ /**
643
+ * A request to provide code lens for the given text document.
644
+ */
645
+ var CodeLensRequest;
646
+ (function (CodeLensRequest) {
647
+ CodeLensRequest.method = 'textDocument/codeLens';
648
+ CodeLensRequest.type = new messages_1.ProtocolRequestType(CodeLensRequest.method);
649
+ })(CodeLensRequest = exports.CodeLensRequest || (exports.CodeLensRequest = {}));
650
+ /**
651
+ * A request to resolve a command for a given code lens.
652
+ */
653
+ var CodeLensResolveRequest;
654
+ (function (CodeLensResolveRequest) {
655
+ CodeLensResolveRequest.method = 'codeLens/resolve';
656
+ CodeLensResolveRequest.type = new messages_1.ProtocolRequestType(CodeLensResolveRequest.method);
657
+ })(CodeLensResolveRequest = exports.CodeLensResolveRequest || (exports.CodeLensResolveRequest = {}));
658
+ /**
659
+ * A request to refresh all code actions
660
+ *
661
+ * @since 3.16.0
662
+ */
663
+ var CodeLensRefreshRequest;
664
+ (function (CodeLensRefreshRequest) {
665
+ CodeLensRefreshRequest.method = `workspace/codeLens/refresh`;
666
+ CodeLensRefreshRequest.type = new messages_1.ProtocolRequestType0(CodeLensRefreshRequest.method);
667
+ })(CodeLensRefreshRequest = exports.CodeLensRefreshRequest || (exports.CodeLensRefreshRequest = {}));
668
+ /**
669
+ * A request to provide document links
670
+ */
671
+ var DocumentLinkRequest;
672
+ (function (DocumentLinkRequest) {
673
+ DocumentLinkRequest.method = 'textDocument/documentLink';
674
+ DocumentLinkRequest.type = new messages_1.ProtocolRequestType(DocumentLinkRequest.method);
675
+ })(DocumentLinkRequest = exports.DocumentLinkRequest || (exports.DocumentLinkRequest = {}));
676
+ /**
677
+ * Request to resolve additional information for a given document link. The request's
678
+ * parameter is of type [DocumentLink](#DocumentLink) the response
679
+ * is of type [DocumentLink](#DocumentLink) or a Thenable that resolves to such.
680
+ */
681
+ var DocumentLinkResolveRequest;
682
+ (function (DocumentLinkResolveRequest) {
683
+ DocumentLinkResolveRequest.method = 'documentLink/resolve';
684
+ DocumentLinkResolveRequest.type = new messages_1.ProtocolRequestType(DocumentLinkResolveRequest.method);
685
+ })(DocumentLinkResolveRequest = exports.DocumentLinkResolveRequest || (exports.DocumentLinkResolveRequest = {}));
686
+ /**
687
+ * A request to to format a whole document.
688
+ */
689
+ var DocumentFormattingRequest;
690
+ (function (DocumentFormattingRequest) {
691
+ DocumentFormattingRequest.method = 'textDocument/formatting';
692
+ DocumentFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentFormattingRequest.method);
693
+ })(DocumentFormattingRequest = exports.DocumentFormattingRequest || (exports.DocumentFormattingRequest = {}));
694
+ /**
695
+ * A request to to format a range in a document.
696
+ */
697
+ var DocumentRangeFormattingRequest;
698
+ (function (DocumentRangeFormattingRequest) {
699
+ DocumentRangeFormattingRequest.method = 'textDocument/rangeFormatting';
700
+ DocumentRangeFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentRangeFormattingRequest.method);
701
+ })(DocumentRangeFormattingRequest = exports.DocumentRangeFormattingRequest || (exports.DocumentRangeFormattingRequest = {}));
702
+ /**
703
+ * A request to format a document on type.
704
+ */
705
+ var DocumentOnTypeFormattingRequest;
706
+ (function (DocumentOnTypeFormattingRequest) {
707
+ DocumentOnTypeFormattingRequest.method = 'textDocument/onTypeFormatting';
708
+ DocumentOnTypeFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentOnTypeFormattingRequest.method);
709
+ })(DocumentOnTypeFormattingRequest = exports.DocumentOnTypeFormattingRequest || (exports.DocumentOnTypeFormattingRequest = {}));
710
+ //---- Rename ----------------------------------------------
711
+ var PrepareSupportDefaultBehavior;
712
+ (function (PrepareSupportDefaultBehavior) {
713
+ /**
714
+ * The client's default behavior is to select the identifier
715
+ * according the to language's syntax rule.
716
+ */
717
+ PrepareSupportDefaultBehavior.Identifier = 1;
718
+ })(PrepareSupportDefaultBehavior = exports.PrepareSupportDefaultBehavior || (exports.PrepareSupportDefaultBehavior = {}));
719
+ /**
720
+ * A request to rename a symbol.
721
+ */
722
+ var RenameRequest;
723
+ (function (RenameRequest) {
724
+ RenameRequest.method = 'textDocument/rename';
725
+ RenameRequest.type = new messages_1.ProtocolRequestType(RenameRequest.method);
726
+ })(RenameRequest = exports.RenameRequest || (exports.RenameRequest = {}));
727
+ /**
728
+ * A request to test and perform the setup necessary for a rename.
729
+ *
730
+ * @since 3.16 - support for default behavior
731
+ */
732
+ var PrepareRenameRequest;
733
+ (function (PrepareRenameRequest) {
734
+ PrepareRenameRequest.method = 'textDocument/prepareRename';
735
+ PrepareRenameRequest.type = new messages_1.ProtocolRequestType(PrepareRenameRequest.method);
736
+ })(PrepareRenameRequest = exports.PrepareRenameRequest || (exports.PrepareRenameRequest = {}));
737
+ /**
738
+ * A request send from the client to the server to execute a command. The request might return
739
+ * a workspace edit which the client will apply to the workspace.
740
+ */
741
+ var ExecuteCommandRequest;
742
+ (function (ExecuteCommandRequest) {
743
+ ExecuteCommandRequest.type = new messages_1.ProtocolRequestType('workspace/executeCommand');
744
+ })(ExecuteCommandRequest = exports.ExecuteCommandRequest || (exports.ExecuteCommandRequest = {}));
745
+ /**
746
+ * A request sent from the server to the client to modified certain resources.
747
+ */
748
+ var ApplyWorkspaceEditRequest;
749
+ (function (ApplyWorkspaceEditRequest) {
750
+ ApplyWorkspaceEditRequest.type = new messages_1.ProtocolRequestType('workspace/applyEdit');
751
+ })(ApplyWorkspaceEditRequest = exports.ApplyWorkspaceEditRequest || (exports.ApplyWorkspaceEditRequest = {}));
752
+ //# sourceMappingURL=protocol.js.map