vscode-languageserver-protocol 3.17.4-next.1 → 3.17.4-next.3
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 +93 -34
- 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.js +1 -1
- 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 +57 -0
- package/lib/common/protocol.inlineCompletion.js +22 -0
- package/lib/common/protocol.inlineValue.d.ts +5 -5
- package/lib/common/protocol.inlineValue.js +2 -2
- package/lib/common/protocol.js +86 -73
- 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.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 = void 0;
|
|
8
|
+
exports.TypeHierarchyPrepareRequest = 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.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 = 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");
|
|
@@ -87,6 +87,8 @@ Object.defineProperty(exports, "NotebookCellArrayChange", { enumerable: true, ge
|
|
|
87
87
|
Object.defineProperty(exports, "DidChangeNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidChangeNotebookDocumentNotification; } });
|
|
88
88
|
Object.defineProperty(exports, "DidSaveNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidSaveNotebookDocumentNotification; } });
|
|
89
89
|
Object.defineProperty(exports, "DidCloseNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidCloseNotebookDocumentNotification; } });
|
|
90
|
+
const protocol_inlineCompletion_1 = require("./protocol.inlineCompletion");
|
|
91
|
+
Object.defineProperty(exports, "InlineCompletionRequest", { enumerable: true, get: function () { return protocol_inlineCompletion_1.InlineCompletionRequest; } });
|
|
90
92
|
// @ts-ignore: to avoid inlining LocationLink as dynamic import
|
|
91
93
|
let __noDynamicImport;
|
|
92
94
|
/**
|
|
@@ -102,7 +104,7 @@ var TextDocumentFilter;
|
|
|
102
104
|
return Is.string(candidate) || (Is.string(candidate.language) || Is.string(candidate.scheme) || Is.string(candidate.pattern));
|
|
103
105
|
}
|
|
104
106
|
TextDocumentFilter.is = is;
|
|
105
|
-
})(TextDocumentFilter
|
|
107
|
+
})(TextDocumentFilter || (exports.TextDocumentFilter = TextDocumentFilter = {}));
|
|
106
108
|
/**
|
|
107
109
|
* The NotebookDocumentFilter namespace provides helper functions to work with
|
|
108
110
|
* {@link NotebookDocumentFilter} literals.
|
|
@@ -116,7 +118,7 @@ var NotebookDocumentFilter;
|
|
|
116
118
|
return Is.objectLiteral(candidate) && (Is.string(candidate.notebookType) || Is.string(candidate.scheme) || Is.string(candidate.pattern));
|
|
117
119
|
}
|
|
118
120
|
NotebookDocumentFilter.is = is;
|
|
119
|
-
})(NotebookDocumentFilter
|
|
121
|
+
})(NotebookDocumentFilter || (exports.NotebookDocumentFilter = NotebookDocumentFilter = {}));
|
|
120
122
|
/**
|
|
121
123
|
* The NotebookCellTextDocumentFilter namespace provides helper functions to work with
|
|
122
124
|
* {@link NotebookCellTextDocumentFilter} literals.
|
|
@@ -132,7 +134,7 @@ var NotebookCellTextDocumentFilter;
|
|
|
132
134
|
&& (candidate.language === undefined || Is.string(candidate.language));
|
|
133
135
|
}
|
|
134
136
|
NotebookCellTextDocumentFilter.is = is;
|
|
135
|
-
})(NotebookCellTextDocumentFilter
|
|
137
|
+
})(NotebookCellTextDocumentFilter || (exports.NotebookCellTextDocumentFilter = NotebookCellTextDocumentFilter = {}));
|
|
136
138
|
/**
|
|
137
139
|
* The DocumentSelector namespace provides helper functions to work with
|
|
138
140
|
* {@link DocumentSelector}s.
|
|
@@ -151,7 +153,7 @@ var DocumentSelector;
|
|
|
151
153
|
return true;
|
|
152
154
|
}
|
|
153
155
|
DocumentSelector.is = is;
|
|
154
|
-
})(DocumentSelector
|
|
156
|
+
})(DocumentSelector || (exports.DocumentSelector = DocumentSelector = {}));
|
|
155
157
|
/**
|
|
156
158
|
* The `client/registerCapability` request is sent from the server to the client to register a new capability
|
|
157
159
|
* handler on the client side.
|
|
@@ -161,7 +163,7 @@ var RegistrationRequest;
|
|
|
161
163
|
RegistrationRequest.method = 'client/registerCapability';
|
|
162
164
|
RegistrationRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
163
165
|
RegistrationRequest.type = new messages_1.ProtocolRequestType(RegistrationRequest.method);
|
|
164
|
-
})(RegistrationRequest
|
|
166
|
+
})(RegistrationRequest || (exports.RegistrationRequest = RegistrationRequest = {}));
|
|
165
167
|
/**
|
|
166
168
|
* The `client/unregisterCapability` request is sent from the server to the client to unregister a previously registered capability
|
|
167
169
|
* handler on the client side.
|
|
@@ -171,7 +173,7 @@ var UnregistrationRequest;
|
|
|
171
173
|
UnregistrationRequest.method = 'client/unregisterCapability';
|
|
172
174
|
UnregistrationRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
173
175
|
UnregistrationRequest.type = new messages_1.ProtocolRequestType(UnregistrationRequest.method);
|
|
174
|
-
})(UnregistrationRequest
|
|
176
|
+
})(UnregistrationRequest || (exports.UnregistrationRequest = UnregistrationRequest = {}));
|
|
175
177
|
var ResourceOperationKind;
|
|
176
178
|
(function (ResourceOperationKind) {
|
|
177
179
|
/**
|
|
@@ -186,7 +188,7 @@ var ResourceOperationKind;
|
|
|
186
188
|
* Supports deleting existing files and folders.
|
|
187
189
|
*/
|
|
188
190
|
ResourceOperationKind.Delete = 'delete';
|
|
189
|
-
})(ResourceOperationKind
|
|
191
|
+
})(ResourceOperationKind || (exports.ResourceOperationKind = ResourceOperationKind = {}));
|
|
190
192
|
var FailureHandlingKind;
|
|
191
193
|
(function (FailureHandlingKind) {
|
|
192
194
|
/**
|
|
@@ -210,7 +212,7 @@ var FailureHandlingKind;
|
|
|
210
212
|
* guarantee that this is succeeding.
|
|
211
213
|
*/
|
|
212
214
|
FailureHandlingKind.Undo = 'undo';
|
|
213
|
-
})(FailureHandlingKind
|
|
215
|
+
})(FailureHandlingKind || (exports.FailureHandlingKind = FailureHandlingKind = {}));
|
|
214
216
|
/**
|
|
215
217
|
* A set of predefined position encoding kinds.
|
|
216
218
|
*
|
|
@@ -237,7 +239,7 @@ var PositionEncodingKind;
|
|
|
237
239
|
* encoding-agnostic representation of character offsets.
|
|
238
240
|
*/
|
|
239
241
|
PositionEncodingKind.UTF32 = 'utf-32';
|
|
240
|
-
})(PositionEncodingKind
|
|
242
|
+
})(PositionEncodingKind || (exports.PositionEncodingKind = PositionEncodingKind = {}));
|
|
241
243
|
/**
|
|
242
244
|
* The StaticRegistrationOptions namespace provides helper functions to work with
|
|
243
245
|
* {@link StaticRegistrationOptions} literals.
|
|
@@ -249,7 +251,7 @@ var StaticRegistrationOptions;
|
|
|
249
251
|
return candidate && Is.string(candidate.id) && candidate.id.length > 0;
|
|
250
252
|
}
|
|
251
253
|
StaticRegistrationOptions.hasId = hasId;
|
|
252
|
-
})(StaticRegistrationOptions
|
|
254
|
+
})(StaticRegistrationOptions || (exports.StaticRegistrationOptions = StaticRegistrationOptions = {}));
|
|
253
255
|
/**
|
|
254
256
|
* The TextDocumentRegistrationOptions namespace provides helper functions to work with
|
|
255
257
|
* {@link TextDocumentRegistrationOptions} literals.
|
|
@@ -261,7 +263,7 @@ var TextDocumentRegistrationOptions;
|
|
|
261
263
|
return candidate && (candidate.documentSelector === null || DocumentSelector.is(candidate.documentSelector));
|
|
262
264
|
}
|
|
263
265
|
TextDocumentRegistrationOptions.is = is;
|
|
264
|
-
})(TextDocumentRegistrationOptions
|
|
266
|
+
})(TextDocumentRegistrationOptions || (exports.TextDocumentRegistrationOptions = TextDocumentRegistrationOptions = {}));
|
|
265
267
|
/**
|
|
266
268
|
* The WorkDoneProgressOptions namespace provides helper functions to work with
|
|
267
269
|
* {@link WorkDoneProgressOptions} literals.
|
|
@@ -278,7 +280,7 @@ var WorkDoneProgressOptions;
|
|
|
278
280
|
return candidate && Is.boolean(candidate.workDoneProgress);
|
|
279
281
|
}
|
|
280
282
|
WorkDoneProgressOptions.hasWorkDoneProgress = hasWorkDoneProgress;
|
|
281
|
-
})(WorkDoneProgressOptions
|
|
283
|
+
})(WorkDoneProgressOptions || (exports.WorkDoneProgressOptions = WorkDoneProgressOptions = {}));
|
|
282
284
|
/**
|
|
283
285
|
* The initialize request is sent from the client to the server.
|
|
284
286
|
* It is sent once as the request after starting up the server.
|
|
@@ -291,7 +293,7 @@ var InitializeRequest;
|
|
|
291
293
|
InitializeRequest.method = 'initialize';
|
|
292
294
|
InitializeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
293
295
|
InitializeRequest.type = new messages_1.ProtocolRequestType(InitializeRequest.method);
|
|
294
|
-
})(InitializeRequest
|
|
296
|
+
})(InitializeRequest || (exports.InitializeRequest = InitializeRequest = {}));
|
|
295
297
|
/**
|
|
296
298
|
* Known error codes for an `InitializeErrorCodes`;
|
|
297
299
|
*/
|
|
@@ -304,7 +306,7 @@ var InitializeErrorCodes;
|
|
|
304
306
|
* no version handshake in version 3.0x
|
|
305
307
|
*/
|
|
306
308
|
InitializeErrorCodes.unknownProtocolVersion = 1;
|
|
307
|
-
})(InitializeErrorCodes
|
|
309
|
+
})(InitializeErrorCodes || (exports.InitializeErrorCodes = InitializeErrorCodes = {}));
|
|
308
310
|
/**
|
|
309
311
|
* The initialized notification is sent from the client to the
|
|
310
312
|
* server after the client is fully initialized and the server
|
|
@@ -315,7 +317,7 @@ var InitializedNotification;
|
|
|
315
317
|
InitializedNotification.method = 'initialized';
|
|
316
318
|
InitializedNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
317
319
|
InitializedNotification.type = new messages_1.ProtocolNotificationType(InitializedNotification.method);
|
|
318
|
-
})(InitializedNotification
|
|
320
|
+
})(InitializedNotification || (exports.InitializedNotification = InitializedNotification = {}));
|
|
319
321
|
//---- Shutdown Method ----
|
|
320
322
|
/**
|
|
321
323
|
* A shutdown request is sent from the client to the server.
|
|
@@ -328,7 +330,7 @@ var ShutdownRequest;
|
|
|
328
330
|
ShutdownRequest.method = 'shutdown';
|
|
329
331
|
ShutdownRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
330
332
|
ShutdownRequest.type = new messages_1.ProtocolRequestType0(ShutdownRequest.method);
|
|
331
|
-
})(ShutdownRequest
|
|
333
|
+
})(ShutdownRequest || (exports.ShutdownRequest = ShutdownRequest = {}));
|
|
332
334
|
//---- Exit Notification ----
|
|
333
335
|
/**
|
|
334
336
|
* The exit event is sent from the client to the server to
|
|
@@ -339,7 +341,7 @@ var ExitNotification;
|
|
|
339
341
|
ExitNotification.method = 'exit';
|
|
340
342
|
ExitNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
341
343
|
ExitNotification.type = new messages_1.ProtocolNotificationType0(ExitNotification.method);
|
|
342
|
-
})(ExitNotification
|
|
344
|
+
})(ExitNotification || (exports.ExitNotification = ExitNotification = {}));
|
|
343
345
|
/**
|
|
344
346
|
* The configuration change notification is sent from the client to the server
|
|
345
347
|
* when the client's configuration has changed. The notification contains
|
|
@@ -350,7 +352,7 @@ var DidChangeConfigurationNotification;
|
|
|
350
352
|
DidChangeConfigurationNotification.method = 'workspace/didChangeConfiguration';
|
|
351
353
|
DidChangeConfigurationNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
352
354
|
DidChangeConfigurationNotification.type = new messages_1.ProtocolNotificationType(DidChangeConfigurationNotification.method);
|
|
353
|
-
})(DidChangeConfigurationNotification
|
|
355
|
+
})(DidChangeConfigurationNotification || (exports.DidChangeConfigurationNotification = DidChangeConfigurationNotification = {}));
|
|
354
356
|
//---- Message show and log notifications ----
|
|
355
357
|
/**
|
|
356
358
|
* The message type
|
|
@@ -373,7 +375,7 @@ var MessageType;
|
|
|
373
375
|
* A log message.
|
|
374
376
|
*/
|
|
375
377
|
MessageType.Log = 4;
|
|
376
|
-
})(MessageType
|
|
378
|
+
})(MessageType || (exports.MessageType = MessageType = {}));
|
|
377
379
|
/**
|
|
378
380
|
* The show message notification is sent from a server to a client to ask
|
|
379
381
|
* the client to display a particular message in the user interface.
|
|
@@ -383,7 +385,7 @@ var ShowMessageNotification;
|
|
|
383
385
|
ShowMessageNotification.method = 'window/showMessage';
|
|
384
386
|
ShowMessageNotification.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
385
387
|
ShowMessageNotification.type = new messages_1.ProtocolNotificationType(ShowMessageNotification.method);
|
|
386
|
-
})(ShowMessageNotification
|
|
388
|
+
})(ShowMessageNotification || (exports.ShowMessageNotification = ShowMessageNotification = {}));
|
|
387
389
|
/**
|
|
388
390
|
* The show message request is sent from the server to the client to show a message
|
|
389
391
|
* and a set of options actions to the user.
|
|
@@ -393,7 +395,7 @@ var ShowMessageRequest;
|
|
|
393
395
|
ShowMessageRequest.method = 'window/showMessageRequest';
|
|
394
396
|
ShowMessageRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
395
397
|
ShowMessageRequest.type = new messages_1.ProtocolRequestType(ShowMessageRequest.method);
|
|
396
|
-
})(ShowMessageRequest
|
|
398
|
+
})(ShowMessageRequest || (exports.ShowMessageRequest = ShowMessageRequest = {}));
|
|
397
399
|
/**
|
|
398
400
|
* The log message notification is sent from the server to the client to ask
|
|
399
401
|
* the client to log a particular message.
|
|
@@ -403,7 +405,7 @@ var LogMessageNotification;
|
|
|
403
405
|
LogMessageNotification.method = 'window/logMessage';
|
|
404
406
|
LogMessageNotification.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
405
407
|
LogMessageNotification.type = new messages_1.ProtocolNotificationType(LogMessageNotification.method);
|
|
406
|
-
})(LogMessageNotification
|
|
408
|
+
})(LogMessageNotification || (exports.LogMessageNotification = LogMessageNotification = {}));
|
|
407
409
|
//---- Telemetry notification
|
|
408
410
|
/**
|
|
409
411
|
* The telemetry event notification is sent from the server to the client to ask
|
|
@@ -414,7 +416,7 @@ var TelemetryEventNotification;
|
|
|
414
416
|
TelemetryEventNotification.method = 'telemetry/event';
|
|
415
417
|
TelemetryEventNotification.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
416
418
|
TelemetryEventNotification.type = new messages_1.ProtocolNotificationType(TelemetryEventNotification.method);
|
|
417
|
-
})(TelemetryEventNotification
|
|
419
|
+
})(TelemetryEventNotification || (exports.TelemetryEventNotification = TelemetryEventNotification = {}));
|
|
418
420
|
/**
|
|
419
421
|
* Defines how the host (editor) should sync
|
|
420
422
|
* document changes to the language server.
|
|
@@ -436,7 +438,7 @@ var TextDocumentSyncKind;
|
|
|
436
438
|
* send.
|
|
437
439
|
*/
|
|
438
440
|
TextDocumentSyncKind.Incremental = 2;
|
|
439
|
-
})(TextDocumentSyncKind
|
|
441
|
+
})(TextDocumentSyncKind || (exports.TextDocumentSyncKind = TextDocumentSyncKind = {}));
|
|
440
442
|
/**
|
|
441
443
|
* The document open notification is sent from the client to the server to signal
|
|
442
444
|
* newly opened text documents. The document's truth is now managed by the client
|
|
@@ -452,7 +454,7 @@ var DidOpenTextDocumentNotification;
|
|
|
452
454
|
DidOpenTextDocumentNotification.method = 'textDocument/didOpen';
|
|
453
455
|
DidOpenTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
454
456
|
DidOpenTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidOpenTextDocumentNotification.method);
|
|
455
|
-
})(DidOpenTextDocumentNotification
|
|
457
|
+
})(DidOpenTextDocumentNotification || (exports.DidOpenTextDocumentNotification = DidOpenTextDocumentNotification = {}));
|
|
456
458
|
var TextDocumentContentChangeEvent;
|
|
457
459
|
(function (TextDocumentContentChangeEvent) {
|
|
458
460
|
/**
|
|
@@ -474,7 +476,7 @@ var TextDocumentContentChangeEvent;
|
|
|
474
476
|
typeof candidate.text === 'string' && candidate.range === undefined && candidate.rangeLength === undefined;
|
|
475
477
|
}
|
|
476
478
|
TextDocumentContentChangeEvent.isFull = isFull;
|
|
477
|
-
})(TextDocumentContentChangeEvent
|
|
479
|
+
})(TextDocumentContentChangeEvent || (exports.TextDocumentContentChangeEvent = TextDocumentContentChangeEvent = {}));
|
|
478
480
|
/**
|
|
479
481
|
* The document change notification is sent from the client to the server to signal
|
|
480
482
|
* changes to a text document.
|
|
@@ -484,7 +486,7 @@ var DidChangeTextDocumentNotification;
|
|
|
484
486
|
DidChangeTextDocumentNotification.method = 'textDocument/didChange';
|
|
485
487
|
DidChangeTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
486
488
|
DidChangeTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidChangeTextDocumentNotification.method);
|
|
487
|
-
})(DidChangeTextDocumentNotification
|
|
489
|
+
})(DidChangeTextDocumentNotification || (exports.DidChangeTextDocumentNotification = DidChangeTextDocumentNotification = {}));
|
|
488
490
|
/**
|
|
489
491
|
* The document close notification is sent from the client to the server when
|
|
490
492
|
* the document got closed in the client. The document's truth now exists where
|
|
@@ -499,7 +501,7 @@ var DidCloseTextDocumentNotification;
|
|
|
499
501
|
DidCloseTextDocumentNotification.method = 'textDocument/didClose';
|
|
500
502
|
DidCloseTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
501
503
|
DidCloseTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseTextDocumentNotification.method);
|
|
502
|
-
})(DidCloseTextDocumentNotification
|
|
504
|
+
})(DidCloseTextDocumentNotification || (exports.DidCloseTextDocumentNotification = DidCloseTextDocumentNotification = {}));
|
|
503
505
|
/**
|
|
504
506
|
* The document save notification is sent from the client to the server when
|
|
505
507
|
* the document got saved in the client.
|
|
@@ -509,7 +511,7 @@ var DidSaveTextDocumentNotification;
|
|
|
509
511
|
DidSaveTextDocumentNotification.method = 'textDocument/didSave';
|
|
510
512
|
DidSaveTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
511
513
|
DidSaveTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidSaveTextDocumentNotification.method);
|
|
512
|
-
})(DidSaveTextDocumentNotification
|
|
514
|
+
})(DidSaveTextDocumentNotification || (exports.DidSaveTextDocumentNotification = DidSaveTextDocumentNotification = {}));
|
|
513
515
|
/**
|
|
514
516
|
* Represents reasons why a text document is saved.
|
|
515
517
|
*/
|
|
@@ -528,7 +530,7 @@ var TextDocumentSaveReason;
|
|
|
528
530
|
* When the editor lost focus.
|
|
529
531
|
*/
|
|
530
532
|
TextDocumentSaveReason.FocusOut = 3;
|
|
531
|
-
})(TextDocumentSaveReason
|
|
533
|
+
})(TextDocumentSaveReason || (exports.TextDocumentSaveReason = TextDocumentSaveReason = {}));
|
|
532
534
|
/**
|
|
533
535
|
* A document will save notification is sent from the client to the server before
|
|
534
536
|
* the document is actually saved.
|
|
@@ -538,7 +540,7 @@ var WillSaveTextDocumentNotification;
|
|
|
538
540
|
WillSaveTextDocumentNotification.method = 'textDocument/willSave';
|
|
539
541
|
WillSaveTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
540
542
|
WillSaveTextDocumentNotification.type = new messages_1.ProtocolNotificationType(WillSaveTextDocumentNotification.method);
|
|
541
|
-
})(WillSaveTextDocumentNotification
|
|
543
|
+
})(WillSaveTextDocumentNotification || (exports.WillSaveTextDocumentNotification = WillSaveTextDocumentNotification = {}));
|
|
542
544
|
/**
|
|
543
545
|
* A document will save request is sent from the client to the server before
|
|
544
546
|
* the document is actually saved. The request can return an array of TextEdits
|
|
@@ -552,7 +554,7 @@ var WillSaveTextDocumentWaitUntilRequest;
|
|
|
552
554
|
WillSaveTextDocumentWaitUntilRequest.method = 'textDocument/willSaveWaitUntil';
|
|
553
555
|
WillSaveTextDocumentWaitUntilRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
554
556
|
WillSaveTextDocumentWaitUntilRequest.type = new messages_1.ProtocolRequestType(WillSaveTextDocumentWaitUntilRequest.method);
|
|
555
|
-
})(WillSaveTextDocumentWaitUntilRequest
|
|
557
|
+
})(WillSaveTextDocumentWaitUntilRequest || (exports.WillSaveTextDocumentWaitUntilRequest = WillSaveTextDocumentWaitUntilRequest = {}));
|
|
556
558
|
/**
|
|
557
559
|
* The watched files notification is sent from the client to the server when
|
|
558
560
|
* the client detects changes to file watched by the language client.
|
|
@@ -562,7 +564,7 @@ var DidChangeWatchedFilesNotification;
|
|
|
562
564
|
DidChangeWatchedFilesNotification.method = 'workspace/didChangeWatchedFiles';
|
|
563
565
|
DidChangeWatchedFilesNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
564
566
|
DidChangeWatchedFilesNotification.type = new messages_1.ProtocolNotificationType(DidChangeWatchedFilesNotification.method);
|
|
565
|
-
})(DidChangeWatchedFilesNotification
|
|
567
|
+
})(DidChangeWatchedFilesNotification || (exports.DidChangeWatchedFilesNotification = DidChangeWatchedFilesNotification = {}));
|
|
566
568
|
/**
|
|
567
569
|
* The file event type
|
|
568
570
|
*/
|
|
@@ -580,7 +582,7 @@ var FileChangeType;
|
|
|
580
582
|
* The file got deleted.
|
|
581
583
|
*/
|
|
582
584
|
FileChangeType.Deleted = 3;
|
|
583
|
-
})(FileChangeType
|
|
585
|
+
})(FileChangeType || (exports.FileChangeType = FileChangeType = {}));
|
|
584
586
|
var RelativePattern;
|
|
585
587
|
(function (RelativePattern) {
|
|
586
588
|
function is(value) {
|
|
@@ -588,7 +590,7 @@ var RelativePattern;
|
|
|
588
590
|
return Is.objectLiteral(candidate) && (vscode_languageserver_types_1.URI.is(candidate.baseUri) || vscode_languageserver_types_1.WorkspaceFolder.is(candidate.baseUri)) && Is.string(candidate.pattern);
|
|
589
591
|
}
|
|
590
592
|
RelativePattern.is = is;
|
|
591
|
-
})(RelativePattern
|
|
593
|
+
})(RelativePattern || (exports.RelativePattern = RelativePattern = {}));
|
|
592
594
|
var WatchKind;
|
|
593
595
|
(function (WatchKind) {
|
|
594
596
|
/**
|
|
@@ -603,7 +605,7 @@ var WatchKind;
|
|
|
603
605
|
* Interested in delete events
|
|
604
606
|
*/
|
|
605
607
|
WatchKind.Delete = 4;
|
|
606
|
-
})(WatchKind
|
|
608
|
+
})(WatchKind || (exports.WatchKind = WatchKind = {}));
|
|
607
609
|
/**
|
|
608
610
|
* Diagnostics notification are sent from the server to the client to signal
|
|
609
611
|
* results of validation runs.
|
|
@@ -613,7 +615,7 @@ var PublishDiagnosticsNotification;
|
|
|
613
615
|
PublishDiagnosticsNotification.method = 'textDocument/publishDiagnostics';
|
|
614
616
|
PublishDiagnosticsNotification.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
615
617
|
PublishDiagnosticsNotification.type = new messages_1.ProtocolNotificationType(PublishDiagnosticsNotification.method);
|
|
616
|
-
})(PublishDiagnosticsNotification
|
|
618
|
+
})(PublishDiagnosticsNotification || (exports.PublishDiagnosticsNotification = PublishDiagnosticsNotification = {}));
|
|
617
619
|
/**
|
|
618
620
|
* How a completion was triggered
|
|
619
621
|
*/
|
|
@@ -633,7 +635,7 @@ var CompletionTriggerKind;
|
|
|
633
635
|
* Completion was re-triggered as current completion list is incomplete
|
|
634
636
|
*/
|
|
635
637
|
CompletionTriggerKind.TriggerForIncompleteCompletions = 3;
|
|
636
|
-
})(CompletionTriggerKind
|
|
638
|
+
})(CompletionTriggerKind || (exports.CompletionTriggerKind = CompletionTriggerKind = {}));
|
|
637
639
|
/**
|
|
638
640
|
* Request to request completion at a given text document position. The request's
|
|
639
641
|
* parameter is of type {@link TextDocumentPosition} the response
|
|
@@ -650,7 +652,7 @@ var CompletionRequest;
|
|
|
650
652
|
CompletionRequest.method = 'textDocument/completion';
|
|
651
653
|
CompletionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
652
654
|
CompletionRequest.type = new messages_1.ProtocolRequestType(CompletionRequest.method);
|
|
653
|
-
})(CompletionRequest
|
|
655
|
+
})(CompletionRequest || (exports.CompletionRequest = CompletionRequest = {}));
|
|
654
656
|
/**
|
|
655
657
|
* Request to resolve additional information for a given completion item.The request's
|
|
656
658
|
* parameter is of type {@link CompletionItem} the response
|
|
@@ -661,7 +663,7 @@ var CompletionResolveRequest;
|
|
|
661
663
|
CompletionResolveRequest.method = 'completionItem/resolve';
|
|
662
664
|
CompletionResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
663
665
|
CompletionResolveRequest.type = new messages_1.ProtocolRequestType(CompletionResolveRequest.method);
|
|
664
|
-
})(CompletionResolveRequest
|
|
666
|
+
})(CompletionResolveRequest || (exports.CompletionResolveRequest = CompletionResolveRequest = {}));
|
|
665
667
|
/**
|
|
666
668
|
* Request to request hover information at a given text document position. The request's
|
|
667
669
|
* parameter is of type {@link TextDocumentPosition} the response is of
|
|
@@ -672,7 +674,7 @@ var HoverRequest;
|
|
|
672
674
|
HoverRequest.method = 'textDocument/hover';
|
|
673
675
|
HoverRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
674
676
|
HoverRequest.type = new messages_1.ProtocolRequestType(HoverRequest.method);
|
|
675
|
-
})(HoverRequest
|
|
677
|
+
})(HoverRequest || (exports.HoverRequest = HoverRequest = {}));
|
|
676
678
|
/**
|
|
677
679
|
* How a signature help was triggered.
|
|
678
680
|
*
|
|
@@ -692,26 +694,25 @@ var SignatureHelpTriggerKind;
|
|
|
692
694
|
* Signature help was triggered by the cursor moving or by the document content changing.
|
|
693
695
|
*/
|
|
694
696
|
SignatureHelpTriggerKind.ContentChange = 3;
|
|
695
|
-
})(SignatureHelpTriggerKind
|
|
697
|
+
})(SignatureHelpTriggerKind || (exports.SignatureHelpTriggerKind = SignatureHelpTriggerKind = {}));
|
|
696
698
|
var SignatureHelpRequest;
|
|
697
699
|
(function (SignatureHelpRequest) {
|
|
698
700
|
SignatureHelpRequest.method = 'textDocument/signatureHelp';
|
|
699
701
|
SignatureHelpRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
700
702
|
SignatureHelpRequest.type = new messages_1.ProtocolRequestType(SignatureHelpRequest.method);
|
|
701
|
-
})(SignatureHelpRequest
|
|
703
|
+
})(SignatureHelpRequest || (exports.SignatureHelpRequest = SignatureHelpRequest = {}));
|
|
702
704
|
/**
|
|
703
705
|
* A request to resolve the definition location of a symbol at a given text
|
|
704
|
-
* document position. The request's parameter is of type
|
|
705
|
-
*
|
|
706
|
-
*
|
|
707
|
-
* to such.
|
|
706
|
+
* document position. The request's parameter is of type {@link TextDocumentPosition}
|
|
707
|
+
* the response is of either type {@link Definition} or a typed array of
|
|
708
|
+
* {@link DefinitionLink} or a Thenable that resolves to such.
|
|
708
709
|
*/
|
|
709
710
|
var DefinitionRequest;
|
|
710
711
|
(function (DefinitionRequest) {
|
|
711
712
|
DefinitionRequest.method = 'textDocument/definition';
|
|
712
713
|
DefinitionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
713
714
|
DefinitionRequest.type = new messages_1.ProtocolRequestType(DefinitionRequest.method);
|
|
714
|
-
})(DefinitionRequest
|
|
715
|
+
})(DefinitionRequest || (exports.DefinitionRequest = DefinitionRequest = {}));
|
|
715
716
|
/**
|
|
716
717
|
* A request to resolve project-wide references for the symbol denoted
|
|
717
718
|
* by the given text document position. The request's parameter is of
|
|
@@ -723,19 +724,19 @@ var ReferencesRequest;
|
|
|
723
724
|
ReferencesRequest.method = 'textDocument/references';
|
|
724
725
|
ReferencesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
725
726
|
ReferencesRequest.type = new messages_1.ProtocolRequestType(ReferencesRequest.method);
|
|
726
|
-
})(ReferencesRequest
|
|
727
|
+
})(ReferencesRequest || (exports.ReferencesRequest = ReferencesRequest = {}));
|
|
727
728
|
/**
|
|
728
729
|
* Request to resolve a {@link DocumentHighlight} for a given
|
|
729
|
-
* text document position. The request's parameter is of type
|
|
730
|
-
*
|
|
731
|
-
*
|
|
730
|
+
* text document position. The request's parameter is of type {@link TextDocumentPosition}
|
|
731
|
+
* the request response is an array of type {@link DocumentHighlight}
|
|
732
|
+
* or a Thenable that resolves to such.
|
|
732
733
|
*/
|
|
733
734
|
var DocumentHighlightRequest;
|
|
734
735
|
(function (DocumentHighlightRequest) {
|
|
735
736
|
DocumentHighlightRequest.method = 'textDocument/documentHighlight';
|
|
736
737
|
DocumentHighlightRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
737
738
|
DocumentHighlightRequest.type = new messages_1.ProtocolRequestType(DocumentHighlightRequest.method);
|
|
738
|
-
})(DocumentHighlightRequest
|
|
739
|
+
})(DocumentHighlightRequest || (exports.DocumentHighlightRequest = DocumentHighlightRequest = {}));
|
|
739
740
|
/**
|
|
740
741
|
* A request to list all symbols found in a given text document. The request's
|
|
741
742
|
* parameter is of type {@link TextDocumentIdentifier} the
|
|
@@ -747,7 +748,7 @@ var DocumentSymbolRequest;
|
|
|
747
748
|
DocumentSymbolRequest.method = 'textDocument/documentSymbol';
|
|
748
749
|
DocumentSymbolRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
749
750
|
DocumentSymbolRequest.type = new messages_1.ProtocolRequestType(DocumentSymbolRequest.method);
|
|
750
|
-
})(DocumentSymbolRequest
|
|
751
|
+
})(DocumentSymbolRequest || (exports.DocumentSymbolRequest = DocumentSymbolRequest = {}));
|
|
751
752
|
/**
|
|
752
753
|
* A request to provide commands for the given text document and range.
|
|
753
754
|
*/
|
|
@@ -756,7 +757,7 @@ var CodeActionRequest;
|
|
|
756
757
|
CodeActionRequest.method = 'textDocument/codeAction';
|
|
757
758
|
CodeActionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
758
759
|
CodeActionRequest.type = new messages_1.ProtocolRequestType(CodeActionRequest.method);
|
|
759
|
-
})(CodeActionRequest
|
|
760
|
+
})(CodeActionRequest || (exports.CodeActionRequest = CodeActionRequest = {}));
|
|
760
761
|
/**
|
|
761
762
|
* Request to resolve additional information for a given code action.The request's
|
|
762
763
|
* parameter is of type {@link CodeAction} the response
|
|
@@ -767,7 +768,7 @@ var CodeActionResolveRequest;
|
|
|
767
768
|
CodeActionResolveRequest.method = 'codeAction/resolve';
|
|
768
769
|
CodeActionResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
769
770
|
CodeActionResolveRequest.type = new messages_1.ProtocolRequestType(CodeActionResolveRequest.method);
|
|
770
|
-
})(CodeActionResolveRequest
|
|
771
|
+
})(CodeActionResolveRequest || (exports.CodeActionResolveRequest = CodeActionResolveRequest = {}));
|
|
771
772
|
/**
|
|
772
773
|
* A request to list project-wide symbols matching the query string given
|
|
773
774
|
* by the {@link WorkspaceSymbolParams}. The response is
|
|
@@ -784,7 +785,7 @@ var WorkspaceSymbolRequest;
|
|
|
784
785
|
WorkspaceSymbolRequest.method = 'workspace/symbol';
|
|
785
786
|
WorkspaceSymbolRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
786
787
|
WorkspaceSymbolRequest.type = new messages_1.ProtocolRequestType(WorkspaceSymbolRequest.method);
|
|
787
|
-
})(WorkspaceSymbolRequest
|
|
788
|
+
})(WorkspaceSymbolRequest || (exports.WorkspaceSymbolRequest = WorkspaceSymbolRequest = {}));
|
|
788
789
|
/**
|
|
789
790
|
* A request to resolve the range inside the workspace
|
|
790
791
|
* symbol's location.
|
|
@@ -796,7 +797,7 @@ var WorkspaceSymbolResolveRequest;
|
|
|
796
797
|
WorkspaceSymbolResolveRequest.method = 'workspaceSymbol/resolve';
|
|
797
798
|
WorkspaceSymbolResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
798
799
|
WorkspaceSymbolResolveRequest.type = new messages_1.ProtocolRequestType(WorkspaceSymbolResolveRequest.method);
|
|
799
|
-
})(WorkspaceSymbolResolveRequest
|
|
800
|
+
})(WorkspaceSymbolResolveRequest || (exports.WorkspaceSymbolResolveRequest = WorkspaceSymbolResolveRequest = {}));
|
|
800
801
|
/**
|
|
801
802
|
* A request to provide code lens for the given text document.
|
|
802
803
|
*/
|
|
@@ -805,7 +806,7 @@ var CodeLensRequest;
|
|
|
805
806
|
CodeLensRequest.method = 'textDocument/codeLens';
|
|
806
807
|
CodeLensRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
807
808
|
CodeLensRequest.type = new messages_1.ProtocolRequestType(CodeLensRequest.method);
|
|
808
|
-
})(CodeLensRequest
|
|
809
|
+
})(CodeLensRequest || (exports.CodeLensRequest = CodeLensRequest = {}));
|
|
809
810
|
/**
|
|
810
811
|
* A request to resolve a command for a given code lens.
|
|
811
812
|
*/
|
|
@@ -814,7 +815,7 @@ var CodeLensResolveRequest;
|
|
|
814
815
|
CodeLensResolveRequest.method = 'codeLens/resolve';
|
|
815
816
|
CodeLensResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
816
817
|
CodeLensResolveRequest.type = new messages_1.ProtocolRequestType(CodeLensResolveRequest.method);
|
|
817
|
-
})(CodeLensResolveRequest
|
|
818
|
+
})(CodeLensResolveRequest || (exports.CodeLensResolveRequest = CodeLensResolveRequest = {}));
|
|
818
819
|
/**
|
|
819
820
|
* A request to refresh all code actions
|
|
820
821
|
*
|
|
@@ -825,7 +826,7 @@ var CodeLensRefreshRequest;
|
|
|
825
826
|
CodeLensRefreshRequest.method = `workspace/codeLens/refresh`;
|
|
826
827
|
CodeLensRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
827
828
|
CodeLensRefreshRequest.type = new messages_1.ProtocolRequestType0(CodeLensRefreshRequest.method);
|
|
828
|
-
})(CodeLensRefreshRequest
|
|
829
|
+
})(CodeLensRefreshRequest || (exports.CodeLensRefreshRequest = CodeLensRefreshRequest = {}));
|
|
829
830
|
/**
|
|
830
831
|
* A request to provide document links
|
|
831
832
|
*/
|
|
@@ -834,7 +835,7 @@ var DocumentLinkRequest;
|
|
|
834
835
|
DocumentLinkRequest.method = 'textDocument/documentLink';
|
|
835
836
|
DocumentLinkRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
836
837
|
DocumentLinkRequest.type = new messages_1.ProtocolRequestType(DocumentLinkRequest.method);
|
|
837
|
-
})(DocumentLinkRequest
|
|
838
|
+
})(DocumentLinkRequest || (exports.DocumentLinkRequest = DocumentLinkRequest = {}));
|
|
838
839
|
/**
|
|
839
840
|
* Request to resolve additional information for a given document link. The request's
|
|
840
841
|
* parameter is of type {@link DocumentLink} the response
|
|
@@ -845,7 +846,7 @@ var DocumentLinkResolveRequest;
|
|
|
845
846
|
DocumentLinkResolveRequest.method = 'documentLink/resolve';
|
|
846
847
|
DocumentLinkResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
847
848
|
DocumentLinkResolveRequest.type = new messages_1.ProtocolRequestType(DocumentLinkResolveRequest.method);
|
|
848
|
-
})(DocumentLinkResolveRequest
|
|
849
|
+
})(DocumentLinkResolveRequest || (exports.DocumentLinkResolveRequest = DocumentLinkResolveRequest = {}));
|
|
849
850
|
/**
|
|
850
851
|
* A request to format a whole document.
|
|
851
852
|
*/
|
|
@@ -854,7 +855,7 @@ var DocumentFormattingRequest;
|
|
|
854
855
|
DocumentFormattingRequest.method = 'textDocument/formatting';
|
|
855
856
|
DocumentFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
856
857
|
DocumentFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentFormattingRequest.method);
|
|
857
|
-
})(DocumentFormattingRequest
|
|
858
|
+
})(DocumentFormattingRequest || (exports.DocumentFormattingRequest = DocumentFormattingRequest = {}));
|
|
858
859
|
/**
|
|
859
860
|
* A request to format a range in a document.
|
|
860
861
|
*/
|
|
@@ -863,7 +864,19 @@ var DocumentRangeFormattingRequest;
|
|
|
863
864
|
DocumentRangeFormattingRequest.method = 'textDocument/rangeFormatting';
|
|
864
865
|
DocumentRangeFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
865
866
|
DocumentRangeFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentRangeFormattingRequest.method);
|
|
866
|
-
})(DocumentRangeFormattingRequest
|
|
867
|
+
})(DocumentRangeFormattingRequest || (exports.DocumentRangeFormattingRequest = DocumentRangeFormattingRequest = {}));
|
|
868
|
+
/**
|
|
869
|
+
* A request to format ranges in a document.
|
|
870
|
+
*
|
|
871
|
+
* @since 3.18.0
|
|
872
|
+
* @proposed
|
|
873
|
+
*/
|
|
874
|
+
var DocumentRangesFormattingRequest;
|
|
875
|
+
(function (DocumentRangesFormattingRequest) {
|
|
876
|
+
DocumentRangesFormattingRequest.method = 'textDocument/rangesFormatting';
|
|
877
|
+
DocumentRangesFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
878
|
+
DocumentRangesFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentRangesFormattingRequest.method);
|
|
879
|
+
})(DocumentRangesFormattingRequest || (exports.DocumentRangesFormattingRequest = DocumentRangesFormattingRequest = {}));
|
|
867
880
|
/**
|
|
868
881
|
* A request to format a document on type.
|
|
869
882
|
*/
|
|
@@ -872,7 +885,7 @@ var DocumentOnTypeFormattingRequest;
|
|
|
872
885
|
DocumentOnTypeFormattingRequest.method = 'textDocument/onTypeFormatting';
|
|
873
886
|
DocumentOnTypeFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
874
887
|
DocumentOnTypeFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentOnTypeFormattingRequest.method);
|
|
875
|
-
})(DocumentOnTypeFormattingRequest
|
|
888
|
+
})(DocumentOnTypeFormattingRequest || (exports.DocumentOnTypeFormattingRequest = DocumentOnTypeFormattingRequest = {}));
|
|
876
889
|
//---- Rename ----------------------------------------------
|
|
877
890
|
var PrepareSupportDefaultBehavior;
|
|
878
891
|
(function (PrepareSupportDefaultBehavior) {
|
|
@@ -881,7 +894,7 @@ var PrepareSupportDefaultBehavior;
|
|
|
881
894
|
* according the to language's syntax rule.
|
|
882
895
|
*/
|
|
883
896
|
PrepareSupportDefaultBehavior.Identifier = 1;
|
|
884
|
-
})(PrepareSupportDefaultBehavior
|
|
897
|
+
})(PrepareSupportDefaultBehavior || (exports.PrepareSupportDefaultBehavior = PrepareSupportDefaultBehavior = {}));
|
|
885
898
|
/**
|
|
886
899
|
* A request to rename a symbol.
|
|
887
900
|
*/
|
|
@@ -890,7 +903,7 @@ var RenameRequest;
|
|
|
890
903
|
RenameRequest.method = 'textDocument/rename';
|
|
891
904
|
RenameRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
892
905
|
RenameRequest.type = new messages_1.ProtocolRequestType(RenameRequest.method);
|
|
893
|
-
})(RenameRequest
|
|
906
|
+
})(RenameRequest || (exports.RenameRequest = RenameRequest = {}));
|
|
894
907
|
/**
|
|
895
908
|
* A request to test and perform the setup necessary for a rename.
|
|
896
909
|
*
|
|
@@ -901,7 +914,7 @@ var PrepareRenameRequest;
|
|
|
901
914
|
PrepareRenameRequest.method = 'textDocument/prepareRename';
|
|
902
915
|
PrepareRenameRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
903
916
|
PrepareRenameRequest.type = new messages_1.ProtocolRequestType(PrepareRenameRequest.method);
|
|
904
|
-
})(PrepareRenameRequest
|
|
917
|
+
})(PrepareRenameRequest || (exports.PrepareRenameRequest = PrepareRenameRequest = {}));
|
|
905
918
|
/**
|
|
906
919
|
* A request send from the client to the server to execute a command. The request might return
|
|
907
920
|
* a workspace edit which the client will apply to the workspace.
|
|
@@ -911,7 +924,7 @@ var ExecuteCommandRequest;
|
|
|
911
924
|
ExecuteCommandRequest.method = 'workspace/executeCommand';
|
|
912
925
|
ExecuteCommandRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
913
926
|
ExecuteCommandRequest.type = new messages_1.ProtocolRequestType(ExecuteCommandRequest.method);
|
|
914
|
-
})(ExecuteCommandRequest
|
|
927
|
+
})(ExecuteCommandRequest || (exports.ExecuteCommandRequest = ExecuteCommandRequest = {}));
|
|
915
928
|
/**
|
|
916
929
|
* A request sent from the server to the client to modified certain resources.
|
|
917
930
|
*/
|
|
@@ -920,4 +933,4 @@ var ApplyWorkspaceEditRequest;
|
|
|
920
933
|
ApplyWorkspaceEditRequest.method = 'workspace/applyEdit';
|
|
921
934
|
ApplyWorkspaceEditRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
922
935
|
ApplyWorkspaceEditRequest.type = new messages_1.ProtocolRequestType('workspace/applyEdit');
|
|
923
|
-
})(ApplyWorkspaceEditRequest
|
|
936
|
+
})(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
|
*
|