@depup/vscode-languageserver-protocol 3.18.3-depup.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/License.txt +11 -0
  2. package/README.md +25 -0
  3. package/changes.json +5 -0
  4. package/eslint.config.js +13 -0
  5. package/lib/browser/main.d.ts +4 -0
  6. package/lib/browser/main.js +27 -0
  7. package/lib/common/api.d.ts +58 -0
  8. package/lib/common/api.js +77 -0
  9. package/lib/common/connection.d.ts +187 -0
  10. package/lib/common/connection.js +14 -0
  11. package/lib/common/messages.d.ts +58 -0
  12. package/lib/common/messages.js +81 -0
  13. package/lib/common/protocol.$.d.ts +1 -0
  14. package/lib/common/protocol.$.js +43 -0
  15. package/lib/common/protocol.callHierarchy.d.ts +89 -0
  16. package/lib/common/protocol.callHierarchy.js +45 -0
  17. package/lib/common/protocol.colorProvider.d.ts +68 -0
  18. package/lib/common/protocol.colorProvider.js +34 -0
  19. package/lib/common/protocol.configuration.d.ts +36 -0
  20. package/lib/common/protocol.configuration.js +25 -0
  21. package/lib/common/protocol.d.ts +3626 -0
  22. package/lib/common/protocol.declaration.d.ts +38 -0
  23. package/lib/common/protocol.declaration.js +23 -0
  24. package/lib/common/protocol.diagnostic.d.ts +369 -0
  25. package/lib/common/protocol.diagnostic.js +111 -0
  26. package/lib/common/protocol.fileOperations.d.ts +312 -0
  27. package/lib/common/protocol.fileOperations.js +107 -0
  28. package/lib/common/protocol.foldingRange.d.ts +118 -0
  29. package/lib/common/protocol.foldingRange.js +33 -0
  30. package/lib/common/protocol.implementation.d.ts +39 -0
  31. package/lib/common/protocol.implementation.js +22 -0
  32. package/lib/common/protocol.inlayHint.d.ts +117 -0
  33. package/lib/common/protocol.inlayHint.js +46 -0
  34. package/lib/common/protocol.inlineCompletion.d.ts +53 -0
  35. package/lib/common/protocol.inlineCompletion.js +22 -0
  36. package/lib/common/protocol.inlineValue.d.ts +88 -0
  37. package/lib/common/protocol.inlineValue.js +32 -0
  38. package/lib/common/protocol.js +1031 -0
  39. package/lib/common/protocol.linkedEditingRange.d.ts +53 -0
  40. package/lib/common/protocol.linkedEditingRange.js +20 -0
  41. package/lib/common/protocol.moniker.d.ts +107 -0
  42. package/lib/common/protocol.moniker.js +69 -0
  43. package/lib/common/protocol.notebook.d.ts +428 -0
  44. package/lib/common/protocol.notebook.js +247 -0
  45. package/lib/common/protocol.progress.d.ts +108 -0
  46. package/lib/common/protocol.progress.js +38 -0
  47. package/lib/common/protocol.selectionRange.d.ts +42 -0
  48. package/lib/common/protocol.selectionRange.js +21 -0
  49. package/lib/common/protocol.semanticTokens.d.ts +241 -0
  50. package/lib/common/protocol.semanticTokens.js +61 -0
  51. package/lib/common/protocol.showDocument.d.ts +73 -0
  52. package/lib/common/protocol.showDocument.js +23 -0
  53. package/lib/common/protocol.textDocumentContent.d.ts +93 -0
  54. package/lib/common/protocol.textDocumentContent.js +33 -0
  55. package/lib/common/protocol.typeDefinition.d.ts +39 -0
  56. package/lib/common/protocol.typeDefinition.js +22 -0
  57. package/lib/common/protocol.typeHierarchy.d.ts +84 -0
  58. package/lib/common/protocol.typeHierarchy.js +43 -0
  59. package/lib/common/protocol.workspaceFolder.d.ts +76 -0
  60. package/lib/common/protocol.workspaceFolder.js +29 -0
  61. package/lib/common/utils/is.d.ts +9 -0
  62. package/lib/common/utils/is.js +45 -0
  63. package/lib/node/main.d.ts +5 -0
  64. package/lib/node/main.js +27 -0
  65. package/metaModel.schema.json +864 -0
  66. package/package.json +68 -0
  67. package/thirdpartynotices.txt +31 -0
