vscode-languageserver-protocol 3.17.4-next.2 → 3.17.4
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/common/api.d.ts +1 -1
- package/lib/common/api.js +1 -1
- package/lib/common/messages.js +1 -1
- package/lib/common/protocol.callHierarchy.js +3 -3
- package/lib/common/protocol.colorProvider.js +2 -2
- package/lib/common/protocol.configuration.js +1 -1
- package/lib/common/protocol.d.ts +47 -35
- package/lib/common/protocol.declaration.d.ts +3 -4
- package/lib/common/protocol.declaration.js +4 -5
- package/lib/common/protocol.diagnostic.d.ts +21 -21
- package/lib/common/protocol.diagnostic.js +5 -5
- package/lib/common/protocol.fileOperations.d.ts +1 -1
- package/lib/common/protocol.fileOperations.js +7 -7
- package/lib/common/protocol.foldingRange.d.ts +33 -2
- package/lib/common/protocol.foldingRange.js +12 -2
- package/lib/common/protocol.implementation.d.ts +2 -3
- package/lib/common/protocol.implementation.js +3 -4
- package/lib/common/protocol.inlayHint.d.ts +5 -5
- package/lib/common/protocol.inlayHint.js +3 -3
- package/lib/common/protocol.inlineCompletion.d.ts +4 -4
- package/lib/common/protocol.inlineCompletion.js +1 -1
- package/lib/common/protocol.inlineValue.d.ts +5 -5
- package/lib/common/protocol.inlineValue.js +2 -2
- package/lib/common/protocol.js +80 -74
- package/lib/common/protocol.linkedEditingRange.js +1 -1
- package/lib/common/protocol.moniker.d.ts +2 -2
- package/lib/common/protocol.moniker.js +3 -3
- package/lib/common/protocol.notebook.d.ts +15 -15
- package/lib/common/protocol.notebook.js +10 -10
- package/lib/common/protocol.progress.js +3 -3
- package/lib/common/protocol.selectionRange.js +1 -1
- package/lib/common/protocol.semanticTokens.d.ts +1 -1
- package/lib/common/protocol.semanticTokens.js +6 -6
- package/lib/common/protocol.showDocument.js +1 -1
- package/lib/common/protocol.typeDefinition.d.ts +2 -3
- package/lib/common/protocol.typeDefinition.js +3 -4
- package/lib/common/protocol.typeHierarchy.d.ts +6 -6
- package/lib/common/protocol.typeHierarchy.js +3 -3
- package/lib/common/protocol.workspaceFolder.js +2 -2
- package/package.json +5 -5
package/lib/common/protocol.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
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.RelativePattern = 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.InitializeErrorCodes = exports.InitializeRequest = exports.WorkDoneProgressOptions = exports.TextDocumentRegistrationOptions = exports.StaticRegistrationOptions = exports.PositionEncodingKind = exports.FailureHandlingKind = exports.ResourceOperationKind = exports.UnregistrationRequest = exports.RegistrationRequest = exports.DocumentSelector = exports.NotebookCellTextDocumentFilter = exports.NotebookDocumentFilter = exports.TextDocumentFilter = void 0;
|
|
8
|
-
exports.
|
|
9
|
-
exports.InlineCompletionRequest = exports.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.ExecutionSummary = exports.NotebookCellKind = exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = exports.InlineValueRefreshRequest = exports.InlineValueRequest = exports.TypeHierarchySupertypesRequest = exports.TypeHierarchySubtypesRequest = 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.FoldingRangeRefreshRequest = 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.DocumentRangesFormattingRequest = exports.DocumentRangeFormattingRequest = exports.DocumentFormattingRequest = exports.DocumentLinkResolveRequest = exports.DocumentLinkRequest = exports.CodeLensRefreshRequest = exports.CodeLensResolveRequest = exports.CodeLensRequest = exports.WorkspaceSymbolResolveRequest = void 0;
|
|
9
|
+
exports.InlineCompletionRequest = exports.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.ExecutionSummary = exports.NotebookCellKind = exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = exports.InlineValueRefreshRequest = exports.InlineValueRequest = exports.TypeHierarchySupertypesRequest = exports.TypeHierarchySubtypesRequest = exports.TypeHierarchyPrepareRequest = void 0;
|
|
10
10
|
const messages_1 = require("./messages");
|
|
11
11
|
const vscode_languageserver_types_1 = require("vscode-languageserver-types");
|
|
12
12
|
const Is = require("./utils/is");
|
|
@@ -24,6 +24,7 @@ Object.defineProperty(exports, "DocumentColorRequest", { enumerable: true, get:
|
|
|
24
24
|
Object.defineProperty(exports, "ColorPresentationRequest", { enumerable: true, get: function () { return protocol_colorProvider_1.ColorPresentationRequest; } });
|
|
25
25
|
const protocol_foldingRange_1 = require("./protocol.foldingRange");
|
|
26
26
|
Object.defineProperty(exports, "FoldingRangeRequest", { enumerable: true, get: function () { return protocol_foldingRange_1.FoldingRangeRequest; } });
|
|
27
|
+
Object.defineProperty(exports, "FoldingRangeRefreshRequest", { enumerable: true, get: function () { return protocol_foldingRange_1.FoldingRangeRefreshRequest; } });
|
|
27
28
|
const protocol_declaration_1 = require("./protocol.declaration");
|
|
28
29
|
Object.defineProperty(exports, "DeclarationRequest", { enumerable: true, get: function () { return protocol_declaration_1.DeclarationRequest; } });
|
|
29
30
|
const protocol_selectionRange_1 = require("./protocol.selectionRange");
|
|
@@ -104,7 +105,7 @@ var TextDocumentFilter;
|
|
|
104
105
|
return Is.string(candidate) || (Is.string(candidate.language) || Is.string(candidate.scheme) || Is.string(candidate.pattern));
|
|
105
106
|
}
|
|
106
107
|
TextDocumentFilter.is = is;
|
|
107
|
-
})(TextDocumentFilter
|
|
108
|
+
})(TextDocumentFilter || (exports.TextDocumentFilter = TextDocumentFilter = {}));
|
|
108
109
|
/**
|
|
109
110
|
* The NotebookDocumentFilter namespace provides helper functions to work with
|
|
110
111
|
* {@link NotebookDocumentFilter} literals.
|
|
@@ -118,7 +119,7 @@ var NotebookDocumentFilter;
|
|
|
118
119
|
return Is.objectLiteral(candidate) && (Is.string(candidate.notebookType) || Is.string(candidate.scheme) || Is.string(candidate.pattern));
|
|
119
120
|
}
|
|
120
121
|
NotebookDocumentFilter.is = is;
|
|
121
|
-
})(NotebookDocumentFilter
|
|
122
|
+
})(NotebookDocumentFilter || (exports.NotebookDocumentFilter = NotebookDocumentFilter = {}));
|
|
122
123
|
/**
|
|
123
124
|
* The NotebookCellTextDocumentFilter namespace provides helper functions to work with
|
|
124
125
|
* {@link NotebookCellTextDocumentFilter} literals.
|
|
@@ -134,7 +135,7 @@ var NotebookCellTextDocumentFilter;
|
|
|
134
135
|
&& (candidate.language === undefined || Is.string(candidate.language));
|
|
135
136
|
}
|
|
136
137
|
NotebookCellTextDocumentFilter.is = is;
|
|
137
|
-
})(NotebookCellTextDocumentFilter
|
|
138
|
+
})(NotebookCellTextDocumentFilter || (exports.NotebookCellTextDocumentFilter = NotebookCellTextDocumentFilter = {}));
|
|
138
139
|
/**
|
|
139
140
|
* The DocumentSelector namespace provides helper functions to work with
|
|
140
141
|
* {@link DocumentSelector}s.
|
|
@@ -153,7 +154,7 @@ var DocumentSelector;
|
|
|
153
154
|
return true;
|
|
154
155
|
}
|
|
155
156
|
DocumentSelector.is = is;
|
|
156
|
-
})(DocumentSelector
|
|
157
|
+
})(DocumentSelector || (exports.DocumentSelector = DocumentSelector = {}));
|
|
157
158
|
/**
|
|
158
159
|
* The `client/registerCapability` request is sent from the server to the client to register a new capability
|
|
159
160
|
* handler on the client side.
|
|
@@ -163,7 +164,7 @@ var RegistrationRequest;
|
|
|
163
164
|
RegistrationRequest.method = 'client/registerCapability';
|
|
164
165
|
RegistrationRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
165
166
|
RegistrationRequest.type = new messages_1.ProtocolRequestType(RegistrationRequest.method);
|
|
166
|
-
})(RegistrationRequest
|
|
167
|
+
})(RegistrationRequest || (exports.RegistrationRequest = RegistrationRequest = {}));
|
|
167
168
|
/**
|
|
168
169
|
* The `client/unregisterCapability` request is sent from the server to the client to unregister a previously registered capability
|
|
169
170
|
* handler on the client side.
|
|
@@ -173,7 +174,7 @@ var UnregistrationRequest;
|
|
|
173
174
|
UnregistrationRequest.method = 'client/unregisterCapability';
|
|
174
175
|
UnregistrationRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
175
176
|
UnregistrationRequest.type = new messages_1.ProtocolRequestType(UnregistrationRequest.method);
|
|
176
|
-
})(UnregistrationRequest
|
|
177
|
+
})(UnregistrationRequest || (exports.UnregistrationRequest = UnregistrationRequest = {}));
|
|
177
178
|
var ResourceOperationKind;
|
|
178
179
|
(function (ResourceOperationKind) {
|
|
179
180
|
/**
|
|
@@ -188,7 +189,7 @@ var ResourceOperationKind;
|
|
|
188
189
|
* Supports deleting existing files and folders.
|
|
189
190
|
*/
|
|
190
191
|
ResourceOperationKind.Delete = 'delete';
|
|
191
|
-
})(ResourceOperationKind
|
|
192
|
+
})(ResourceOperationKind || (exports.ResourceOperationKind = ResourceOperationKind = {}));
|
|
192
193
|
var FailureHandlingKind;
|
|
193
194
|
(function (FailureHandlingKind) {
|
|
194
195
|
/**
|
|
@@ -212,7 +213,7 @@ var FailureHandlingKind;
|
|
|
212
213
|
* guarantee that this is succeeding.
|
|
213
214
|
*/
|
|
214
215
|
FailureHandlingKind.Undo = 'undo';
|
|
215
|
-
})(FailureHandlingKind
|
|
216
|
+
})(FailureHandlingKind || (exports.FailureHandlingKind = FailureHandlingKind = {}));
|
|
216
217
|
/**
|
|
217
218
|
* A set of predefined position encoding kinds.
|
|
218
219
|
*
|
|
@@ -239,7 +240,7 @@ var PositionEncodingKind;
|
|
|
239
240
|
* encoding-agnostic representation of character offsets.
|
|
240
241
|
*/
|
|
241
242
|
PositionEncodingKind.UTF32 = 'utf-32';
|
|
242
|
-
})(PositionEncodingKind
|
|
243
|
+
})(PositionEncodingKind || (exports.PositionEncodingKind = PositionEncodingKind = {}));
|
|
243
244
|
/**
|
|
244
245
|
* The StaticRegistrationOptions namespace provides helper functions to work with
|
|
245
246
|
* {@link StaticRegistrationOptions} literals.
|
|
@@ -251,7 +252,7 @@ var StaticRegistrationOptions;
|
|
|
251
252
|
return candidate && Is.string(candidate.id) && candidate.id.length > 0;
|
|
252
253
|
}
|
|
253
254
|
StaticRegistrationOptions.hasId = hasId;
|
|
254
|
-
})(StaticRegistrationOptions
|
|
255
|
+
})(StaticRegistrationOptions || (exports.StaticRegistrationOptions = StaticRegistrationOptions = {}));
|
|
255
256
|
/**
|
|
256
257
|
* The TextDocumentRegistrationOptions namespace provides helper functions to work with
|
|
257
258
|
* {@link TextDocumentRegistrationOptions} literals.
|
|
@@ -263,7 +264,7 @@ var TextDocumentRegistrationOptions;
|
|
|
263
264
|
return candidate && (candidate.documentSelector === null || DocumentSelector.is(candidate.documentSelector));
|
|
264
265
|
}
|
|
265
266
|
TextDocumentRegistrationOptions.is = is;
|
|
266
|
-
})(TextDocumentRegistrationOptions
|
|
267
|
+
})(TextDocumentRegistrationOptions || (exports.TextDocumentRegistrationOptions = TextDocumentRegistrationOptions = {}));
|
|
267
268
|
/**
|
|
268
269
|
* The WorkDoneProgressOptions namespace provides helper functions to work with
|
|
269
270
|
* {@link WorkDoneProgressOptions} literals.
|
|
@@ -280,7 +281,7 @@ var WorkDoneProgressOptions;
|
|
|
280
281
|
return candidate && Is.boolean(candidate.workDoneProgress);
|
|
281
282
|
}
|
|
282
283
|
WorkDoneProgressOptions.hasWorkDoneProgress = hasWorkDoneProgress;
|
|
283
|
-
})(WorkDoneProgressOptions
|
|
284
|
+
})(WorkDoneProgressOptions || (exports.WorkDoneProgressOptions = WorkDoneProgressOptions = {}));
|
|
284
285
|
/**
|
|
285
286
|
* The initialize request is sent from the client to the server.
|
|
286
287
|
* It is sent once as the request after starting up the server.
|
|
@@ -293,7 +294,7 @@ var InitializeRequest;
|
|
|
293
294
|
InitializeRequest.method = 'initialize';
|
|
294
295
|
InitializeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
295
296
|
InitializeRequest.type = new messages_1.ProtocolRequestType(InitializeRequest.method);
|
|
296
|
-
})(InitializeRequest
|
|
297
|
+
})(InitializeRequest || (exports.InitializeRequest = InitializeRequest = {}));
|
|
297
298
|
/**
|
|
298
299
|
* Known error codes for an `InitializeErrorCodes`;
|
|
299
300
|
*/
|
|
@@ -306,7 +307,7 @@ var InitializeErrorCodes;
|
|
|
306
307
|
* no version handshake in version 3.0x
|
|
307
308
|
*/
|
|
308
309
|
InitializeErrorCodes.unknownProtocolVersion = 1;
|
|
309
|
-
})(InitializeErrorCodes
|
|
310
|
+
})(InitializeErrorCodes || (exports.InitializeErrorCodes = InitializeErrorCodes = {}));
|
|
310
311
|
/**
|
|
311
312
|
* The initialized notification is sent from the client to the
|
|
312
313
|
* server after the client is fully initialized and the server
|
|
@@ -317,7 +318,7 @@ var InitializedNotification;
|
|
|
317
318
|
InitializedNotification.method = 'initialized';
|
|
318
319
|
InitializedNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
319
320
|
InitializedNotification.type = new messages_1.ProtocolNotificationType(InitializedNotification.method);
|
|
320
|
-
})(InitializedNotification
|
|
321
|
+
})(InitializedNotification || (exports.InitializedNotification = InitializedNotification = {}));
|
|
321
322
|
//---- Shutdown Method ----
|
|
322
323
|
/**
|
|
323
324
|
* A shutdown request is sent from the client to the server.
|
|
@@ -330,7 +331,7 @@ var ShutdownRequest;
|
|
|
330
331
|
ShutdownRequest.method = 'shutdown';
|
|
331
332
|
ShutdownRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
332
333
|
ShutdownRequest.type = new messages_1.ProtocolRequestType0(ShutdownRequest.method);
|
|
333
|
-
})(ShutdownRequest
|
|
334
|
+
})(ShutdownRequest || (exports.ShutdownRequest = ShutdownRequest = {}));
|
|
334
335
|
//---- Exit Notification ----
|
|
335
336
|
/**
|
|
336
337
|
* The exit event is sent from the client to the server to
|
|
@@ -341,7 +342,7 @@ var ExitNotification;
|
|
|
341
342
|
ExitNotification.method = 'exit';
|
|
342
343
|
ExitNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
343
344
|
ExitNotification.type = new messages_1.ProtocolNotificationType0(ExitNotification.method);
|
|
344
|
-
})(ExitNotification
|
|
345
|
+
})(ExitNotification || (exports.ExitNotification = ExitNotification = {}));
|
|
345
346
|
/**
|
|
346
347
|
* The configuration change notification is sent from the client to the server
|
|
347
348
|
* when the client's configuration has changed. The notification contains
|
|
@@ -352,7 +353,7 @@ var DidChangeConfigurationNotification;
|
|
|
352
353
|
DidChangeConfigurationNotification.method = 'workspace/didChangeConfiguration';
|
|
353
354
|
DidChangeConfigurationNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
354
355
|
DidChangeConfigurationNotification.type = new messages_1.ProtocolNotificationType(DidChangeConfigurationNotification.method);
|
|
355
|
-
})(DidChangeConfigurationNotification
|
|
356
|
+
})(DidChangeConfigurationNotification || (exports.DidChangeConfigurationNotification = DidChangeConfigurationNotification = {}));
|
|
356
357
|
//---- Message show and log notifications ----
|
|
357
358
|
/**
|
|
358
359
|
* The message type
|
|
@@ -375,7 +376,13 @@ var MessageType;
|
|
|
375
376
|
* A log message.
|
|
376
377
|
*/
|
|
377
378
|
MessageType.Log = 4;
|
|
378
|
-
|
|
379
|
+
/**
|
|
380
|
+
* A debug message.
|
|
381
|
+
*
|
|
382
|
+
* @since 3.18.0
|
|
383
|
+
*/
|
|
384
|
+
MessageType.Debug = 5;
|
|
385
|
+
})(MessageType || (exports.MessageType = MessageType = {}));
|
|
379
386
|
/**
|
|
380
387
|
* The show message notification is sent from a server to a client to ask
|
|
381
388
|
* the client to display a particular message in the user interface.
|
|
@@ -385,7 +392,7 @@ var ShowMessageNotification;
|
|
|
385
392
|
ShowMessageNotification.method = 'window/showMessage';
|
|
386
393
|
ShowMessageNotification.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
387
394
|
ShowMessageNotification.type = new messages_1.ProtocolNotificationType(ShowMessageNotification.method);
|
|
388
|
-
})(ShowMessageNotification
|
|
395
|
+
})(ShowMessageNotification || (exports.ShowMessageNotification = ShowMessageNotification = {}));
|
|
389
396
|
/**
|
|
390
397
|
* The show message request is sent from the server to the client to show a message
|
|
391
398
|
* and a set of options actions to the user.
|
|
@@ -395,7 +402,7 @@ var ShowMessageRequest;
|
|
|
395
402
|
ShowMessageRequest.method = 'window/showMessageRequest';
|
|
396
403
|
ShowMessageRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
397
404
|
ShowMessageRequest.type = new messages_1.ProtocolRequestType(ShowMessageRequest.method);
|
|
398
|
-
})(ShowMessageRequest
|
|
405
|
+
})(ShowMessageRequest || (exports.ShowMessageRequest = ShowMessageRequest = {}));
|
|
399
406
|
/**
|
|
400
407
|
* The log message notification is sent from the server to the client to ask
|
|
401
408
|
* the client to log a particular message.
|
|
@@ -405,7 +412,7 @@ var LogMessageNotification;
|
|
|
405
412
|
LogMessageNotification.method = 'window/logMessage';
|
|
406
413
|
LogMessageNotification.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
407
414
|
LogMessageNotification.type = new messages_1.ProtocolNotificationType(LogMessageNotification.method);
|
|
408
|
-
})(LogMessageNotification
|
|
415
|
+
})(LogMessageNotification || (exports.LogMessageNotification = LogMessageNotification = {}));
|
|
409
416
|
//---- Telemetry notification
|
|
410
417
|
/**
|
|
411
418
|
* The telemetry event notification is sent from the server to the client to ask
|
|
@@ -416,7 +423,7 @@ var TelemetryEventNotification;
|
|
|
416
423
|
TelemetryEventNotification.method = 'telemetry/event';
|
|
417
424
|
TelemetryEventNotification.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
418
425
|
TelemetryEventNotification.type = new messages_1.ProtocolNotificationType(TelemetryEventNotification.method);
|
|
419
|
-
})(TelemetryEventNotification
|
|
426
|
+
})(TelemetryEventNotification || (exports.TelemetryEventNotification = TelemetryEventNotification = {}));
|
|
420
427
|
/**
|
|
421
428
|
* Defines how the host (editor) should sync
|
|
422
429
|
* document changes to the language server.
|
|
@@ -438,7 +445,7 @@ var TextDocumentSyncKind;
|
|
|
438
445
|
* send.
|
|
439
446
|
*/
|
|
440
447
|
TextDocumentSyncKind.Incremental = 2;
|
|
441
|
-
})(TextDocumentSyncKind
|
|
448
|
+
})(TextDocumentSyncKind || (exports.TextDocumentSyncKind = TextDocumentSyncKind = {}));
|
|
442
449
|
/**
|
|
443
450
|
* The document open notification is sent from the client to the server to signal
|
|
444
451
|
* newly opened text documents. The document's truth is now managed by the client
|
|
@@ -454,7 +461,7 @@ var DidOpenTextDocumentNotification;
|
|
|
454
461
|
DidOpenTextDocumentNotification.method = 'textDocument/didOpen';
|
|
455
462
|
DidOpenTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
456
463
|
DidOpenTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidOpenTextDocumentNotification.method);
|
|
457
|
-
})(DidOpenTextDocumentNotification
|
|
464
|
+
})(DidOpenTextDocumentNotification || (exports.DidOpenTextDocumentNotification = DidOpenTextDocumentNotification = {}));
|
|
458
465
|
var TextDocumentContentChangeEvent;
|
|
459
466
|
(function (TextDocumentContentChangeEvent) {
|
|
460
467
|
/**
|
|
@@ -476,7 +483,7 @@ var TextDocumentContentChangeEvent;
|
|
|
476
483
|
typeof candidate.text === 'string' && candidate.range === undefined && candidate.rangeLength === undefined;
|
|
477
484
|
}
|
|
478
485
|
TextDocumentContentChangeEvent.isFull = isFull;
|
|
479
|
-
})(TextDocumentContentChangeEvent
|
|
486
|
+
})(TextDocumentContentChangeEvent || (exports.TextDocumentContentChangeEvent = TextDocumentContentChangeEvent = {}));
|
|
480
487
|
/**
|
|
481
488
|
* The document change notification is sent from the client to the server to signal
|
|
482
489
|
* changes to a text document.
|
|
@@ -486,7 +493,7 @@ var DidChangeTextDocumentNotification;
|
|
|
486
493
|
DidChangeTextDocumentNotification.method = 'textDocument/didChange';
|
|
487
494
|
DidChangeTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
488
495
|
DidChangeTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidChangeTextDocumentNotification.method);
|
|
489
|
-
})(DidChangeTextDocumentNotification
|
|
496
|
+
})(DidChangeTextDocumentNotification || (exports.DidChangeTextDocumentNotification = DidChangeTextDocumentNotification = {}));
|
|
490
497
|
/**
|
|
491
498
|
* The document close notification is sent from the client to the server when
|
|
492
499
|
* the document got closed in the client. The document's truth now exists where
|
|
@@ -501,7 +508,7 @@ var DidCloseTextDocumentNotification;
|
|
|
501
508
|
DidCloseTextDocumentNotification.method = 'textDocument/didClose';
|
|
502
509
|
DidCloseTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
503
510
|
DidCloseTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseTextDocumentNotification.method);
|
|
504
|
-
})(DidCloseTextDocumentNotification
|
|
511
|
+
})(DidCloseTextDocumentNotification || (exports.DidCloseTextDocumentNotification = DidCloseTextDocumentNotification = {}));
|
|
505
512
|
/**
|
|
506
513
|
* The document save notification is sent from the client to the server when
|
|
507
514
|
* the document got saved in the client.
|
|
@@ -511,7 +518,7 @@ var DidSaveTextDocumentNotification;
|
|
|
511
518
|
DidSaveTextDocumentNotification.method = 'textDocument/didSave';
|
|
512
519
|
DidSaveTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
513
520
|
DidSaveTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidSaveTextDocumentNotification.method);
|
|
514
|
-
})(DidSaveTextDocumentNotification
|
|
521
|
+
})(DidSaveTextDocumentNotification || (exports.DidSaveTextDocumentNotification = DidSaveTextDocumentNotification = {}));
|
|
515
522
|
/**
|
|
516
523
|
* Represents reasons why a text document is saved.
|
|
517
524
|
*/
|
|
@@ -530,7 +537,7 @@ var TextDocumentSaveReason;
|
|
|
530
537
|
* When the editor lost focus.
|
|
531
538
|
*/
|
|
532
539
|
TextDocumentSaveReason.FocusOut = 3;
|
|
533
|
-
})(TextDocumentSaveReason
|
|
540
|
+
})(TextDocumentSaveReason || (exports.TextDocumentSaveReason = TextDocumentSaveReason = {}));
|
|
534
541
|
/**
|
|
535
542
|
* A document will save notification is sent from the client to the server before
|
|
536
543
|
* the document is actually saved.
|
|
@@ -540,7 +547,7 @@ var WillSaveTextDocumentNotification;
|
|
|
540
547
|
WillSaveTextDocumentNotification.method = 'textDocument/willSave';
|
|
541
548
|
WillSaveTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
542
549
|
WillSaveTextDocumentNotification.type = new messages_1.ProtocolNotificationType(WillSaveTextDocumentNotification.method);
|
|
543
|
-
})(WillSaveTextDocumentNotification
|
|
550
|
+
})(WillSaveTextDocumentNotification || (exports.WillSaveTextDocumentNotification = WillSaveTextDocumentNotification = {}));
|
|
544
551
|
/**
|
|
545
552
|
* A document will save request is sent from the client to the server before
|
|
546
553
|
* the document is actually saved. The request can return an array of TextEdits
|
|
@@ -554,7 +561,7 @@ var WillSaveTextDocumentWaitUntilRequest;
|
|
|
554
561
|
WillSaveTextDocumentWaitUntilRequest.method = 'textDocument/willSaveWaitUntil';
|
|
555
562
|
WillSaveTextDocumentWaitUntilRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
556
563
|
WillSaveTextDocumentWaitUntilRequest.type = new messages_1.ProtocolRequestType(WillSaveTextDocumentWaitUntilRequest.method);
|
|
557
|
-
})(WillSaveTextDocumentWaitUntilRequest
|
|
564
|
+
})(WillSaveTextDocumentWaitUntilRequest || (exports.WillSaveTextDocumentWaitUntilRequest = WillSaveTextDocumentWaitUntilRequest = {}));
|
|
558
565
|
/**
|
|
559
566
|
* The watched files notification is sent from the client to the server when
|
|
560
567
|
* the client detects changes to file watched by the language client.
|
|
@@ -564,7 +571,7 @@ var DidChangeWatchedFilesNotification;
|
|
|
564
571
|
DidChangeWatchedFilesNotification.method = 'workspace/didChangeWatchedFiles';
|
|
565
572
|
DidChangeWatchedFilesNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
566
573
|
DidChangeWatchedFilesNotification.type = new messages_1.ProtocolNotificationType(DidChangeWatchedFilesNotification.method);
|
|
567
|
-
})(DidChangeWatchedFilesNotification
|
|
574
|
+
})(DidChangeWatchedFilesNotification || (exports.DidChangeWatchedFilesNotification = DidChangeWatchedFilesNotification = {}));
|
|
568
575
|
/**
|
|
569
576
|
* The file event type
|
|
570
577
|
*/
|
|
@@ -582,7 +589,7 @@ var FileChangeType;
|
|
|
582
589
|
* The file got deleted.
|
|
583
590
|
*/
|
|
584
591
|
FileChangeType.Deleted = 3;
|
|
585
|
-
})(FileChangeType
|
|
592
|
+
})(FileChangeType || (exports.FileChangeType = FileChangeType = {}));
|
|
586
593
|
var RelativePattern;
|
|
587
594
|
(function (RelativePattern) {
|
|
588
595
|
function is(value) {
|
|
@@ -590,7 +597,7 @@ var RelativePattern;
|
|
|
590
597
|
return Is.objectLiteral(candidate) && (vscode_languageserver_types_1.URI.is(candidate.baseUri) || vscode_languageserver_types_1.WorkspaceFolder.is(candidate.baseUri)) && Is.string(candidate.pattern);
|
|
591
598
|
}
|
|
592
599
|
RelativePattern.is = is;
|
|
593
|
-
})(RelativePattern
|
|
600
|
+
})(RelativePattern || (exports.RelativePattern = RelativePattern = {}));
|
|
594
601
|
var WatchKind;
|
|
595
602
|
(function (WatchKind) {
|
|
596
603
|
/**
|
|
@@ -605,7 +612,7 @@ var WatchKind;
|
|
|
605
612
|
* Interested in delete events
|
|
606
613
|
*/
|
|
607
614
|
WatchKind.Delete = 4;
|
|
608
|
-
})(WatchKind
|
|
615
|
+
})(WatchKind || (exports.WatchKind = WatchKind = {}));
|
|
609
616
|
/**
|
|
610
617
|
* Diagnostics notification are sent from the server to the client to signal
|
|
611
618
|
* results of validation runs.
|
|
@@ -615,7 +622,7 @@ var PublishDiagnosticsNotification;
|
|
|
615
622
|
PublishDiagnosticsNotification.method = 'textDocument/publishDiagnostics';
|
|
616
623
|
PublishDiagnosticsNotification.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
617
624
|
PublishDiagnosticsNotification.type = new messages_1.ProtocolNotificationType(PublishDiagnosticsNotification.method);
|
|
618
|
-
})(PublishDiagnosticsNotification
|
|
625
|
+
})(PublishDiagnosticsNotification || (exports.PublishDiagnosticsNotification = PublishDiagnosticsNotification = {}));
|
|
619
626
|
/**
|
|
620
627
|
* How a completion was triggered
|
|
621
628
|
*/
|
|
@@ -635,7 +642,7 @@ var CompletionTriggerKind;
|
|
|
635
642
|
* Completion was re-triggered as current completion list is incomplete
|
|
636
643
|
*/
|
|
637
644
|
CompletionTriggerKind.TriggerForIncompleteCompletions = 3;
|
|
638
|
-
})(CompletionTriggerKind
|
|
645
|
+
})(CompletionTriggerKind || (exports.CompletionTriggerKind = CompletionTriggerKind = {}));
|
|
639
646
|
/**
|
|
640
647
|
* Request to request completion at a given text document position. The request's
|
|
641
648
|
* parameter is of type {@link TextDocumentPosition} the response
|
|
@@ -652,7 +659,7 @@ var CompletionRequest;
|
|
|
652
659
|
CompletionRequest.method = 'textDocument/completion';
|
|
653
660
|
CompletionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
654
661
|
CompletionRequest.type = new messages_1.ProtocolRequestType(CompletionRequest.method);
|
|
655
|
-
})(CompletionRequest
|
|
662
|
+
})(CompletionRequest || (exports.CompletionRequest = CompletionRequest = {}));
|
|
656
663
|
/**
|
|
657
664
|
* Request to resolve additional information for a given completion item.The request's
|
|
658
665
|
* parameter is of type {@link CompletionItem} the response
|
|
@@ -663,7 +670,7 @@ var CompletionResolveRequest;
|
|
|
663
670
|
CompletionResolveRequest.method = 'completionItem/resolve';
|
|
664
671
|
CompletionResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
665
672
|
CompletionResolveRequest.type = new messages_1.ProtocolRequestType(CompletionResolveRequest.method);
|
|
666
|
-
})(CompletionResolveRequest
|
|
673
|
+
})(CompletionResolveRequest || (exports.CompletionResolveRequest = CompletionResolveRequest = {}));
|
|
667
674
|
/**
|
|
668
675
|
* Request to request hover information at a given text document position. The request's
|
|
669
676
|
* parameter is of type {@link TextDocumentPosition} the response is of
|
|
@@ -674,7 +681,7 @@ var HoverRequest;
|
|
|
674
681
|
HoverRequest.method = 'textDocument/hover';
|
|
675
682
|
HoverRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
676
683
|
HoverRequest.type = new messages_1.ProtocolRequestType(HoverRequest.method);
|
|
677
|
-
})(HoverRequest
|
|
684
|
+
})(HoverRequest || (exports.HoverRequest = HoverRequest = {}));
|
|
678
685
|
/**
|
|
679
686
|
* How a signature help was triggered.
|
|
680
687
|
*
|
|
@@ -694,26 +701,25 @@ var SignatureHelpTriggerKind;
|
|
|
694
701
|
* Signature help was triggered by the cursor moving or by the document content changing.
|
|
695
702
|
*/
|
|
696
703
|
SignatureHelpTriggerKind.ContentChange = 3;
|
|
697
|
-
})(SignatureHelpTriggerKind
|
|
704
|
+
})(SignatureHelpTriggerKind || (exports.SignatureHelpTriggerKind = SignatureHelpTriggerKind = {}));
|
|
698
705
|
var SignatureHelpRequest;
|
|
699
706
|
(function (SignatureHelpRequest) {
|
|
700
707
|
SignatureHelpRequest.method = 'textDocument/signatureHelp';
|
|
701
708
|
SignatureHelpRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
702
709
|
SignatureHelpRequest.type = new messages_1.ProtocolRequestType(SignatureHelpRequest.method);
|
|
703
|
-
})(SignatureHelpRequest
|
|
710
|
+
})(SignatureHelpRequest || (exports.SignatureHelpRequest = SignatureHelpRequest = {}));
|
|
704
711
|
/**
|
|
705
712
|
* A request to resolve the definition location of a symbol at a given text
|
|
706
|
-
* document position. The request's parameter is of type
|
|
707
|
-
*
|
|
708
|
-
*
|
|
709
|
-
* to such.
|
|
713
|
+
* document position. The request's parameter is of type {@link TextDocumentPosition}
|
|
714
|
+
* the response is of either type {@link Definition} or a typed array of
|
|
715
|
+
* {@link DefinitionLink} or a Thenable that resolves to such.
|
|
710
716
|
*/
|
|
711
717
|
var DefinitionRequest;
|
|
712
718
|
(function (DefinitionRequest) {
|
|
713
719
|
DefinitionRequest.method = 'textDocument/definition';
|
|
714
720
|
DefinitionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
715
721
|
DefinitionRequest.type = new messages_1.ProtocolRequestType(DefinitionRequest.method);
|
|
716
|
-
})(DefinitionRequest
|
|
722
|
+
})(DefinitionRequest || (exports.DefinitionRequest = DefinitionRequest = {}));
|
|
717
723
|
/**
|
|
718
724
|
* A request to resolve project-wide references for the symbol denoted
|
|
719
725
|
* by the given text document position. The request's parameter is of
|
|
@@ -725,19 +731,19 @@ var ReferencesRequest;
|
|
|
725
731
|
ReferencesRequest.method = 'textDocument/references';
|
|
726
732
|
ReferencesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
727
733
|
ReferencesRequest.type = new messages_1.ProtocolRequestType(ReferencesRequest.method);
|
|
728
|
-
})(ReferencesRequest
|
|
734
|
+
})(ReferencesRequest || (exports.ReferencesRequest = ReferencesRequest = {}));
|
|
729
735
|
/**
|
|
730
736
|
* Request to resolve a {@link DocumentHighlight} for a given
|
|
731
|
-
* text document position. The request's parameter is of type
|
|
732
|
-
*
|
|
733
|
-
*
|
|
737
|
+
* text document position. The request's parameter is of type {@link TextDocumentPosition}
|
|
738
|
+
* the request response is an array of type {@link DocumentHighlight}
|
|
739
|
+
* or a Thenable that resolves to such.
|
|
734
740
|
*/
|
|
735
741
|
var DocumentHighlightRequest;
|
|
736
742
|
(function (DocumentHighlightRequest) {
|
|
737
743
|
DocumentHighlightRequest.method = 'textDocument/documentHighlight';
|
|
738
744
|
DocumentHighlightRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
739
745
|
DocumentHighlightRequest.type = new messages_1.ProtocolRequestType(DocumentHighlightRequest.method);
|
|
740
|
-
})(DocumentHighlightRequest
|
|
746
|
+
})(DocumentHighlightRequest || (exports.DocumentHighlightRequest = DocumentHighlightRequest = {}));
|
|
741
747
|
/**
|
|
742
748
|
* A request to list all symbols found in a given text document. The request's
|
|
743
749
|
* parameter is of type {@link TextDocumentIdentifier} the
|
|
@@ -749,7 +755,7 @@ var DocumentSymbolRequest;
|
|
|
749
755
|
DocumentSymbolRequest.method = 'textDocument/documentSymbol';
|
|
750
756
|
DocumentSymbolRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
751
757
|
DocumentSymbolRequest.type = new messages_1.ProtocolRequestType(DocumentSymbolRequest.method);
|
|
752
|
-
})(DocumentSymbolRequest
|
|
758
|
+
})(DocumentSymbolRequest || (exports.DocumentSymbolRequest = DocumentSymbolRequest = {}));
|
|
753
759
|
/**
|
|
754
760
|
* A request to provide commands for the given text document and range.
|
|
755
761
|
*/
|
|
@@ -758,7 +764,7 @@ var CodeActionRequest;
|
|
|
758
764
|
CodeActionRequest.method = 'textDocument/codeAction';
|
|
759
765
|
CodeActionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
760
766
|
CodeActionRequest.type = new messages_1.ProtocolRequestType(CodeActionRequest.method);
|
|
761
|
-
})(CodeActionRequest
|
|
767
|
+
})(CodeActionRequest || (exports.CodeActionRequest = CodeActionRequest = {}));
|
|
762
768
|
/**
|
|
763
769
|
* Request to resolve additional information for a given code action.The request's
|
|
764
770
|
* parameter is of type {@link CodeAction} the response
|
|
@@ -769,7 +775,7 @@ var CodeActionResolveRequest;
|
|
|
769
775
|
CodeActionResolveRequest.method = 'codeAction/resolve';
|
|
770
776
|
CodeActionResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
771
777
|
CodeActionResolveRequest.type = new messages_1.ProtocolRequestType(CodeActionResolveRequest.method);
|
|
772
|
-
})(CodeActionResolveRequest
|
|
778
|
+
})(CodeActionResolveRequest || (exports.CodeActionResolveRequest = CodeActionResolveRequest = {}));
|
|
773
779
|
/**
|
|
774
780
|
* A request to list project-wide symbols matching the query string given
|
|
775
781
|
* by the {@link WorkspaceSymbolParams}. The response is
|
|
@@ -786,7 +792,7 @@ var WorkspaceSymbolRequest;
|
|
|
786
792
|
WorkspaceSymbolRequest.method = 'workspace/symbol';
|
|
787
793
|
WorkspaceSymbolRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
788
794
|
WorkspaceSymbolRequest.type = new messages_1.ProtocolRequestType(WorkspaceSymbolRequest.method);
|
|
789
|
-
})(WorkspaceSymbolRequest
|
|
795
|
+
})(WorkspaceSymbolRequest || (exports.WorkspaceSymbolRequest = WorkspaceSymbolRequest = {}));
|
|
790
796
|
/**
|
|
791
797
|
* A request to resolve the range inside the workspace
|
|
792
798
|
* symbol's location.
|
|
@@ -798,7 +804,7 @@ var WorkspaceSymbolResolveRequest;
|
|
|
798
804
|
WorkspaceSymbolResolveRequest.method = 'workspaceSymbol/resolve';
|
|
799
805
|
WorkspaceSymbolResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
800
806
|
WorkspaceSymbolResolveRequest.type = new messages_1.ProtocolRequestType(WorkspaceSymbolResolveRequest.method);
|
|
801
|
-
})(WorkspaceSymbolResolveRequest
|
|
807
|
+
})(WorkspaceSymbolResolveRequest || (exports.WorkspaceSymbolResolveRequest = WorkspaceSymbolResolveRequest = {}));
|
|
802
808
|
/**
|
|
803
809
|
* A request to provide code lens for the given text document.
|
|
804
810
|
*/
|
|
@@ -807,7 +813,7 @@ var CodeLensRequest;
|
|
|
807
813
|
CodeLensRequest.method = 'textDocument/codeLens';
|
|
808
814
|
CodeLensRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
809
815
|
CodeLensRequest.type = new messages_1.ProtocolRequestType(CodeLensRequest.method);
|
|
810
|
-
})(CodeLensRequest
|
|
816
|
+
})(CodeLensRequest || (exports.CodeLensRequest = CodeLensRequest = {}));
|
|
811
817
|
/**
|
|
812
818
|
* A request to resolve a command for a given code lens.
|
|
813
819
|
*/
|
|
@@ -816,7 +822,7 @@ var CodeLensResolveRequest;
|
|
|
816
822
|
CodeLensResolveRequest.method = 'codeLens/resolve';
|
|
817
823
|
CodeLensResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
818
824
|
CodeLensResolveRequest.type = new messages_1.ProtocolRequestType(CodeLensResolveRequest.method);
|
|
819
|
-
})(CodeLensResolveRequest
|
|
825
|
+
})(CodeLensResolveRequest || (exports.CodeLensResolveRequest = CodeLensResolveRequest = {}));
|
|
820
826
|
/**
|
|
821
827
|
* A request to refresh all code actions
|
|
822
828
|
*
|
|
@@ -827,7 +833,7 @@ var CodeLensRefreshRequest;
|
|
|
827
833
|
CodeLensRefreshRequest.method = `workspace/codeLens/refresh`;
|
|
828
834
|
CodeLensRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
829
835
|
CodeLensRefreshRequest.type = new messages_1.ProtocolRequestType0(CodeLensRefreshRequest.method);
|
|
830
|
-
})(CodeLensRefreshRequest
|
|
836
|
+
})(CodeLensRefreshRequest || (exports.CodeLensRefreshRequest = CodeLensRefreshRequest = {}));
|
|
831
837
|
/**
|
|
832
838
|
* A request to provide document links
|
|
833
839
|
*/
|
|
@@ -836,7 +842,7 @@ var DocumentLinkRequest;
|
|
|
836
842
|
DocumentLinkRequest.method = 'textDocument/documentLink';
|
|
837
843
|
DocumentLinkRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
838
844
|
DocumentLinkRequest.type = new messages_1.ProtocolRequestType(DocumentLinkRequest.method);
|
|
839
|
-
})(DocumentLinkRequest
|
|
845
|
+
})(DocumentLinkRequest || (exports.DocumentLinkRequest = DocumentLinkRequest = {}));
|
|
840
846
|
/**
|
|
841
847
|
* Request to resolve additional information for a given document link. The request's
|
|
842
848
|
* parameter is of type {@link DocumentLink} the response
|
|
@@ -847,7 +853,7 @@ var DocumentLinkResolveRequest;
|
|
|
847
853
|
DocumentLinkResolveRequest.method = 'documentLink/resolve';
|
|
848
854
|
DocumentLinkResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
849
855
|
DocumentLinkResolveRequest.type = new messages_1.ProtocolRequestType(DocumentLinkResolveRequest.method);
|
|
850
|
-
})(DocumentLinkResolveRequest
|
|
856
|
+
})(DocumentLinkResolveRequest || (exports.DocumentLinkResolveRequest = DocumentLinkResolveRequest = {}));
|
|
851
857
|
/**
|
|
852
858
|
* A request to format a whole document.
|
|
853
859
|
*/
|
|
@@ -856,7 +862,7 @@ var DocumentFormattingRequest;
|
|
|
856
862
|
DocumentFormattingRequest.method = 'textDocument/formatting';
|
|
857
863
|
DocumentFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
858
864
|
DocumentFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentFormattingRequest.method);
|
|
859
|
-
})(DocumentFormattingRequest
|
|
865
|
+
})(DocumentFormattingRequest || (exports.DocumentFormattingRequest = DocumentFormattingRequest = {}));
|
|
860
866
|
/**
|
|
861
867
|
* A request to format a range in a document.
|
|
862
868
|
*/
|
|
@@ -865,7 +871,7 @@ var DocumentRangeFormattingRequest;
|
|
|
865
871
|
DocumentRangeFormattingRequest.method = 'textDocument/rangeFormatting';
|
|
866
872
|
DocumentRangeFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
867
873
|
DocumentRangeFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentRangeFormattingRequest.method);
|
|
868
|
-
})(DocumentRangeFormattingRequest
|
|
874
|
+
})(DocumentRangeFormattingRequest || (exports.DocumentRangeFormattingRequest = DocumentRangeFormattingRequest = {}));
|
|
869
875
|
/**
|
|
870
876
|
* A request to format ranges in a document.
|
|
871
877
|
*
|
|
@@ -877,7 +883,7 @@ var DocumentRangesFormattingRequest;
|
|
|
877
883
|
DocumentRangesFormattingRequest.method = 'textDocument/rangesFormatting';
|
|
878
884
|
DocumentRangesFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
879
885
|
DocumentRangesFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentRangesFormattingRequest.method);
|
|
880
|
-
})(DocumentRangesFormattingRequest
|
|
886
|
+
})(DocumentRangesFormattingRequest || (exports.DocumentRangesFormattingRequest = DocumentRangesFormattingRequest = {}));
|
|
881
887
|
/**
|
|
882
888
|
* A request to format a document on type.
|
|
883
889
|
*/
|
|
@@ -886,7 +892,7 @@ var DocumentOnTypeFormattingRequest;
|
|
|
886
892
|
DocumentOnTypeFormattingRequest.method = 'textDocument/onTypeFormatting';
|
|
887
893
|
DocumentOnTypeFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
888
894
|
DocumentOnTypeFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentOnTypeFormattingRequest.method);
|
|
889
|
-
})(DocumentOnTypeFormattingRequest
|
|
895
|
+
})(DocumentOnTypeFormattingRequest || (exports.DocumentOnTypeFormattingRequest = DocumentOnTypeFormattingRequest = {}));
|
|
890
896
|
//---- Rename ----------------------------------------------
|
|
891
897
|
var PrepareSupportDefaultBehavior;
|
|
892
898
|
(function (PrepareSupportDefaultBehavior) {
|
|
@@ -895,7 +901,7 @@ var PrepareSupportDefaultBehavior;
|
|
|
895
901
|
* according the to language's syntax rule.
|
|
896
902
|
*/
|
|
897
903
|
PrepareSupportDefaultBehavior.Identifier = 1;
|
|
898
|
-
})(PrepareSupportDefaultBehavior
|
|
904
|
+
})(PrepareSupportDefaultBehavior || (exports.PrepareSupportDefaultBehavior = PrepareSupportDefaultBehavior = {}));
|
|
899
905
|
/**
|
|
900
906
|
* A request to rename a symbol.
|
|
901
907
|
*/
|
|
@@ -904,7 +910,7 @@ var RenameRequest;
|
|
|
904
910
|
RenameRequest.method = 'textDocument/rename';
|
|
905
911
|
RenameRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
906
912
|
RenameRequest.type = new messages_1.ProtocolRequestType(RenameRequest.method);
|
|
907
|
-
})(RenameRequest
|
|
913
|
+
})(RenameRequest || (exports.RenameRequest = RenameRequest = {}));
|
|
908
914
|
/**
|
|
909
915
|
* A request to test and perform the setup necessary for a rename.
|
|
910
916
|
*
|
|
@@ -915,7 +921,7 @@ var PrepareRenameRequest;
|
|
|
915
921
|
PrepareRenameRequest.method = 'textDocument/prepareRename';
|
|
916
922
|
PrepareRenameRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
917
923
|
PrepareRenameRequest.type = new messages_1.ProtocolRequestType(PrepareRenameRequest.method);
|
|
918
|
-
})(PrepareRenameRequest
|
|
924
|
+
})(PrepareRenameRequest || (exports.PrepareRenameRequest = PrepareRenameRequest = {}));
|
|
919
925
|
/**
|
|
920
926
|
* A request send from the client to the server to execute a command. The request might return
|
|
921
927
|
* a workspace edit which the client will apply to the workspace.
|
|
@@ -925,7 +931,7 @@ var ExecuteCommandRequest;
|
|
|
925
931
|
ExecuteCommandRequest.method = 'workspace/executeCommand';
|
|
926
932
|
ExecuteCommandRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
927
933
|
ExecuteCommandRequest.type = new messages_1.ProtocolRequestType(ExecuteCommandRequest.method);
|
|
928
|
-
})(ExecuteCommandRequest
|
|
934
|
+
})(ExecuteCommandRequest || (exports.ExecuteCommandRequest = ExecuteCommandRequest = {}));
|
|
929
935
|
/**
|
|
930
936
|
* A request sent from the server to the client to modified certain resources.
|
|
931
937
|
*/
|
|
@@ -934,4 +940,4 @@ var ApplyWorkspaceEditRequest;
|
|
|
934
940
|
ApplyWorkspaceEditRequest.method = 'workspace/applyEdit';
|
|
935
941
|
ApplyWorkspaceEditRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
936
942
|
ApplyWorkspaceEditRequest.type = new messages_1.ProtocolRequestType('workspace/applyEdit');
|
|
937
|
-
})(ApplyWorkspaceEditRequest
|
|
943
|
+
})(ApplyWorkspaceEditRequest || (exports.ApplyWorkspaceEditRequest = ApplyWorkspaceEditRequest = {}));
|
|
@@ -16,4 +16,4 @@ var LinkedEditingRangeRequest;
|
|
|
16
16
|
LinkedEditingRangeRequest.method = 'textDocument/linkedEditingRange';
|
|
17
17
|
LinkedEditingRangeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
18
18
|
LinkedEditingRangeRequest.type = new messages_1.ProtocolRequestType(LinkedEditingRangeRequest.method);
|
|
19
|
-
})(LinkedEditingRangeRequest
|
|
19
|
+
})(LinkedEditingRangeRequest || (exports.LinkedEditingRangeRequest = LinkedEditingRangeRequest = {}));
|
|
@@ -27,7 +27,7 @@ export declare namespace UniquenessLevel {
|
|
|
27
27
|
*/
|
|
28
28
|
const global = "global";
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type UniquenessLevel = 'document' | 'project' | 'group' | 'scheme' | 'global';
|
|
31
31
|
/**
|
|
32
32
|
* The moniker kind.
|
|
33
33
|
*
|
|
@@ -48,7 +48,7 @@ export declare namespace MonikerKind {
|
|
|
48
48
|
*/
|
|
49
49
|
const local = "local";
|
|
50
50
|
}
|
|
51
|
-
export
|
|
51
|
+
export type MonikerKind = 'import' | 'export' | 'local';
|
|
52
52
|
/**
|
|
53
53
|
* Moniker definition to match LSIF 0.5 moniker definition.
|
|
54
54
|
*
|