@@ -0,0 +1,1031 @@
1
+ "use strict";
2
+ /* --------------------------------------------------------------------------------------------
3
+ * Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * Licensed under the MIT License. See License.txt in the project root for license information.
5
+ * ------------------------------------------------------------------------------------------ */
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
19
+ }) : function(o, v) {
20
+ o["default"] = v;
21
+ });
22
+ var __importStar = (this && this.__importStar) || (function () {
23
+ var ownKeys = function(o) {
24
+ ownKeys = Object.getOwnPropertyNames || function (o) {
25
+ var ar = [];
26
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
27
+ return ar;
28
+ };
29
+ return ownKeys(o);
30
+ };
31
+ return function (mod) {
32
+ if (mod && mod.__esModule) return mod;
33
+ var result = {};
34
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
35
+ __setModuleDefault(result, mod);
36
+ return result;
37
+ };
38
+ })();
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ 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.GlobPattern = 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.RegularExpressionEngineKind = exports.FailureHandlingKind = exports.ResourceOperationKind = exports.UnregistrationRequest = exports.RegistrationRequest = exports.DocumentSelector = exports.NotebookCellTextDocumentFilter = exports.NotebookDocumentFilter = exports.TextDocumentFilter = void 0;
41
+ 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 = exports.WorkspaceSymbolRequest = exports.CodeActionResolveRequest = void 0;
42
+ exports.TextDocumentContentRefreshRequest = exports.TextDocumentContentRequest = 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 = exports.MonikerRequest = exports.MonikerKind = void 0;
43
+ const messages_1 = require("./messages");
44
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
45
+ const Is = __importStar(require("./utils/is"));
46
+ const protocol_implementation_1 = require("./protocol.implementation");
47
+ Object.defineProperty(exports, "ImplementationRequest", { enumerable: true, get: function () { return protocol_implementation_1.ImplementationRequest; } });
48
+ const protocol_typeDefinition_1 = require("./protocol.typeDefinition");
49
+ Object.defineProperty(exports, "TypeDefinitionRequest", { enumerable: true, get: function () { return protocol_typeDefinition_1.TypeDefinitionRequest; } });
50
+ const protocol_workspaceFolder_1 = require("./protocol.workspaceFolder");
51
+ Object.defineProperty(exports, "WorkspaceFoldersRequest", { enumerable: true, get: function () { return protocol_workspaceFolder_1.WorkspaceFoldersRequest; } });
52
+ Object.defineProperty(exports, "DidChangeWorkspaceFoldersNotification", { enumerable: true, get: function () { return protocol_workspaceFolder_1.DidChangeWorkspaceFoldersNotification; } });
53
+ const protocol_configuration_1 = require("./protocol.configuration");
54
+ Object.defineProperty(exports, "ConfigurationRequest", { enumerable: true, get: function () { return protocol_configuration_1.ConfigurationRequest; } });
55
+ const protocol_colorProvider_1 = require("./protocol.colorProvider");
56
+ Object.defineProperty(exports, "DocumentColorRequest", { enumerable: true, get: function () { return protocol_colorProvider_1.DocumentColorRequest; } });
57
+ Object.defineProperty(exports, "ColorPresentationRequest", { enumerable: true, get: function () { return protocol_colorProvider_1.ColorPresentationRequest; } });
58
+ const protocol_foldingRange_1 = require("./protocol.foldingRange");
59
+ Object.defineProperty(exports, "FoldingRangeRequest", { enumerable: true, get: function () { return protocol_foldingRange_1.FoldingRangeRequest; } });
60
+ Object.defineProperty(exports, "FoldingRangeRefreshRequest", { enumerable: true, get: function () { return protocol_foldingRange_1.FoldingRangeRefreshRequest; } });
61
+ const protocol_declaration_1 = require("./protocol.declaration");
62
+ Object.defineProperty(exports, "DeclarationRequest", { enumerable: true, get: function () { return protocol_declaration_1.DeclarationRequest; } });
63
+ const protocol_selectionRange_1 = require("./protocol.selectionRange");
64
+ Object.defineProperty(exports, "SelectionRangeRequest", { enumerable: true, get: function () { return protocol_selectionRange_1.SelectionRangeRequest; } });
65
+ const protocol_progress_1 = require("./protocol.progress");
66
+ Object.defineProperty(exports, "WorkDoneProgress", { enumerable: true, get: function () { return protocol_progress_1.WorkDoneProgress; } });
67
+ Object.defineProperty(exports, "WorkDoneProgressCreateRequest", { enumerable: true, get: function () { return protocol_progress_1.WorkDoneProgressCreateRequest; } });
68
+ Object.defineProperty(exports, "WorkDoneProgressCancelNotification", { enumerable: true, get: function () { return protocol_progress_1.WorkDoneProgressCancelNotification; } });
69
+ const protocol_callHierarchy_1 = require("./protocol.callHierarchy");
70
+ Object.defineProperty(exports, "CallHierarchyIncomingCallsRequest", { enumerable: true, get: function () { return protocol_callHierarchy_1.CallHierarchyIncomingCallsRequest; } });
71
+ Object.defineProperty(exports, "CallHierarchyOutgoingCallsRequest", { enumerable: true, get: function () { return protocol_callHierarchy_1.CallHierarchyOutgoingCallsRequest; } });
72
+ Object.defineProperty(exports, "CallHierarchyPrepareRequest", { enumerable: true, get: function () { return protocol_callHierarchy_1.CallHierarchyPrepareRequest; } });
73
+ const protocol_semanticTokens_1 = require("./protocol.semanticTokens");
74
+ Object.defineProperty(exports, "TokenFormat", { enumerable: true, get: function () { return protocol_semanticTokens_1.TokenFormat; } });
75
+ Object.defineProperty(exports, "SemanticTokensRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRequest; } });
76
+ Object.defineProperty(exports, "SemanticTokensDeltaRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensDeltaRequest; } });
77
+ Object.defineProperty(exports, "SemanticTokensRangeRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRangeRequest; } });
78
+ Object.defineProperty(exports, "SemanticTokensRefreshRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRefreshRequest; } });
79
+ Object.defineProperty(exports, "SemanticTokensRegistrationType", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRegistrationType; } });
80
+ const protocol_showDocument_1 = require("./protocol.showDocument");
81
+ Object.defineProperty(exports, "ShowDocumentRequest", { enumerable: true, get: function () { return protocol_showDocument_1.ShowDocumentRequest; } });
82
+ const protocol_linkedEditingRange_1 = require("./protocol.linkedEditingRange");
83
+ Object.defineProperty(exports, "LinkedEditingRangeRequest", { enumerable: true, get: function () { return protocol_linkedEditingRange_1.LinkedEditingRangeRequest; } });
84
+ const protocol_fileOperations_1 = require("./protocol.fileOperations");
85
+ Object.defineProperty(exports, "FileOperationPatternKind", { enumerable: true, get: function () { return protocol_fileOperations_1.FileOperationPatternKind; } });
86
+ Object.defineProperty(exports, "DidCreateFilesNotification", { enumerable: true, get: function () { return protocol_fileOperations_1.DidCreateFilesNotification; } });
87
+ Object.defineProperty(exports, "WillCreateFilesRequest", { enumerable: true, get: function () { return protocol_fileOperations_1.WillCreateFilesRequest; } });
88
+ Object.defineProperty(exports, "DidRenameFilesNotification", { enumerable: true, get: function () { return protocol_fileOperations_1.DidRenameFilesNotification; } });
89
+ Object.defineProperty(exports, "WillRenameFilesRequest", { enumerable: true, get: function () { return protocol_fileOperations_1.WillRenameFilesRequest; } });
90
+ Object.defineProperty(exports, "DidDeleteFilesNotification", { enumerable: true, get: function () { return protocol_fileOperations_1.DidDeleteFilesNotification; } });
91
+ Object.defineProperty(exports, "WillDeleteFilesRequest", { enumerable: true, get: function () { return protocol_fileOperations_1.WillDeleteFilesRequest; } });
92
+ const protocol_moniker_1 = require("./protocol.moniker");
93
+ Object.defineProperty(exports, "UniquenessLevel", { enumerable: true, get: function () { return protocol_moniker_1.UniquenessLevel; } });
94
+ Object.defineProperty(exports, "MonikerKind", { enumerable: true, get: function () { return protocol_moniker_1.MonikerKind; } });
95
+ Object.defineProperty(exports, "MonikerRequest", { enumerable: true, get: function () { return protocol_moniker_1.MonikerRequest; } });
96
+ const protocol_typeHierarchy_1 = require("./protocol.typeHierarchy");
97
+ Object.defineProperty(exports, "TypeHierarchyPrepareRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchyPrepareRequest; } });
98
+ Object.defineProperty(exports, "TypeHierarchySubtypesRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchySubtypesRequest; } });
99
+ Object.defineProperty(exports, "TypeHierarchySupertypesRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchySupertypesRequest; } });
100
+ const protocol_inlineValue_1 = require("./protocol.inlineValue");
101
+ Object.defineProperty(exports, "InlineValueRequest", { enumerable: true, get: function () { return protocol_inlineValue_1.InlineValueRequest; } });
102
+ Object.defineProperty(exports, "InlineValueRefreshRequest", { enumerable: true, get: function () { return protocol_inlineValue_1.InlineValueRefreshRequest; } });
103
+ const protocol_inlayHint_1 = require("./protocol.inlayHint");
104
+ Object.defineProperty(exports, "InlayHintRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintRequest; } });
105
+ Object.defineProperty(exports, "InlayHintResolveRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintResolveRequest; } });
106
+ Object.defineProperty(exports, "InlayHintRefreshRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintRefreshRequest; } });
107
+ const protocol_diagnostic_1 = require("./protocol.diagnostic");
108
+ Object.defineProperty(exports, "DiagnosticServerCancellationData", { enumerable: true, get: function () { return protocol_diagnostic_1.DiagnosticServerCancellationData; } });
109
+ Object.defineProperty(exports, "DocumentDiagnosticReportKind", { enumerable: true, get: function () { return protocol_diagnostic_1.DocumentDiagnosticReportKind; } });
110
+ Object.defineProperty(exports, "DocumentDiagnosticRequest", { enumerable: true, get: function () { return protocol_diagnostic_1.DocumentDiagnosticRequest; } });
111
+ Object.defineProperty(exports, "WorkspaceDiagnosticRequest", { enumerable: true, get: function () { return protocol_diagnostic_1.WorkspaceDiagnosticRequest; } });
112
+ Object.defineProperty(exports, "DiagnosticRefreshRequest", { enumerable: true, get: function () { return protocol_diagnostic_1.DiagnosticRefreshRequest; } });
113
+ const protocol_notebook_1 = require("./protocol.notebook");
114
+ Object.defineProperty(exports, "NotebookCellKind", { enumerable: true, get: function () { return protocol_notebook_1.NotebookCellKind; } });
115
+ Object.defineProperty(exports, "ExecutionSummary", { enumerable: true, get: function () { return protocol_notebook_1.ExecutionSummary; } });
116
+ Object.defineProperty(exports, "NotebookCell", { enumerable: true, get: function () { return protocol_notebook_1.NotebookCell; } });
117
+ Object.defineProperty(exports, "NotebookDocument", { enumerable: true, get: function () { return protocol_notebook_1.NotebookDocument; } });
118
+ Object.defineProperty(exports, "NotebookDocumentSyncRegistrationType", { enumerable: true, get: function () { return protocol_notebook_1.NotebookDocumentSyncRegistrationType; } });
119
+ Object.defineProperty(exports, "DidOpenNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidOpenNotebookDocumentNotification; } });
120
+ Object.defineProperty(exports, "NotebookCellArrayChange", { enumerable: true, get: function () { return protocol_notebook_1.NotebookCellArrayChange; } });
121
+ Object.defineProperty(exports, "DidChangeNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidChangeNotebookDocumentNotification; } });
122
+ Object.defineProperty(exports, "DidSaveNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidSaveNotebookDocumentNotification; } });
123
+ Object.defineProperty(exports, "DidCloseNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidCloseNotebookDocumentNotification; } });
124
+ const protocol_inlineCompletion_1 = require("./protocol.inlineCompletion");
125
+ Object.defineProperty(exports, "InlineCompletionRequest", { enumerable: true, get: function () { return protocol_inlineCompletion_1.InlineCompletionRequest; } });
126
+ const protocol_textDocumentContent_1 = require("./protocol.textDocumentContent");
127
+ Object.defineProperty(exports, "TextDocumentContentRequest", { enumerable: true, get: function () { return protocol_textDocumentContent_1.TextDocumentContentRequest; } });
128
+ Object.defineProperty(exports, "TextDocumentContentRefreshRequest", { enumerable: true, get: function () { return protocol_textDocumentContent_1.TextDocumentContentRefreshRequest; } });
129
+ // @ts-ignore: to avoid inlining LocationLink as dynamic import
130
+ let __noDynamicImport;
131
+ /**
132
+ * The TextDocumentFilter namespace provides helper functions to work with
133
+ * {@link TextDocumentFilter} literals.
134
+ *
135
+ * @since 3.17.0
136
+ */
137
+ var TextDocumentFilter;
138
+ (function (TextDocumentFilter) {
139
+ function is(value) {
140
+ const candidate = value;
141
+ return Is.string(candidate) || (Is.string(candidate.language) || Is.string(candidate.scheme) || GlobPattern.is(candidate.pattern));
142
+ }
143
+ TextDocumentFilter.is = is;
144
+ })(TextDocumentFilter || (exports.TextDocumentFilter = TextDocumentFilter = {}));
145
+ /**
146
+ * The NotebookDocumentFilter namespace provides helper functions to work with
147
+ * {@link NotebookDocumentFilter} literals.
148
+ *
149
+ * @since 3.17.0
150
+ */
151
+ var NotebookDocumentFilter;
152
+ (function (NotebookDocumentFilter) {
153
+ function is(value) {
154
+ const candidate = value;
155
+ return Is.objectLiteral(candidate) && (Is.string(candidate.notebookType) || Is.string(candidate.scheme) || Is.string(candidate.pattern));
156
+ }
157
+ NotebookDocumentFilter.is = is;
158
+ })(NotebookDocumentFilter || (exports.NotebookDocumentFilter = NotebookDocumentFilter = {}));
159
+ /**
160
+ * The NotebookCellTextDocumentFilter namespace provides helper functions to work with
161
+ * {@link NotebookCellTextDocumentFilter} literals.
162
+ *
163
+ * @since 3.17.0
164
+ */
165
+ var NotebookCellTextDocumentFilter;
166
+ (function (NotebookCellTextDocumentFilter) {
167
+ function is(value) {
168
+ const candidate = value;
169
+ return Is.objectLiteral(candidate)
170
+ && (Is.string(candidate.notebook) || NotebookDocumentFilter.is(candidate.notebook))
171
+ && (candidate.language === undefined || Is.string(candidate.language));
172
+ }
173
+ NotebookCellTextDocumentFilter.is = is;
174
+ })(NotebookCellTextDocumentFilter || (exports.NotebookCellTextDocumentFilter = NotebookCellTextDocumentFilter = {}));
175
+ /**
176
+ * The DocumentSelector namespace provides helper functions to work with
177
+ * {@link DocumentSelector}s.
178
+ */
179
+ var DocumentSelector;
180
+ (function (DocumentSelector) {
181
+ function is(value) {
182
+ if (!Array.isArray(value)) {
183
+ return false;
184
+ }
185
+ for (const elem of value) {
186
+ if (!Is.string(elem) && !TextDocumentFilter.is(elem) && !NotebookCellTextDocumentFilter.is(elem)) {
187
+ return false;
188
+ }
189
+ }
190
+ return true;
191
+ }
192
+ DocumentSelector.is = is;
193
+ })(DocumentSelector || (exports.DocumentSelector = DocumentSelector = {}));
194
+ /**
195
+ * The `client/registerCapability` request is sent from the server to the client to register a new capability
196
+ * handler on the client side.
197
+ */
198
+ var RegistrationRequest;
199
+ (function (RegistrationRequest) {
200
+ RegistrationRequest.method = 'client/registerCapability';
201
+ RegistrationRequest.messageDirection = messages_1.MessageDirection.serverToClient;
202
+ RegistrationRequest.type = new messages_1.ProtocolRequestType(RegistrationRequest.method);
203
+ })(RegistrationRequest || (exports.RegistrationRequest = RegistrationRequest = {}));
204
+ /**
205
+ * The `client/unregisterCapability` request is sent from the server to the client to unregister a previously registered capability
206
+ * handler on the client side.
207
+ */
208
+ var UnregistrationRequest;
209
+ (function (UnregistrationRequest) {
210
+ UnregistrationRequest.method = 'client/unregisterCapability';
211
+ UnregistrationRequest.messageDirection = messages_1.MessageDirection.serverToClient;
212
+ UnregistrationRequest.type = new messages_1.ProtocolRequestType(UnregistrationRequest.method);
213
+ })(UnregistrationRequest || (exports.UnregistrationRequest = UnregistrationRequest = {}));
214
+ var ResourceOperationKind;
215
+ (function (ResourceOperationKind) {
216
+ /**
217
+ * Supports creating new files and folders.
218
+ */
219
+ ResourceOperationKind.Create = 'create';
220
+ /**
221
+ * Supports renaming existing files and folders.
222
+ */
223
+ ResourceOperationKind.Rename = 'rename';
224
+ /**
225
+ * Supports deleting existing files and folders.
226
+ */
227
+ ResourceOperationKind.Delete = 'delete';
228
+ })(ResourceOperationKind || (exports.ResourceOperationKind = ResourceOperationKind = {}));
229
+ var FailureHandlingKind;
230
+ (function (FailureHandlingKind) {
231
+ /**
232
+ * Applying the workspace change is simply aborted if one of the changes provided
233
+ * fails. All operations executed before the failing operation stay executed.
234
+ */
235
+ FailureHandlingKind.Abort = 'abort';
236
+ /**
237
+ * All operations are executed transactional. That means they either all
238
+ * succeed or no changes at all are applied to the workspace.
239
+ */
240
+ FailureHandlingKind.Transactional = 'transactional';
241
+ /**
242
+ * If the workspace edit contains only textual file changes they are executed transactional.
243
+ * If resource changes (create, rename or delete file) are part of the change the failure
244
+ * handling strategy is abort.
245
+ */
246
+ FailureHandlingKind.TextOnlyTransactional = 'textOnlyTransactional';
247
+ /**
248
+ * The client tries to undo the operations already executed. But there is no
249
+ * guarantee that this is succeeding.
250
+ */
251
+ FailureHandlingKind.Undo = 'undo';
252
+ })(FailureHandlingKind || (exports.FailureHandlingKind = FailureHandlingKind = {}));
253
+ /**
254
+ * Regular Expression Engines
255
+ *
256
+ * @since 3.18.0
257
+ */
258
+ var RegularExpressionEngineKind;
259
+ (function (RegularExpressionEngineKind) {
260
+ RegularExpressionEngineKind.ES2020 = 'ES2020';
261
+ })(RegularExpressionEngineKind || (exports.RegularExpressionEngineKind = RegularExpressionEngineKind = {}));
262
+ /**
263
+ * A set of predefined position encoding kinds.
264
+ *
265
+ * @since 3.17.0
266
+ */
267
+ var PositionEncodingKind;
268
+ (function (PositionEncodingKind) {
269
+ /**
270
+ * Character offsets count UTF-8 code units (e.g. bytes).
271
+ */
272
+ PositionEncodingKind.UTF8 = 'utf-8';
273
+ /**
274
+ * Character offsets count UTF-16 code units.
275
+ *
276
+ * This is the default and must always be supported
277
+ * by servers
278
+ */
279
+ PositionEncodingKind.UTF16 = 'utf-16';
280
+ /**
281
+ * Character offsets count UTF-32 code units.
282
+ *
283
+ * Implementation note: these are the same as Unicode codepoints,
284
+ * so this `PositionEncodingKind` may also be used for an
285
+ * encoding-agnostic representation of character offsets.
286
+ */
287
+ PositionEncodingKind.UTF32 = 'utf-32';
288
+ })(PositionEncodingKind || (exports.PositionEncodingKind = PositionEncodingKind = {}));
289
+ /**
290
+ * The StaticRegistrationOptions namespace provides helper functions to work with
291
+ * {@link StaticRegistrationOptions} literals.
292
+ */
293
+ var StaticRegistrationOptions;
294
+ (function (StaticRegistrationOptions) {
295
+ function hasId(value) {
296
+ const candidate = value;
297
+ return candidate && Is.string(candidate.id) && candidate.id.length > 0;
298
+ }
299
+ StaticRegistrationOptions.hasId = hasId;
300
+ })(StaticRegistrationOptions || (exports.StaticRegistrationOptions = StaticRegistrationOptions = {}));
301
+ /**
302
+ * The TextDocumentRegistrationOptions namespace provides helper functions to work with
303
+ * {@link TextDocumentRegistrationOptions} literals.
304
+ */
305
+ var TextDocumentRegistrationOptions;
306
+ (function (TextDocumentRegistrationOptions) {
307
+ function is(value) {
308
+ const candidate = value;
309
+ return candidate && (candidate.documentSelector === null || DocumentSelector.is(candidate.documentSelector));
310
+ }
311
+ TextDocumentRegistrationOptions.is = is;
312
+ })(TextDocumentRegistrationOptions || (exports.TextDocumentRegistrationOptions = TextDocumentRegistrationOptions = {}));
313
+ /**
314
+ * The WorkDoneProgressOptions namespace provides helper functions to work with
315
+ * {@link WorkDoneProgressOptions} literals.
316
+ */
317
+ var WorkDoneProgressOptions;
318
+ (function (WorkDoneProgressOptions) {
319
+ function is(value) {
320
+ const candidate = value;
321
+ return Is.objectLiteral(candidate) && (candidate.workDoneProgress === undefined || Is.boolean(candidate.workDoneProgress));
322
+ }
323
+ WorkDoneProgressOptions.is = is;
324
+ function hasWorkDoneProgress(value) {
325
+ const candidate = value;
326
+ return candidate && Is.boolean(candidate.workDoneProgress);
327
+ }
328
+ WorkDoneProgressOptions.hasWorkDoneProgress = hasWorkDoneProgress;
329
+ })(WorkDoneProgressOptions || (exports.WorkDoneProgressOptions = WorkDoneProgressOptions = {}));
330
+ /**
331
+ * The initialize request is sent from the client to the server.
332
+ * It is sent once as the request after starting up the server.
333
+ * The requests parameter is of type {@link InitializeParams}
334
+ * the response if of type {@link InitializeResult} of a Thenable that
335
+ * resolves to such.
336
+ */
337
+ var InitializeRequest;
338
+ (function (InitializeRequest) {
339
+ InitializeRequest.method = 'initialize';
340
+ InitializeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
341
+ InitializeRequest.type = new messages_1.ProtocolRequestType(InitializeRequest.method);
342
+ })(InitializeRequest || (exports.InitializeRequest = InitializeRequest = {}));
343
+ /**
344
+ * Known error codes for an `InitializeErrorCodes`;
345
+ */
346
+ var InitializeErrorCodes;
347
+ (function (InitializeErrorCodes) {
348
+ /**
349
+ * If the protocol version provided by the client can't be handled by the server.
350
+ *
351
+ * @deprecated This initialize error got replaced by client capabilities. There is
352
+ * no version handshake in version 3.0x
353
+ */
354
+ InitializeErrorCodes.unknownProtocolVersion = 1;
355
+ })(InitializeErrorCodes || (exports.InitializeErrorCodes = InitializeErrorCodes = {}));
356
+ /**
357
+ * The initialized notification is sent from the client to the
358
+ * server after the client is fully initialized and the server
359
+ * is allowed to send requests from the server to the client.
360
+ */
361
+ var InitializedNotification;
362
+ (function (InitializedNotification) {
363
+ InitializedNotification.method = 'initialized';
364
+ InitializedNotification.messageDirection = messages_1.MessageDirection.clientToServer;
365
+ InitializedNotification.type = new messages_1.ProtocolNotificationType(InitializedNotification.method);
366
+ })(InitializedNotification || (exports.InitializedNotification = InitializedNotification = {}));
367
+ //---- Shutdown Method ----
368
+ /**
369
+ * A shutdown request is sent from the client to the server.
370
+ * It is sent once when the client decides to shutdown the
371
+ * server. The only notification that is sent after a shutdown request
372
+ * is the exit event.
373
+ */
374
+ var ShutdownRequest;
375
+ (function (ShutdownRequest) {
376
+ ShutdownRequest.method = 'shutdown';
377
+ ShutdownRequest.messageDirection = messages_1.MessageDirection.clientToServer;
378
+ ShutdownRequest.type = new messages_1.ProtocolRequestType0(ShutdownRequest.method);
379
+ })(ShutdownRequest || (exports.ShutdownRequest = ShutdownRequest = {}));
380
+ //---- Exit Notification ----
381
+ /**
382
+ * The exit event is sent from the client to the server to
383
+ * ask the server to exit its process.
384
+ */
385
+ var ExitNotification;
386
+ (function (ExitNotification) {
387
+ ExitNotification.method = 'exit';
388
+ ExitNotification.messageDirection = messages_1.MessageDirection.clientToServer;
389
+ ExitNotification.type = new messages_1.ProtocolNotificationType0(ExitNotification.method);
390
+ })(ExitNotification || (exports.ExitNotification = ExitNotification = {}));
391
+ /**
392
+ * The configuration change notification is sent from the client to the server
393
+ * when the client's configuration has changed. The notification contains
394
+ * the changed configuration as defined by the language client.
395
+ */
396
+ var DidChangeConfigurationNotification;
397
+ (function (DidChangeConfigurationNotification) {
398
+ DidChangeConfigurationNotification.method = 'workspace/didChangeConfiguration';
399
+ DidChangeConfigurationNotification.messageDirection = messages_1.MessageDirection.clientToServer;
400
+ DidChangeConfigurationNotification.type = new messages_1.ProtocolNotificationType(DidChangeConfigurationNotification.method);
401
+ DidChangeConfigurationNotification.capabilities = messages_1.CM.create('workspace.didChangeConfiguration', undefined);
402
+ })(DidChangeConfigurationNotification || (exports.DidChangeConfigurationNotification = DidChangeConfigurationNotification = {}));
403
+ //---- Message show and log notifications ----
404
+ /**
405
+ * The message type
406
+ */
407
+ var MessageType;
408
+ (function (MessageType) {
409
+ /**
410
+ * An error message.
411
+ */
412
+ MessageType.Error = 1;
413
+ /**
414
+ * A warning message.
415
+ */
416
+ MessageType.Warning = 2;
417
+ /**
418
+ * An information message.
419
+ */
420
+ MessageType.Info = 3;
421
+ /**
422
+ * A log message.
423
+ */
424
+ MessageType.Log = 4;
425
+ /**
426
+ * A debug message.
427
+ *
428
+ * @since 3.18.0
429
+ */
430
+ MessageType.Debug = 5;
431
+ })(MessageType || (exports.MessageType = MessageType = {}));
432
+ /**
433
+ * The show message notification is sent from a server to a client to ask
434
+ * the client to display a particular message in the user interface.
435
+ */
436
+ var ShowMessageNotification;
437
+ (function (ShowMessageNotification) {
438
+ ShowMessageNotification.method = 'window/showMessage';
439
+ ShowMessageNotification.messageDirection = messages_1.MessageDirection.serverToClient;
440
+ ShowMessageNotification.type = new messages_1.ProtocolNotificationType(ShowMessageNotification.method);
441
+ ShowMessageNotification.capabilities = messages_1.CM.create('window.showMessage', undefined);
442
+ })(ShowMessageNotification || (exports.ShowMessageNotification = ShowMessageNotification = {}));
443
+ /**
444
+ * The show message request is sent from the server to the client to show a message
445
+ * and a set of options actions to the user.
446
+ */
447
+ var ShowMessageRequest;
448
+ (function (ShowMessageRequest) {
449
+ ShowMessageRequest.method = 'window/showMessageRequest';
450
+ ShowMessageRequest.messageDirection = messages_1.MessageDirection.serverToClient;
451
+ ShowMessageRequest.type = new messages_1.ProtocolRequestType(ShowMessageRequest.method);
452
+ ShowMessageRequest.capabilities = messages_1.CM.create('window.showMessage', undefined);
453
+ })(ShowMessageRequest || (exports.ShowMessageRequest = ShowMessageRequest = {}));
454
+ /**
455
+ * The log message notification is sent from the server to the client to ask
456
+ * the client to log a particular message.
457
+ */
458
+ var LogMessageNotification;
459
+ (function (LogMessageNotification) {
460
+ LogMessageNotification.method = 'window/logMessage';
461
+ LogMessageNotification.messageDirection = messages_1.MessageDirection.serverToClient;
462
+ LogMessageNotification.type = new messages_1.ProtocolNotificationType(LogMessageNotification.method);
463
+ })(LogMessageNotification || (exports.LogMessageNotification = LogMessageNotification = {}));
464
+ //---- Telemetry notification
465
+ /**
466
+ * The telemetry event notification is sent from the server to the client to ask
467
+ * the client to log telemetry data.
468
+ */
469
+ var TelemetryEventNotification;
470
+ (function (TelemetryEventNotification) {
471
+ TelemetryEventNotification.method = 'telemetry/event';
472
+ TelemetryEventNotification.messageDirection = messages_1.MessageDirection.serverToClient;
473
+ TelemetryEventNotification.type = new messages_1.ProtocolNotificationType(TelemetryEventNotification.method);
474
+ })(TelemetryEventNotification || (exports.TelemetryEventNotification = TelemetryEventNotification = {}));
475
+ /**
476
+ * Defines how the host (editor) should sync
477
+ * document changes to the language server.
478
+ */
479
+ var TextDocumentSyncKind;
480
+ (function (TextDocumentSyncKind) {
481
+ /**
482
+ * Documents should not be synced at all.
483
+ */
484
+ TextDocumentSyncKind.None = 0;
485
+ /**
486
+ * Documents are synced by always sending the full content
487
+ * of the document.
488
+ */
489
+ TextDocumentSyncKind.Full = 1;
490
+ /**
491
+ * Documents are synced by sending the full content on open.
492
+ * After that only incremental updates to the document are
493
+ * send.
494
+ */
495
+ TextDocumentSyncKind.Incremental = 2;
496
+ })(TextDocumentSyncKind || (exports.TextDocumentSyncKind = TextDocumentSyncKind = {}));
497
+ /**
498
+ * The document open notification is sent from the client to the server to signal
499
+ * newly opened text documents. The document's truth is now managed by the client
500
+ * and the server must not try to read the document's truth using the document's
501
+ * uri. Open in this sense means it is managed by the client. It doesn't necessarily
502
+ * mean that its content is presented in an editor. An open notification must not
503
+ * be sent more than once without a corresponding close notification send before.
504
+ * This means open and close notification must be balanced and the max open count
505
+ * is one.
506
+ */
507
+ var DidOpenTextDocumentNotification;
508
+ (function (DidOpenTextDocumentNotification) {
509
+ DidOpenTextDocumentNotification.method = 'textDocument/didOpen';
510
+ DidOpenTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
511
+ DidOpenTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidOpenTextDocumentNotification.method);
512
+ DidOpenTextDocumentNotification.capabilities = messages_1.CM.create('textDocument.synchronization', 'textDocumentSync.openClose');
513
+ })(DidOpenTextDocumentNotification || (exports.DidOpenTextDocumentNotification = DidOpenTextDocumentNotification = {}));
514
+ var TextDocumentContentChangeEvent;
515
+ (function (TextDocumentContentChangeEvent) {
516
+ /**
517
+ * Checks whether the information describes a delta event.
518
+ */
519
+ function isIncremental(event) {
520
+ const candidate = event;
521
+ return candidate !== undefined && candidate !== null &&
522
+ typeof candidate.text === 'string' && candidate.range !== undefined &&
523
+ (candidate.rangeLength === undefined || typeof candidate.rangeLength === 'number');
524
+ }
525
+ TextDocumentContentChangeEvent.isIncremental = isIncremental;
526
+ /**
527
+ * Checks whether the information describes a full replacement event.
528
+ */
529
+ function isFull(event) {
530
+ const candidate = event;
531
+ return candidate !== undefined && candidate !== null &&
532
+ typeof candidate.text === 'string' && candidate.range === undefined && candidate.rangeLength === undefined;
533
+ }
534
+ TextDocumentContentChangeEvent.isFull = isFull;
535
+ })(TextDocumentContentChangeEvent || (exports.TextDocumentContentChangeEvent = TextDocumentContentChangeEvent = {}));
536
+ /**
537
+ * The document change notification is sent from the client to the server to signal
538
+ * changes to a text document.
539
+ */
540
+ var DidChangeTextDocumentNotification;
541
+ (function (DidChangeTextDocumentNotification) {
542
+ DidChangeTextDocumentNotification.method = 'textDocument/didChange';
543
+ DidChangeTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
544
+ DidChangeTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidChangeTextDocumentNotification.method);
545
+ DidChangeTextDocumentNotification.capabilities = messages_1.CM.create('textDocument.synchronization', 'textDocumentSync');
546
+ })(DidChangeTextDocumentNotification || (exports.DidChangeTextDocumentNotification = DidChangeTextDocumentNotification = {}));
547
+ /**
548
+ * The document close notification is sent from the client to the server when
549
+ * the document got closed in the client. The document's truth now exists where
550
+ * the document's uri points to (e.g. if the document's uri is a file uri the
551
+ * truth now exists on disk). As with the open notification the close notification
552
+ * is about managing the document's content. Receiving a close notification
553
+ * doesn't mean that the document was open in an editor before. A close
554
+ * notification requires a previous open notification to be sent.
555
+ */
556
+ var DidCloseTextDocumentNotification;
557
+ (function (DidCloseTextDocumentNotification) {
558
+ DidCloseTextDocumentNotification.method = 'textDocument/didClose';
559
+ DidCloseTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
560
+ DidCloseTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseTextDocumentNotification.method);
561
+ DidCloseTextDocumentNotification.capabilities = messages_1.CM.create('textDocument.synchronization', 'textDocumentSync.openClose');
562
+ })(DidCloseTextDocumentNotification || (exports.DidCloseTextDocumentNotification = DidCloseTextDocumentNotification = {}));
563
+ /**
564
+ * The document save notification is sent from the client to the server when
565
+ * the document got saved in the client.
566
+ */
567
+ var DidSaveTextDocumentNotification;
568
+ (function (DidSaveTextDocumentNotification) {
569
+ DidSaveTextDocumentNotification.method = 'textDocument/didSave';
570
+ DidSaveTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
571
+ DidSaveTextDocumentNotification.type = new messages_1.ProtocolNotificationType(DidSaveTextDocumentNotification.method);
572
+ DidSaveTextDocumentNotification.capabilities = messages_1.CM.create('textDocument.synchronization.didSave', 'textDocumentSync.save');
573
+ })(DidSaveTextDocumentNotification || (exports.DidSaveTextDocumentNotification = DidSaveTextDocumentNotification = {}));
574
+ /**
575
+ * Represents reasons why a text document is saved.
576
+ */
577
+ var TextDocumentSaveReason;
578
+ (function (TextDocumentSaveReason) {
579
+ /**
580
+ * Manually triggered, e.g. by the user pressing save, by starting debugging,
581
+ * or by an API call.
582
+ */
583
+ TextDocumentSaveReason.Manual = 1;
584
+ /**
585
+ * Automatic after a delay.
586
+ */
587
+ TextDocumentSaveReason.AfterDelay = 2;
588
+ /**
589
+ * When the editor lost focus.
590
+ */
591
+ TextDocumentSaveReason.FocusOut = 3;
592
+ })(TextDocumentSaveReason || (exports.TextDocumentSaveReason = TextDocumentSaveReason = {}));
593
+ /**
594
+ * A document will save notification is sent from the client to the server before
595
+ * the document is actually saved.
596
+ */
597
+ var WillSaveTextDocumentNotification;
598
+ (function (WillSaveTextDocumentNotification) {
599
+ WillSaveTextDocumentNotification.method = 'textDocument/willSave';
600
+ WillSaveTextDocumentNotification.messageDirection = messages_1.MessageDirection.clientToServer;
601
+ WillSaveTextDocumentNotification.type = new messages_1.ProtocolNotificationType(WillSaveTextDocumentNotification.method);
602
+ WillSaveTextDocumentNotification.capabilities = messages_1.CM.create('textDocument.synchronization.willSave', 'textDocumentSync.willSave');
603
+ })(WillSaveTextDocumentNotification || (exports.WillSaveTextDocumentNotification = WillSaveTextDocumentNotification = {}));
604
+ /**
605
+ * A document will save request is sent from the client to the server before
606
+ * the document is actually saved. The request can return an array of TextEdits
607
+ * which will be applied to the text document before it is saved. Please note that
608
+ * clients might drop results if computing the text edits took too long or if a
609
+ * server constantly fails on this request. This is done to keep the save fast and
610
+ * reliable.
611
+ */
612
+ var WillSaveTextDocumentWaitUntilRequest;
613
+ (function (WillSaveTextDocumentWaitUntilRequest) {
614
+ WillSaveTextDocumentWaitUntilRequest.method = 'textDocument/willSaveWaitUntil';
615
+ WillSaveTextDocumentWaitUntilRequest.messageDirection = messages_1.MessageDirection.clientToServer;
616
+ WillSaveTextDocumentWaitUntilRequest.type = new messages_1.ProtocolRequestType(WillSaveTextDocumentWaitUntilRequest.method);
617
+ WillSaveTextDocumentWaitUntilRequest.capabilities = messages_1.CM.create('textDocument.synchronization.willSaveWaitUntil', 'textDocumentSync.willSaveWaitUntil');
618
+ })(WillSaveTextDocumentWaitUntilRequest || (exports.WillSaveTextDocumentWaitUntilRequest = WillSaveTextDocumentWaitUntilRequest = {}));
619
+ /**
620
+ * The watched files notification is sent from the client to the server when
621
+ * the client detects changes to file watched by the language client.
622
+ */
623
+ var DidChangeWatchedFilesNotification;
624
+ (function (DidChangeWatchedFilesNotification) {
625
+ DidChangeWatchedFilesNotification.method = 'workspace/didChangeWatchedFiles';
626
+ DidChangeWatchedFilesNotification.messageDirection = messages_1.MessageDirection.clientToServer;
627
+ DidChangeWatchedFilesNotification.type = new messages_1.ProtocolNotificationType(DidChangeWatchedFilesNotification.method);
628
+ DidChangeWatchedFilesNotification.capabilities = messages_1.CM.create('workspace.didChangeWatchedFiles', undefined);
629
+ })(DidChangeWatchedFilesNotification || (exports.DidChangeWatchedFilesNotification = DidChangeWatchedFilesNotification = {}));
630
+ /**
631
+ * The file event type
632
+ */
633
+ var FileChangeType;
634
+ (function (FileChangeType) {
635
+ /**
636
+ * The file got created.
637
+ */
638
+ FileChangeType.Created = 1;
639
+ /**
640
+ * The file got changed.
641
+ */
642
+ FileChangeType.Changed = 2;
643
+ /**
644
+ * The file got deleted.
645
+ */
646
+ FileChangeType.Deleted = 3;
647
+ })(FileChangeType || (exports.FileChangeType = FileChangeType = {}));
648
+ var RelativePattern;
649
+ (function (RelativePattern) {
650
+ function is(value) {
651
+ const candidate = value;
652
+ return Is.objectLiteral(candidate) && (vscode_languageserver_types_1.URI.is(candidate.baseUri) || vscode_languageserver_types_1.WorkspaceFolder.is(candidate.baseUri)) && Is.string(candidate.pattern);
653
+ }
654
+ RelativePattern.is = is;
655
+ })(RelativePattern || (exports.RelativePattern = RelativePattern = {}));
656
+ var GlobPattern;
657
+ (function (GlobPattern) {
658
+ function is(value) {
659
+ const candidate = value;
660
+ return Is.string(candidate) || RelativePattern.is(candidate);
661
+ }
662
+ GlobPattern.is = is;
663
+ })(GlobPattern || (exports.GlobPattern = GlobPattern = {}));
664
+ var WatchKind;
665
+ (function (WatchKind) {
666
+ /**
667
+ * Interested in create events.
668
+ */
669
+ WatchKind.Create = 1;
670
+ /**
671
+ * Interested in change events
672
+ */
673
+ WatchKind.Change = 2;
674
+ /**
675
+ * Interested in delete events
676
+ */
677
+ WatchKind.Delete = 4;
678
+ })(WatchKind || (exports.WatchKind = WatchKind = {}));
679
+ /**
680
+ * Diagnostics notification are sent from the server to the client to signal
681
+ * results of validation runs.
682
+ */
683
+ var PublishDiagnosticsNotification;
684
+ (function (PublishDiagnosticsNotification) {
685
+ PublishDiagnosticsNotification.method = 'textDocument/publishDiagnostics';
686
+ PublishDiagnosticsNotification.messageDirection = messages_1.MessageDirection.serverToClient;
687
+ PublishDiagnosticsNotification.type = new messages_1.ProtocolNotificationType(PublishDiagnosticsNotification.method);
688
+ PublishDiagnosticsNotification.capabilities = messages_1.CM.create('textDocument.publishDiagnostics', undefined);
689
+ })(PublishDiagnosticsNotification || (exports.PublishDiagnosticsNotification = PublishDiagnosticsNotification = {}));
690
+ /**
691
+ * How a completion was triggered
692
+ */
693
+ var CompletionTriggerKind;
694
+ (function (CompletionTriggerKind) {
695
+ /**
696
+ * Completion was triggered by typing an identifier (24x7 code
697
+ * complete), manual invocation (e.g Ctrl+Space) or via API.
698
+ */
699
+ CompletionTriggerKind.Invoked = 1;
700
+ /**
701
+ * Completion was triggered by a trigger character specified by
702
+ * the `triggerCharacters` properties of the `CompletionRegistrationOptions`.
703
+ */
704
+ CompletionTriggerKind.TriggerCharacter = 2;
705
+ /**
706
+ * Completion was re-triggered as current completion list is incomplete
707
+ */
708
+ CompletionTriggerKind.TriggerForIncompleteCompletions = 3;
709
+ })(CompletionTriggerKind || (exports.CompletionTriggerKind = CompletionTriggerKind = {}));
710
+ /**
711
+ * Request to request completion at a given text document position. The request's
712
+ * parameter is of type {@link TextDocumentPosition} the response
713
+ * is of type {@link CompletionItem CompletionItem[]} or {@link CompletionList}
714
+ * or a Thenable that resolves to such.
715
+ *
716
+ * The request can delay the computation of the {@link CompletionItem.detail `detail`}
717
+ * and {@link CompletionItem.documentation `documentation`} properties to the `completionItem/resolve`
718
+ * request. However, properties that are needed for the initial sorting and filtering, like `sortText`,
719
+ * `filterText`, `insertText`, and `textEdit`, must not be changed during resolve.
720
+ */
721
+ var CompletionRequest;
722
+ (function (CompletionRequest) {
723
+ CompletionRequest.method = 'textDocument/completion';
724
+ CompletionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
725
+ CompletionRequest.type = new messages_1.ProtocolRequestType(CompletionRequest.method);
726
+ CompletionRequest.capabilities = messages_1.CM.create('textDocument.completion', 'completionProvider');
727
+ })(CompletionRequest || (exports.CompletionRequest = CompletionRequest = {}));
728
+ /**
729
+ * Request to resolve additional information for a given completion item.The request's
730
+ * parameter is of type {@link CompletionItem} the response
731
+ * is of type {@link CompletionItem} or a Thenable that resolves to such.
732
+ */
733
+ var CompletionResolveRequest;
734
+ (function (CompletionResolveRequest) {
735
+ CompletionResolveRequest.method = 'completionItem/resolve';
736
+ CompletionResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
737
+ CompletionResolveRequest.type = new messages_1.ProtocolRequestType(CompletionResolveRequest.method);
738
+ CompletionResolveRequest.capabilities = messages_1.CM.create('textDocument.completion.completionItem.resolveSupport', 'completionProvider.resolveProvider');
739
+ })(CompletionResolveRequest || (exports.CompletionResolveRequest = CompletionResolveRequest = {}));
740
+ /**
741
+ * Request to request hover information at a given text document position. The request's
742
+ * parameter is of type {@link TextDocumentPosition} the response is of
743
+ * type {@link Hover} or a Thenable that resolves to such.
744
+ */
745
+ var HoverRequest;
746
+ (function (HoverRequest) {
747
+ HoverRequest.method = 'textDocument/hover';
748
+ HoverRequest.messageDirection = messages_1.MessageDirection.clientToServer;
749
+ HoverRequest.type = new messages_1.ProtocolRequestType(HoverRequest.method);
750
+ HoverRequest.capabilities = messages_1.CM.create('textDocument.hover', 'hoverProvider');
751
+ })(HoverRequest || (exports.HoverRequest = HoverRequest = {}));
752
+ /**
753
+ * How a signature help was triggered.
754
+ *
755
+ * @since 3.15.0
756
+ */
757
+ var SignatureHelpTriggerKind;
758
+ (function (SignatureHelpTriggerKind) {
759
+ /**
760
+ * Signature help was invoked manually by the user or by a command.
761
+ */
762
+ SignatureHelpTriggerKind.Invoked = 1;
763
+ /**
764
+ * Signature help was triggered by a trigger character.
765
+ */
766
+ SignatureHelpTriggerKind.TriggerCharacter = 2;
767
+ /**
768
+ * Signature help was triggered by the cursor moving or by the document content changing.
769
+ */
770
+ SignatureHelpTriggerKind.ContentChange = 3;
771
+ })(SignatureHelpTriggerKind || (exports.SignatureHelpTriggerKind = SignatureHelpTriggerKind = {}));
772
+ var SignatureHelpRequest;
773
+ (function (SignatureHelpRequest) {
774
+ SignatureHelpRequest.method = 'textDocument/signatureHelp';
775
+ SignatureHelpRequest.messageDirection = messages_1.MessageDirection.clientToServer;
776
+ SignatureHelpRequest.type = new messages_1.ProtocolRequestType(SignatureHelpRequest.method);
777
+ SignatureHelpRequest.capabilities = messages_1.CM.create('textDocument.signatureHelp', 'signatureHelpProvider');
778
+ })(SignatureHelpRequest || (exports.SignatureHelpRequest = SignatureHelpRequest = {}));
779
+ /**
780
+ * A request to resolve the definition location of a symbol at a given text
781
+ * document position. The request's parameter is of type {@link TextDocumentPosition}
782
+ * the response is of either type {@link Definition} or a typed array of
783
+ * {@link DefinitionLink} or a Thenable that resolves to such.
784
+ */
785
+ var DefinitionRequest;
786
+ (function (DefinitionRequest) {
787
+ DefinitionRequest.method = 'textDocument/definition';
788
+ DefinitionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
789
+ DefinitionRequest.type = new messages_1.ProtocolRequestType(DefinitionRequest.method);
790
+ DefinitionRequest.capabilities = messages_1.CM.create('textDocument.definition', 'definitionProvider');
791
+ })(DefinitionRequest || (exports.DefinitionRequest = DefinitionRequest = {}));
792
+ /**
793
+ * A request to resolve project-wide references for the symbol denoted
794
+ * by the given text document position. The request's parameter is of
795
+ * type {@link ReferenceParams} the response is of type
796
+ * {@link Location Location[]} or a Thenable that resolves to such.
797
+ */
798
+ var ReferencesRequest;
799
+ (function (ReferencesRequest) {
800
+ ReferencesRequest.method = 'textDocument/references';
801
+ ReferencesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
802
+ ReferencesRequest.type = new messages_1.ProtocolRequestType(ReferencesRequest.method);
803
+ ReferencesRequest.capabilities = messages_1.CM.create('textDocument.references', 'referencesProvider');
804
+ })(ReferencesRequest || (exports.ReferencesRequest = ReferencesRequest = {}));
805
+ /**
806
+ * Request to resolve a {@link DocumentHighlight} for a given
807
+ * text document position. The request's parameter is of type {@link TextDocumentPosition}
808
+ * the request response is an array of type {@link DocumentHighlight}
809
+ * or a Thenable that resolves to such.
810
+ */
811
+ var DocumentHighlightRequest;
812
+ (function (DocumentHighlightRequest) {
813
+ DocumentHighlightRequest.method = 'textDocument/documentHighlight';
814
+ DocumentHighlightRequest.messageDirection = messages_1.MessageDirection.clientToServer;
815
+ DocumentHighlightRequest.type = new messages_1.ProtocolRequestType(DocumentHighlightRequest.method);
816
+ DocumentHighlightRequest.capabilities = messages_1.CM.create('textDocument.documentHighlight', 'documentHighlightProvider');
817
+ })(DocumentHighlightRequest || (exports.DocumentHighlightRequest = DocumentHighlightRequest = {}));
818
+ /**
819
+ * A request to list all symbols found in a given text document. The request's
820
+ * parameter is of type {@link TextDocumentIdentifier} the
821
+ * response is of type {@link SymbolInformation SymbolInformation[]} or a Thenable
822
+ * that resolves to such.
823
+ */
824
+ var DocumentSymbolRequest;
825
+ (function (DocumentSymbolRequest) {
826
+ DocumentSymbolRequest.method = 'textDocument/documentSymbol';
827
+ DocumentSymbolRequest.messageDirection = messages_1.MessageDirection.clientToServer;
828
+ DocumentSymbolRequest.type = new messages_1.ProtocolRequestType(DocumentSymbolRequest.method);
829
+ DocumentSymbolRequest.capabilities = messages_1.CM.create('textDocument.documentSymbol', 'documentSymbolProvider');
830
+ })(DocumentSymbolRequest || (exports.DocumentSymbolRequest = DocumentSymbolRequest = {}));
831
+ /**
832
+ * A request to provide commands for the given text document and range.
833
+ */
834
+ var CodeActionRequest;
835
+ (function (CodeActionRequest) {
836
+ CodeActionRequest.method = 'textDocument/codeAction';
837
+ CodeActionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
838
+ CodeActionRequest.type = new messages_1.ProtocolRequestType(CodeActionRequest.method);
839
+ CodeActionRequest.capabilities = messages_1.CM.create('textDocument.codeAction', 'codeActionProvider');
840
+ })(CodeActionRequest || (exports.CodeActionRequest = CodeActionRequest = {}));
841
+ /**
842
+ * Request to resolve additional information for a given code action.The request's
843
+ * parameter is of type {@link CodeAction} the response
844
+ * is of type {@link CodeAction} or a Thenable that resolves to such.
845
+ */
846
+ var CodeActionResolveRequest;
847
+ (function (CodeActionResolveRequest) {
848
+ CodeActionResolveRequest.method = 'codeAction/resolve';
849
+ CodeActionResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
850
+ CodeActionResolveRequest.type = new messages_1.ProtocolRequestType(CodeActionResolveRequest.method);
851
+ CodeActionResolveRequest.capabilities = messages_1.CM.create('textDocument.codeAction.resolveSupport', 'codeActionProvider.resolveProvider');
852
+ })(CodeActionResolveRequest || (exports.CodeActionResolveRequest = CodeActionResolveRequest = {}));
853
+ /**
854
+ * A request to list project-wide symbols matching the query string given
855
+ * by the {@link WorkspaceSymbolParams}. The response is
856
+ * of type {@link SymbolInformation SymbolInformation[]} or a Thenable that
857
+ * resolves to such.
858
+ *
859
+ * @since 3.17.0 - support for WorkspaceSymbol in the returned data. Clients
860
+ * need to advertise support for WorkspaceSymbols via the client capability
861
+ * `workspace.symbol.resolveSupport`.
862
+ *
863
+ */
864
+ var WorkspaceSymbolRequest;
865
+ (function (WorkspaceSymbolRequest) {
866
+ WorkspaceSymbolRequest.method = 'workspace/symbol';
867
+ WorkspaceSymbolRequest.messageDirection = messages_1.MessageDirection.clientToServer;
868
+ WorkspaceSymbolRequest.type = new messages_1.ProtocolRequestType(WorkspaceSymbolRequest.method);
869
+ WorkspaceSymbolRequest.capabilities = messages_1.CM.create('workspace.symbol', 'workspaceSymbolProvider');
870
+ })(WorkspaceSymbolRequest || (exports.WorkspaceSymbolRequest = WorkspaceSymbolRequest = {}));
871
+ /**
872
+ * A request to resolve the range inside the workspace
873
+ * symbol's location.
874
+ *
875
+ * @since 3.17.0
876
+ */
877
+ var WorkspaceSymbolResolveRequest;
878
+ (function (WorkspaceSymbolResolveRequest) {
879
+ WorkspaceSymbolResolveRequest.method = 'workspaceSymbol/resolve';
880
+ WorkspaceSymbolResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
881
+ WorkspaceSymbolResolveRequest.type = new messages_1.ProtocolRequestType(WorkspaceSymbolResolveRequest.method);
882
+ WorkspaceSymbolResolveRequest.capabilities = messages_1.CM.create('workspace.symbol.resolveSupport', 'workspaceSymbolProvider.resolveProvider');
883
+ })(WorkspaceSymbolResolveRequest || (exports.WorkspaceSymbolResolveRequest = WorkspaceSymbolResolveRequest = {}));
884
+ /**
885
+ * A request to provide code lens for the given text document.
886
+ */
887
+ var CodeLensRequest;
888
+ (function (CodeLensRequest) {
889
+ CodeLensRequest.method = 'textDocument/codeLens';
890
+ CodeLensRequest.messageDirection = messages_1.MessageDirection.clientToServer;
891
+ CodeLensRequest.type = new messages_1.ProtocolRequestType(CodeLensRequest.method);
892
+ CodeLensRequest.capabilities = messages_1.CM.create('textDocument.codeLens', 'codeLensProvider');
893
+ })(CodeLensRequest || (exports.CodeLensRequest = CodeLensRequest = {}));
894
+ /**
895
+ * A request to resolve a command for a given code lens.
896
+ */
897
+ var CodeLensResolveRequest;
898
+ (function (CodeLensResolveRequest) {
899
+ CodeLensResolveRequest.method = 'codeLens/resolve';
900
+ CodeLensResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
901
+ CodeLensResolveRequest.type = new messages_1.ProtocolRequestType(CodeLensResolveRequest.method);
902
+ CodeLensResolveRequest.capabilities = messages_1.CM.create('textDocument.codeLens.resolveSupport', 'codeLensProvider.resolveProvider');
903
+ })(CodeLensResolveRequest || (exports.CodeLensResolveRequest = CodeLensResolveRequest = {}));
904
+ /**
905
+ * A request to refresh all code actions
906
+ *
907
+ * @since 3.16.0
908
+ */
909
+ var CodeLensRefreshRequest;
910
+ (function (CodeLensRefreshRequest) {
911
+ CodeLensRefreshRequest.method = `workspace/codeLens/refresh`;
912
+ CodeLensRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
913
+ CodeLensRefreshRequest.type = new messages_1.ProtocolRequestType0(CodeLensRefreshRequest.method);
914
+ CodeLensRefreshRequest.capabilities = messages_1.CM.create('workspace.codeLens', undefined);
915
+ })(CodeLensRefreshRequest || (exports.CodeLensRefreshRequest = CodeLensRefreshRequest = {}));
916
+ /**
917
+ * A request to provide document links
918
+ */
919
+ var DocumentLinkRequest;
920
+ (function (DocumentLinkRequest) {
921
+ DocumentLinkRequest.method = 'textDocument/documentLink';
922
+ DocumentLinkRequest.messageDirection = messages_1.MessageDirection.clientToServer;
923
+ DocumentLinkRequest.type = new messages_1.ProtocolRequestType(DocumentLinkRequest.method);
924
+ DocumentLinkRequest.capabilities = messages_1.CM.create('textDocument.documentLink', 'documentLinkProvider');
925
+ })(DocumentLinkRequest || (exports.DocumentLinkRequest = DocumentLinkRequest = {}));
926
+ /**
927
+ * Request to resolve additional information for a given document link. The request's
928
+ * parameter is of type {@link DocumentLink} the response
929
+ * is of type {@link DocumentLink} or a Thenable that resolves to such.
930
+ */
931
+ var DocumentLinkResolveRequest;
932
+ (function (DocumentLinkResolveRequest) {
933
+ DocumentLinkResolveRequest.method = 'documentLink/resolve';
934
+ DocumentLinkResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
935
+ DocumentLinkResolveRequest.type = new messages_1.ProtocolRequestType(DocumentLinkResolveRequest.method);
936
+ DocumentLinkResolveRequest.capabilities = messages_1.CM.create('textDocument.documentLink', 'documentLinkProvider.resolveProvider');
937
+ })(DocumentLinkResolveRequest || (exports.DocumentLinkResolveRequest = DocumentLinkResolveRequest = {}));
938
+ /**
939
+ * A request to format a whole document.
940
+ */
941
+ var DocumentFormattingRequest;
942
+ (function (DocumentFormattingRequest) {
943
+ DocumentFormattingRequest.method = 'textDocument/formatting';
944
+ DocumentFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
945
+ DocumentFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentFormattingRequest.method);
946
+ DocumentFormattingRequest.capabilities = messages_1.CM.create('textDocument.formatting', 'documentFormattingProvider');
947
+ })(DocumentFormattingRequest || (exports.DocumentFormattingRequest = DocumentFormattingRequest = {}));
948
+ /**
949
+ * A request to format a range in a document.
950
+ */
951
+ var DocumentRangeFormattingRequest;
952
+ (function (DocumentRangeFormattingRequest) {
953
+ DocumentRangeFormattingRequest.method = 'textDocument/rangeFormatting';
954
+ DocumentRangeFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
955
+ DocumentRangeFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentRangeFormattingRequest.method);
956
+ DocumentRangeFormattingRequest.capabilities = messages_1.CM.create('textDocument.rangeFormatting', 'documentRangeFormattingProvider');
957
+ })(DocumentRangeFormattingRequest || (exports.DocumentRangeFormattingRequest = DocumentRangeFormattingRequest = {}));
958
+ /**
959
+ * A request to format ranges in a document.
960
+ *
961
+ * @since 3.18.0
962
+ */
963
+ var DocumentRangesFormattingRequest;
964
+ (function (DocumentRangesFormattingRequest) {
965
+ DocumentRangesFormattingRequest.method = 'textDocument/rangesFormatting';
966
+ DocumentRangesFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
967
+ DocumentRangesFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentRangesFormattingRequest.method);
968
+ DocumentRangesFormattingRequest.capabilities = messages_1.CM.create('textDocument.rangeFormatting.rangesSupport', 'documentRangeFormattingProvider.rangesSupport');
969
+ })(DocumentRangesFormattingRequest || (exports.DocumentRangesFormattingRequest = DocumentRangesFormattingRequest = {}));
970
+ /**
971
+ * A request to format a document on type.
972
+ */
973
+ var DocumentOnTypeFormattingRequest;
974
+ (function (DocumentOnTypeFormattingRequest) {
975
+ DocumentOnTypeFormattingRequest.method = 'textDocument/onTypeFormatting';
976
+ DocumentOnTypeFormattingRequest.messageDirection = messages_1.MessageDirection.clientToServer;
977
+ DocumentOnTypeFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentOnTypeFormattingRequest.method);
978
+ DocumentOnTypeFormattingRequest.capabilities = messages_1.CM.create('textDocument.onTypeFormatting', 'documentOnTypeFormattingProvider');
979
+ })(DocumentOnTypeFormattingRequest || (exports.DocumentOnTypeFormattingRequest = DocumentOnTypeFormattingRequest = {}));
980
+ //---- Rename ----------------------------------------------
981
+ var PrepareSupportDefaultBehavior;
982
+ (function (PrepareSupportDefaultBehavior) {
983
+ /**
984
+ * The client's default behavior is to select the identifier
985
+ * according the to language's syntax rule.
986
+ */
987
+ PrepareSupportDefaultBehavior.Identifier = 1;
988
+ })(PrepareSupportDefaultBehavior || (exports.PrepareSupportDefaultBehavior = PrepareSupportDefaultBehavior = {}));
989
+ /**
990
+ * A request to rename a symbol.
991
+ */
992
+ var RenameRequest;
993
+ (function (RenameRequest) {
994
+ RenameRequest.method = 'textDocument/rename';
995
+ RenameRequest.messageDirection = messages_1.MessageDirection.clientToServer;
996
+ RenameRequest.type = new messages_1.ProtocolRequestType(RenameRequest.method);
997
+ RenameRequest.capabilities = messages_1.CM.create('textDocument.rename', 'renameProvider');
998
+ })(RenameRequest || (exports.RenameRequest = RenameRequest = {}));
999
+ /**
1000
+ * A request to test and perform the setup necessary for a rename.
1001
+ *
1002
+ * @since 3.16 - support for default behavior
1003
+ */
1004
+ var PrepareRenameRequest;
1005
+ (function (PrepareRenameRequest) {
1006
+ PrepareRenameRequest.method = 'textDocument/prepareRename';
1007
+ PrepareRenameRequest.messageDirection = messages_1.MessageDirection.clientToServer;
1008
+ PrepareRenameRequest.type = new messages_1.ProtocolRequestType(PrepareRenameRequest.method);
1009
+ PrepareRenameRequest.capabilities = messages_1.CM.create('textDocument.rename.prepareSupport', 'renameProvider.prepareProvider');
1010
+ })(PrepareRenameRequest || (exports.PrepareRenameRequest = PrepareRenameRequest = {}));
1011
+ /**
1012
+ * A request send from the client to the server to execute a command. The request might return
1013
+ * a workspace edit which the client will apply to the workspace.
1014
+ */
1015
+ var ExecuteCommandRequest;
1016
+ (function (ExecuteCommandRequest) {
1017
+ ExecuteCommandRequest.method = 'workspace/executeCommand';
1018
+ ExecuteCommandRequest.messageDirection = messages_1.MessageDirection.clientToServer;
1019
+ ExecuteCommandRequest.type = new messages_1.ProtocolRequestType(ExecuteCommandRequest.method);
1020
+ ExecuteCommandRequest.capabilities = messages_1.CM.create('workspace.executeCommand', 'executeCommandProvider');
1021
+ })(ExecuteCommandRequest || (exports.ExecuteCommandRequest = ExecuteCommandRequest = {}));
1022
+ /**
1023
+ * A request sent from the server to the client to modified certain resources.
1024
+ */
1025
+ var ApplyWorkspaceEditRequest;
1026
+ (function (ApplyWorkspaceEditRequest) {
1027
+ ApplyWorkspaceEditRequest.method = 'workspace/applyEdit';
1028
+ ApplyWorkspaceEditRequest.messageDirection = messages_1.MessageDirection.serverToClient;
1029
+ ApplyWorkspaceEditRequest.type = new messages_1.ProtocolRequestType('workspace/applyEdit');
1030
+ ApplyWorkspaceEditRequest.capabilities = messages_1.CM.create('workspace.applyEdit', undefined);
1031
+ })(ApplyWorkspaceEditRequest || (exports.ApplyWorkspaceEditRequest = ApplyWorkspaceEditRequest = {}));