@mrclrchtr/supi-lsp 1.11.2 → 1.12.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 (132) hide show
  1. package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/package.json +1 -1
  2. package/node_modules/@mrclrchtr/supi-code-runtime/package.json +2 -2
  3. package/node_modules/@mrclrchtr/supi-core/package.json +1 -1
  4. package/node_modules/vscode-languageserver-protocol/README.md +3 -3
  5. package/node_modules/vscode-languageserver-protocol/eslint.config.js +13 -0
  6. package/node_modules/vscode-languageserver-protocol/lib/browser/main.js +1 -2
  7. package/node_modules/vscode-languageserver-protocol/lib/common/api.d.ts +1 -1
  8. package/node_modules/vscode-languageserver-protocol/lib/common/api.js +1 -1
  9. package/node_modules/vscode-languageserver-protocol/lib/common/connection.d.ts +13 -13
  10. package/node_modules/vscode-languageserver-protocol/lib/common/connection.js +1 -2
  11. package/node_modules/vscode-languageserver-protocol/lib/common/messages.d.ts +7 -0
  12. package/node_modules/vscode-languageserver-protocol/lib/common/messages.js +38 -1
  13. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.d.ts +5 -2
  14. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +3 -0
  15. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.d.ts +5 -3
  16. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +3 -1
  17. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.d.ts +2 -1
  18. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +1 -0
  19. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.d.ts +735 -361
  20. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.d.ts +3 -2
  21. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +1 -0
  22. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.d.ts +12 -3
  23. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +37 -1
  24. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.d.ts +8 -2
  25. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +6 -0
  26. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.d.ts +34 -25
  27. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +4 -1
  28. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.d.ts +3 -2
  29. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +1 -0
  30. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.d.ts +15 -8
  31. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +3 -0
  32. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.d.ts +3 -7
  33. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +1 -1
  34. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.d.ts +7 -6
  35. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +2 -0
  36. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +97 -9
  37. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.d.ts +3 -2
  38. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +1 -0
  39. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.d.ts +3 -2
  40. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +1 -0
  41. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.d.ts +91 -63
  42. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +34 -1
  43. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.d.ts +2 -1
  44. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +1 -0
  45. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.d.ts +3 -2
  46. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +1 -0
  47. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.d.ts +44 -26
  48. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +4 -0
  49. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.d.ts +4 -3
  50. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +1 -0
  51. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.d.ts +93 -0
  52. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.js +33 -0
  53. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.d.ts +3 -2
  54. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +2 -1
  55. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.d.ts +3 -2
  56. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +1 -0
  57. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.d.ts +3 -1
  58. package/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +2 -0
  59. package/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +9 -10
  60. package/node_modules/vscode-languageserver-protocol/lib/node/main.d.ts +0 -1
  61. package/node_modules/vscode-languageserver-protocol/lib/node/main.js +1 -2
  62. package/node_modules/vscode-languageserver-protocol/metaModel.schema.json +84 -3
  63. package/node_modules/vscode-languageserver-protocol/package.json +21 -12
  64. package/node_modules/vscode-languageserver-types/README.md +1 -1
  65. package/node_modules/vscode-languageserver-types/eslint.config.js +13 -0
  66. package/node_modules/vscode-languageserver-types/lib/esm/main.d.ts +483 -107
  67. package/node_modules/vscode-languageserver-types/lib/esm/main.js +255 -62
  68. package/node_modules/vscode-languageserver-types/lib/umd/main.d.ts +483 -107
  69. package/node_modules/vscode-languageserver-types/lib/umd/main.js +201 -8
  70. package/node_modules/vscode-languageserver-types/package.json +9 -8
  71. package/package.json +3 -3
  72. package/src/config/types.ts +3 -0
  73. package/src/diagnostics/diagnostic-context.ts +2 -1
  74. package/src/diagnostics/diagnostic-display.ts +2 -1
  75. package/src/diagnostics/diagnostics.ts +2 -1
  76. package/src/diagnostics/stale-diagnostics.ts +3 -1
  77. package/src/diagnostics/suppression-diagnostics.ts +3 -1
  78. package/src/format.ts +30 -3
  79. package/src/ui/ui.ts +3 -1
  80. package/node_modules/vscode-languageserver-protocol/browser.d.ts +0 -6
  81. package/node_modules/vscode-languageserver-protocol/browser.js +0 -7
  82. package/node_modules/vscode-languageserver-protocol/node.cmd +0 -5
  83. package/node_modules/vscode-languageserver-protocol/node.d.ts +0 -6
  84. package/node_modules/vscode-languageserver-protocol/node.js +0 -7
  85. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/License.txt +0 -11
  86. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/README.md +0 -69
  87. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.d.ts +0 -6
  88. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +0 -7
  89. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
  90. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -76
  91. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +0 -12
  92. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -156
  93. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.d.ts +0 -14
  94. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js +0 -81
  95. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
  96. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -96
  97. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +0 -358
  98. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -1212
  99. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
  100. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -16
  101. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
  102. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/encoding.js +0 -70
  103. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.d.ts +0 -39
  104. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +0 -128
  105. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.d.ts +0 -7
  106. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +0 -35
  107. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -53
  108. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -398
  109. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
  110. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -152
  111. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
  112. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -197
  113. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
  114. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -115
  115. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
  116. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -306
  117. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
  118. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -23
  119. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
  120. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -68
  121. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
  122. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -76
  123. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/main.d.ts +0 -63
  124. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/main.js +0 -257
  125. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +0 -13
  126. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/ril.js +0 -161
  127. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.cmd +0 -5
  128. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.d.ts +0 -6
  129. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.js +0 -7
  130. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/package.json +0 -45
  131. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/thirdpartynotices.txt +0 -16
  132. package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/typings/thenable.d.ts +0 -5
@@ -151,6 +151,42 @@ export type VersionedNotebookDocumentIdentifier = {
151
151
  */
152
152
  uri: URI;
153
153
  };
154
+ /**
155
+ * @since 3.18.0
156
+ */
157
+ export type NotebookCellLanguage = {
158
+ language: string;
159
+ };
160
+ /**
161
+ * @since 3.18.0
162
+ */
163
+ export type NotebookDocumentFilterWithNotebook = {
164
+ /**
165
+ * The notebook to be synced If a string
166
+ * value is provided it matches against the
167
+ * notebook type. '*' matches every notebook.
168
+ */
169
+ notebook: string | NotebookDocumentFilter;
170
+ /**
171
+ * The cells of the matching notebook to be synced.
172
+ */
173
+ cells?: NotebookCellLanguage[];
174
+ };
175
+ /**
176
+ * @since 3.18.0
177
+ */
178
+ export type NotebookDocumentFilterWithCells = {
179
+ /**
180
+ * The notebook to be synced If a string
181
+ * value is provided it matches against the
182
+ * notebook type. '*' matches every notebook.
183
+ */
184
+ notebook?: string | NotebookDocumentFilter;
185
+ /**
186
+ * The cells of the matching notebook to be synced.
187
+ */
188
+ cells: NotebookCellLanguage[];
189
+ };
154
190
  /**
155
191
  * Options specific to a notebook plus its cells
156
192
  * to be synced to the server.
@@ -170,33 +206,7 @@ export type NotebookDocumentSyncOptions = {
170
206
  /**
171
207
  * The notebooks to be synced
172
208
  */
173
- notebookSelector: ({
174
- /**
175
- * The notebook to be synced If a string
176
- * value is provided it matches against the
177
- * notebook type. '*' matches every notebook.
178
- */
179
- notebook: string | NotebookDocumentFilter;
180
- /**
181
- * The cells of the matching notebook to be synced.
182
- */
183
- cells?: {
184
- language: string;
185
- }[];
186
- } | {
187
- /**
188
- * The notebook to be synced If a string
189
- * value is provided it matches against the
190
- * notebook type. '*' matches every notebook.
191
- */
192
- notebook?: string | NotebookDocumentFilter;
193
- /**
194
- * The cells of the matching notebook to be synced.
195
- */
196
- cells: {
197
- language: string;
198
- }[];
199
- })[];
209
+ notebookSelector: (NotebookDocumentFilterWithNotebook | NotebookDocumentFilterWithCells)[];
200
210
  /**
201
211
  * Whether save notification should be forwarded to
202
212
  * the server. Will only be honored if mode === `notebook`.
@@ -238,7 +248,7 @@ export type DidOpenNotebookDocumentParams = {
238
248
  export declare namespace DidOpenNotebookDocumentNotification {
239
249
  const method: 'notebookDocument/didOpen';
240
250
  const messageDirection: MessageDirection;
241
- const type: ProtocolNotificationType<DidOpenNotebookDocumentParams, void>;
251
+ const type: ProtocolNotificationType<DidOpenNotebookDocumentParams, NotebookDocumentSyncRegistrationOptions>;
242
252
  const registrationMethod: typeof NotebookDocumentSyncRegistrationType.method;
243
253
  }
244
254
  /**
@@ -265,6 +275,55 @@ export declare namespace NotebookCellArrayChange {
265
275
  function is(value: any): value is NotebookCellArrayChange;
266
276
  function create(start: uinteger, deleteCount: uinteger, cells?: NotebookCell[]): NotebookCellArrayChange;
267
277
  }
278
+ /**
279
+ * Structural changes to cells in a notebook document.
280
+ *
281
+ * @since 3.18.0
282
+ */
283
+ export type NotebookDocumentCellChangeStructure = {
284
+ /**
285
+ * The change to the cell array.
286
+ */
287
+ array: NotebookCellArrayChange;
288
+ /**
289
+ * Additional opened cell text documents.
290
+ */
291
+ didOpen?: TextDocumentItem[];
292
+ /**
293
+ * Additional closed cell text documents.
294
+ */
295
+ didClose?: TextDocumentIdentifier[];
296
+ };
297
+ /**
298
+ * Content changes to a cell in a notebook document.
299
+ *
300
+ * @since 3.18.0
301
+ */
302
+ export type NotebookDocumentCellContentChanges = {
303
+ document: VersionedTextDocumentIdentifier;
304
+ changes: TextDocumentContentChangeEvent[];
305
+ };
306
+ /**
307
+ * Cell changes to a notebook document.
308
+ *
309
+ * @since 3.18.0
310
+ */
311
+ export type NotebookDocumentCellChanges = {
312
+ /**
313
+ * Changes to the cell structure to add or
314
+ * remove cells.
315
+ */
316
+ structure?: NotebookDocumentCellChangeStructure;
317
+ /**
318
+ * Changes to notebook cells properties like its
319
+ * kind, execution summary or metadata.
320
+ */
321
+ data?: NotebookCell[];
322
+ /**
323
+ * Changes to the text content of notebook cells.
324
+ */
325
+ textContent?: NotebookDocumentCellContentChanges[];
326
+ };
268
327
  /**
269
328
  * A change event for a notebook document.
270
329
  *
@@ -280,38 +339,7 @@ export type NotebookDocumentChangeEvent = {
280
339
  /**
281
340
  * Changes to cells
282
341
  */
283
- cells?: {
284
- /**
285
- * Changes to the cell structure to add or
286
- * remove cells.
287
- */
288
- structure?: {
289
- /**
290
- * The change to the cell array.
291
- */
292
- array: NotebookCellArrayChange;
293
- /**
294
- * Additional opened cell text documents.
295
- */
296
- didOpen?: TextDocumentItem[];
297
- /**
298
- * Additional closed cell text documents.
299
- */
300
- didClose?: TextDocumentIdentifier[];
301
- };
302
- /**
303
- * Changes to notebook cells properties like its
304
- * kind, execution summary or metadata.
305
- */
306
- data?: NotebookCell[];
307
- /**
308
- * Changes to the text content of notebook cells.
309
- */
310
- textContent?: {
311
- document: VersionedTextDocumentIdentifier;
312
- changes: TextDocumentContentChangeEvent[];
313
- }[];
314
- };
342
+ cells?: NotebookDocumentCellChanges;
315
343
  };
316
344
  /**
317
345
  * The params sent in a change notebook document notification.
@@ -346,7 +374,7 @@ export type DidChangeNotebookDocumentParams = {
346
374
  export declare namespace DidChangeNotebookDocumentNotification {
347
375
  const method: 'notebookDocument/didChange';
348
376
  const messageDirection: MessageDirection;
349
- const type: ProtocolNotificationType<DidChangeNotebookDocumentParams, void>;
377
+ const type: ProtocolNotificationType<DidChangeNotebookDocumentParams, NotebookDocumentSyncRegistrationOptions>;
350
378
  const registrationMethod: typeof NotebookDocumentSyncRegistrationType.method;
351
379
  }
352
380
  /**
@@ -368,7 +396,7 @@ export type DidSaveNotebookDocumentParams = {
368
396
  export declare namespace DidSaveNotebookDocumentNotification {
369
397
  const method: 'notebookDocument/didSave';
370
398
  const messageDirection: MessageDirection;
371
- const type: ProtocolNotificationType<DidSaveNotebookDocumentParams, void>;
399
+ const type: ProtocolNotificationType<DidSaveNotebookDocumentParams, NotebookDocumentSyncRegistrationOptions>;
372
400
  const registrationMethod: typeof NotebookDocumentSyncRegistrationType.method;
373
401
  }
374
402
  /**
@@ -395,6 +423,6 @@ export type DidCloseNotebookDocumentParams = {
395
423
  export declare namespace DidCloseNotebookDocumentNotification {
396
424
  const method: 'notebookDocument/didClose';
397
425
  const messageDirection: MessageDirection;
398
- const type: ProtocolNotificationType<DidCloseNotebookDocumentParams, void>;
426
+ const type: ProtocolNotificationType<DidCloseNotebookDocumentParams, NotebookDocumentSyncRegistrationOptions>;
399
427
  const registrationMethod: typeof NotebookDocumentSyncRegistrationType.method;
400
428
  }
@@ -3,10 +3,43 @@
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Licensed under the MIT License. See License.txt in the project root for license information.
5
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
+ })();
6
39
  Object.defineProperty(exports, "__esModule", { value: true });
7
40
  exports.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.ExecutionSummary = exports.NotebookCellKind = void 0;
8
41
  const vscode_languageserver_types_1 = require("vscode-languageserver-types");
9
- const Is = require("./utils/is");
42
+ const Is = __importStar(require("./utils/is"));
10
43
  const messages_1 = require("./messages");
11
44
  /**
12
45
  * A notebook cell kind.
@@ -1,6 +1,6 @@
1
1
  import { NotificationHandler, RequestHandler, ProgressType, ProgressToken } from 'vscode-jsonrpc';
2
2
  import { uinteger } from 'vscode-languageserver-types';
3
- import { MessageDirection, ProtocolRequestType, ProtocolNotificationType } from './messages';
3
+ import { MessageDirection, ProtocolRequestType, ProtocolNotificationType, CM } from './messages';
4
4
  export interface WorkDoneProgressBegin {
5
5
  kind: 'begin';
6
6
  /**
@@ -88,6 +88,7 @@ export declare namespace WorkDoneProgressCreateRequest {
88
88
  const messageDirection: MessageDirection;
89
89
  const type: ProtocolRequestType<WorkDoneProgressCreateParams, void, never, void, void>;
90
90
  type HandlerSignature = RequestHandler<WorkDoneProgressCreateParams, void, void>;
91
+ const capabilities: CM<"window.workDoneProgress", undefined>;
91
92
  }
92
93
  export interface WorkDoneProgressCancelParams {
93
94
  /**
@@ -24,6 +24,7 @@ var WorkDoneProgressCreateRequest;
24
24
  WorkDoneProgressCreateRequest.method = 'window/workDoneProgress/create';
25
25
  WorkDoneProgressCreateRequest.messageDirection = messages_1.MessageDirection.serverToClient;
26
26
  WorkDoneProgressCreateRequest.type = new messages_1.ProtocolRequestType(WorkDoneProgressCreateRequest.method);
27
+ WorkDoneProgressCreateRequest.capabilities = messages_1.CM.create('window.workDoneProgress', undefined);
27
28
  })(WorkDoneProgressCreateRequest || (exports.WorkDoneProgressCreateRequest = WorkDoneProgressCreateRequest = {}));
28
29
  /**
29
30
  * The `window/workDoneProgress/cancel` notification is sent from the client to the server to cancel a progress
@@ -1,7 +1,7 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { TextDocumentIdentifier, Position, SelectionRange } from 'vscode-languageserver-types';
3
- import { MessageDirection, ProtocolRequestType } from './messages';
4
- import type { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams, PartialResultParams } from './protocol';
3
+ import { MessageDirection, ProtocolRequestType, CM } from './messages';
4
+ import { type TextDocumentRegistrationOptions, type WorkDoneProgressOptions, type StaticRegistrationOptions, type WorkDoneProgressParams, type PartialResultParams } from './protocol';
5
5
  export interface SelectionRangeClientCapabilities {
6
6
  /**
7
7
  * Whether implementation supports dynamic registration for selection range providers. If this is set to `true`
@@ -38,4 +38,5 @@ export declare namespace SelectionRangeRequest {
38
38
  const messageDirection: MessageDirection;
39
39
  const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[], void, SelectionRangeRegistrationOptions>;
40
40
  type HandlerSignature = RequestHandler<SelectionRangeParams, SelectionRange[] | null, void>;
41
+ const capabilities: CM<"textDocument.selectionRange", "selectionRangeProvider">;
41
42
  }
@@ -17,4 +17,5 @@ var SelectionRangeRequest;
17
17
  SelectionRangeRequest.method = 'textDocument/selectionRange';
18
18
  SelectionRangeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
19
19
  SelectionRangeRequest.type = new messages_1.ProtocolRequestType(SelectionRangeRequest.method);
20
+ SelectionRangeRequest.capabilities = messages_1.CM.create('textDocument.selectionRange', 'selectionRangeProvider');
20
21
  })(SelectionRangeRequest || (exports.SelectionRangeRequest = SelectionRangeRequest = {}));
@@ -1,7 +1,7 @@
1
1
  import { TextDocumentIdentifier, Range, uinteger, SemanticTokensEdit, SemanticTokensLegend, SemanticTokens, SemanticTokensDelta } from 'vscode-languageserver-types';
2
2
  import { RequestHandler0, RequestHandler } from 'vscode-jsonrpc';
3
- import { MessageDirection, ProtocolRequestType, ProtocolRequestType0, RegistrationType } from './messages';
4
- import type { PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
3
+ import { MessageDirection, ProtocolRequestType, ProtocolRequestType0, RegistrationType, CM } from './messages';
4
+ import { type PartialResultParams, type WorkDoneProgressParams, type WorkDoneProgressOptions, type TextDocumentRegistrationOptions, type StaticRegistrationOptions } from './protocol';
5
5
  /**
6
6
  * @since 3.16.0
7
7
  */
@@ -18,6 +18,31 @@ export declare namespace TokenFormat {
18
18
  const Relative: 'relative';
19
19
  }
20
20
  export type TokenFormat = 'relative';
21
+ /**
22
+ * @since 3.18.0
23
+ */
24
+ export type ClientSemanticTokensRequestFullDelta = {
25
+ /**
26
+ * The client will send the `textDocument/semanticTokens/full/delta` request if
27
+ * the server provides a corresponding handler.
28
+ */
29
+ delta?: boolean;
30
+ };
31
+ /**
32
+ * @since 3.18.0
33
+ */
34
+ export type ClientSemanticTokensRequestOptions = {
35
+ /**
36
+ * The client will send the `textDocument/semanticTokens/range` request if
37
+ * the server provides a corresponding handler.
38
+ */
39
+ range?: boolean | {};
40
+ /**
41
+ * The client will send the `textDocument/semanticTokens/full` request if
42
+ * the server provides a corresponding handler.
43
+ */
44
+ full?: boolean | ClientSemanticTokensRequestFullDelta;
45
+ };
21
46
  /**
22
47
  * @since 3.16.0
23
48
  */
@@ -38,24 +63,7 @@ export interface SemanticTokensClientCapabilities {
38
63
  * range provider the client might not render a minimap correctly or might
39
64
  * even decide to not show any semantic tokens at all.
40
65
  */
41
- requests: {
42
- /**
43
- * The client will send the `textDocument/semanticTokens/range` request if
44
- * the server provides a corresponding handler.
45
- */
46
- range?: boolean | {};
47
- /**
48
- * The client will send the `textDocument/semanticTokens/full` request if
49
- * the server provides a corresponding handler.
50
- */
51
- full?: boolean | {
52
- /**
53
- * The client will send the `textDocument/semanticTokens/full/delta` request if
54
- * the server provides a corresponding handler.
55
- */
56
- delta?: boolean;
57
- };
58
- };
66
+ requests: ClientSemanticTokensRequestOptions;
59
67
  /**
60
68
  * The token types that the client supports.
61
69
  */
@@ -99,6 +107,17 @@ export interface SemanticTokensClientCapabilities {
99
107
  */
100
108
  augmentsSyntaxTokens?: boolean;
101
109
  }
110
+ /**
111
+ * Semantic tokens options to support deltas for full documents
112
+ *
113
+ * @since 3.18.0
114
+ */
115
+ export type SemanticTokensFullDelta = {
116
+ /**
117
+ * The server supports deltas for full documents.
118
+ */
119
+ delta?: boolean;
120
+ };
102
121
  /**
103
122
  * @since 3.16.0
104
123
  */
@@ -115,12 +134,7 @@ export interface SemanticTokensOptions extends WorkDoneProgressOptions {
115
134
  /**
116
135
  * Server supports providing semantic tokens for a full document.
117
136
  */
118
- full?: boolean | {
119
- /**
120
- * The server supports deltas for full documents.
121
- */
122
- delta?: boolean;
123
- };
137
+ full?: boolean | SemanticTokensFullDelta;
124
138
  }
125
139
  /**
126
140
  * @since 3.16.0
@@ -149,6 +163,7 @@ export declare namespace SemanticTokensRequest {
149
163
  const type: ProtocolRequestType<SemanticTokensParams, SemanticTokens | null, SemanticTokensPartialResult, void, SemanticTokensRegistrationOptions>;
150
164
  const registrationMethod: typeof SemanticTokensRegistrationType.method;
151
165
  type HandlerSignature = RequestHandler<SemanticTokensDeltaParams, SemanticTokens | null, void>;
166
+ const capabilities: CM<"textDocument.semanticTokens", "semanticTokensProvider">;
152
167
  }
153
168
  /**
154
169
  * @since 3.16.0
@@ -173,6 +188,7 @@ export declare namespace SemanticTokensDeltaRequest {
173
188
  const type: ProtocolRequestType<SemanticTokensDeltaParams, SemanticTokens | SemanticTokensDelta | null, SemanticTokensPartialResult | SemanticTokensDeltaPartialResult, void, SemanticTokensRegistrationOptions>;
174
189
  const registrationMethod: typeof SemanticTokensRegistrationType.method;
175
190
  type HandlerSignature = RequestHandler<SemanticTokensDeltaParams, SemanticTokens | SemanticTokensDelta | null, void>;
191
+ const capabilities: CM<"textDocument.semanticTokens.requests.full.delta", "semanticTokensProvider.full.delta">;
176
192
  }
177
193
  /**
178
194
  * @since 3.16.0
@@ -196,6 +212,7 @@ export declare namespace SemanticTokensRangeRequest {
196
212
  const type: ProtocolRequestType<SemanticTokensRangeParams, SemanticTokens | null, SemanticTokensPartialResult, void, void>;
197
213
  const registrationMethod: typeof SemanticTokensRegistrationType.method;
198
214
  type HandlerSignature = RequestHandler<SemanticTokensRangeParams, SemanticTokens | null, void>;
215
+ const capabilities: CM<"textDocument.semanticTokens.requests.range", "semanticTokensProvider.range">;
199
216
  }
200
217
  /**
201
218
  * @since 3.16.0
@@ -220,4 +237,5 @@ export declare namespace SemanticTokensRefreshRequest {
220
237
  const messageDirection: MessageDirection;
221
238
  const type: ProtocolRequestType0<void, void, void, void>;
222
239
  type HandlerSignature = RequestHandler0<void, void>;
240
+ const capabilities: CM<"workspace.semanticTokens.refreshSupport", undefined>;
223
241
  }
@@ -25,6 +25,7 @@ var SemanticTokensRequest;
25
25
  SemanticTokensRequest.messageDirection = messages_1.MessageDirection.clientToServer;
26
26
  SemanticTokensRequest.type = new messages_1.ProtocolRequestType(SemanticTokensRequest.method);
27
27
  SemanticTokensRequest.registrationMethod = SemanticTokensRegistrationType.method;
28
+ SemanticTokensRequest.capabilities = messages_1.CM.create('textDocument.semanticTokens', 'semanticTokensProvider');
28
29
  })(SemanticTokensRequest || (exports.SemanticTokensRequest = SemanticTokensRequest = {}));
29
30
  /**
30
31
  * @since 3.16.0
@@ -35,6 +36,7 @@ var SemanticTokensDeltaRequest;
35
36
  SemanticTokensDeltaRequest.messageDirection = messages_1.MessageDirection.clientToServer;
36
37
  SemanticTokensDeltaRequest.type = new messages_1.ProtocolRequestType(SemanticTokensDeltaRequest.method);
37
38
  SemanticTokensDeltaRequest.registrationMethod = SemanticTokensRegistrationType.method;
39
+ SemanticTokensDeltaRequest.capabilities = messages_1.CM.create('textDocument.semanticTokens.requests.full.delta', 'semanticTokensProvider.full.delta');
38
40
  })(SemanticTokensDeltaRequest || (exports.SemanticTokensDeltaRequest = SemanticTokensDeltaRequest = {}));
39
41
  /**
40
42
  * @since 3.16.0
@@ -45,6 +47,7 @@ var SemanticTokensRangeRequest;
45
47
  SemanticTokensRangeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
46
48
  SemanticTokensRangeRequest.type = new messages_1.ProtocolRequestType(SemanticTokensRangeRequest.method);
47
49
  SemanticTokensRangeRequest.registrationMethod = SemanticTokensRegistrationType.method;
50
+ SemanticTokensRangeRequest.capabilities = messages_1.CM.create('textDocument.semanticTokens.requests.range', 'semanticTokensProvider.range');
48
51
  })(SemanticTokensRangeRequest || (exports.SemanticTokensRangeRequest = SemanticTokensRangeRequest = {}));
49
52
  /**
50
53
  * @since 3.16.0
@@ -54,4 +57,5 @@ var SemanticTokensRefreshRequest;
54
57
  SemanticTokensRefreshRequest.method = `workspace/semanticTokens/refresh`;
55
58
  SemanticTokensRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
56
59
  SemanticTokensRefreshRequest.type = new messages_1.ProtocolRequestType0(SemanticTokensRefreshRequest.method);
60
+ SemanticTokensRefreshRequest.capabilities = messages_1.CM.create('workspace.semanticTokens.refreshSupport', undefined);
57
61
  })(SemanticTokensRefreshRequest || (exports.SemanticTokensRefreshRequest = SemanticTokensRefreshRequest = {}));
@@ -1,6 +1,6 @@
1
- import { HandlerResult, RequestHandler } from 'vscode-jsonrpc';
1
+ import { CancellationToken, HandlerResult, RequestHandler } from 'vscode-jsonrpc';
2
2
  import { Range, URI } from 'vscode-languageserver-types';
3
- import { MessageDirection, ProtocolRequestType } from './messages';
3
+ import { MessageDirection, ProtocolRequestType, CM } from './messages';
4
4
  /**
5
5
  * Client capabilities for the showDocument request.
6
6
  *
@@ -68,5 +68,6 @@ export declare namespace ShowDocumentRequest {
68
68
  const messageDirection: MessageDirection;
69
69
  const type: ProtocolRequestType<ShowDocumentParams, ShowDocumentResult, void, void, void>;
70
70
  type HandlerSignature = RequestHandler<ShowDocumentParams, ShowDocumentResult, void>;
71
- type MiddlewareSignature = (params: ShowDocumentParams, next: HandlerSignature) => HandlerResult<ShowDocumentResult, void>;
71
+ type MiddlewareSignature = (params: ShowDocumentParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<ShowDocumentResult, void>;
72
+ const capabilities: CM<"window.showDocument.support", undefined>;
72
73
  }
@@ -19,4 +19,5 @@ var ShowDocumentRequest;
19
19
  ShowDocumentRequest.method = 'window/showDocument';
20
20
  ShowDocumentRequest.messageDirection = messages_1.MessageDirection.serverToClient;
21
21
  ShowDocumentRequest.type = new messages_1.ProtocolRequestType(ShowDocumentRequest.method);
22
+ ShowDocumentRequest.capabilities = messages_1.CM.create('window.showDocument.support', undefined);
22
23
  })(ShowDocumentRequest || (exports.ShowDocumentRequest = ShowDocumentRequest = {}));
@@ -0,0 +1,93 @@
1
+ import type { DocumentUri } from 'vscode-languageserver-types';
2
+ import type { RequestHandler } from 'vscode-jsonrpc';
3
+ import { MessageDirection, ProtocolRequestType, CM } from './messages';
4
+ import { type StaticRegistrationOptions } from './protocol';
5
+ /**
6
+ * Client capabilities for a text document content provider.
7
+ *
8
+ * @since 3.18.0
9
+ */
10
+ export type TextDocumentContentClientCapabilities = {
11
+ /**
12
+ * Text document content provider supports dynamic registration.
13
+ */
14
+ dynamicRegistration?: boolean;
15
+ };
16
+ /**
17
+ * Text document content provider options.
18
+ *
19
+ * @since 3.18.0
20
+ */
21
+ export type TextDocumentContentOptions = {
22
+ /**
23
+ * The schemes for which the server provides content.
24
+ */
25
+ schemes: string[];
26
+ };
27
+ /**
28
+ * Text document content provider registration options.
29
+ *
30
+ * @since 3.18.0
31
+ */
32
+ export type TextDocumentContentRegistrationOptions = TextDocumentContentOptions & StaticRegistrationOptions;
33
+ /**
34
+ * Parameters for the `workspace/textDocumentContent` request.
35
+ *
36
+ * @since 3.18.0
37
+ */
38
+ export interface TextDocumentContentParams {
39
+ /**
40
+ * The uri of the text document.
41
+ */
42
+ uri: DocumentUri;
43
+ }
44
+ /**
45
+ * Result of the `workspace/textDocumentContent` request.
46
+ *
47
+ * @since 3.18.0
48
+ */
49
+ export interface TextDocumentContentResult {
50
+ /**
51
+ * The text content of the text document. Please note, that the content of
52
+ * any subsequent open notifications for the text document might differ
53
+ * from the returned content due to whitespace and line ending
54
+ * normalizations done on the client
55
+ */
56
+ text: string;
57
+ }
58
+ /**
59
+ * The `workspace/textDocumentContent` request is sent from the client to the
60
+ * server to request the content of a text document.
61
+ *
62
+ * @since 3.18.0
63
+ */
64
+ export declare namespace TextDocumentContentRequest {
65
+ const method: 'workspace/textDocumentContent';
66
+ const messageDirection: MessageDirection;
67
+ const type: ProtocolRequestType<TextDocumentContentParams, TextDocumentContentResult, void, void, TextDocumentContentRegistrationOptions>;
68
+ type HandlerSignature = RequestHandler<TextDocumentContentParams, TextDocumentContentResult, void>;
69
+ const capabilities: CM<"workspace.textDocumentContent", "workspace.textDocumentContent">;
70
+ }
71
+ /**
72
+ * Parameters for the `workspace/textDocumentContent/refresh` request.
73
+ *
74
+ * @since 3.18.0
75
+ */
76
+ export interface TextDocumentContentRefreshParams {
77
+ /**
78
+ * The uri of the text document to refresh.
79
+ */
80
+ uri: DocumentUri;
81
+ }
82
+ /**
83
+ * The `workspace/textDocumentContent` request is sent from the server to the client to refresh
84
+ * the content of a specific text document.
85
+ *
86
+ * @since 3.18.0
87
+ */
88
+ export declare namespace TextDocumentContentRefreshRequest {
89
+ const method: `workspace/textDocumentContent/refresh`;
90
+ const messageDirection: MessageDirection;
91
+ const type: ProtocolRequestType<TextDocumentContentRefreshParams, void, void, void, void>;
92
+ type HandlerSignature = RequestHandler<TextDocumentContentRefreshParams, void, void>;
93
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /* --------------------------------------------------------------------------------------------
3
+ * Copyright (c) Microsoft Corporation. All rights reserved.
4
+ * Licensed under the MIT License. See License.txt in the project root for license information.
5
+ * ------------------------------------------------------------------------------------------ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TextDocumentContentRefreshRequest = exports.TextDocumentContentRequest = void 0;
8
+ const messages_1 = require("./messages");
9
+ /**
10
+ * The `workspace/textDocumentContent` request is sent from the client to the
11
+ * server to request the content of a text document.
12
+ *
13
+ * @since 3.18.0
14
+ */
15
+ var TextDocumentContentRequest;
16
+ (function (TextDocumentContentRequest) {
17
+ TextDocumentContentRequest.method = 'workspace/textDocumentContent';
18
+ TextDocumentContentRequest.messageDirection = messages_1.MessageDirection.clientToServer;
19
+ TextDocumentContentRequest.type = new messages_1.ProtocolRequestType(TextDocumentContentRequest.method);
20
+ TextDocumentContentRequest.capabilities = messages_1.CM.create('workspace.textDocumentContent', 'workspace.textDocumentContent');
21
+ })(TextDocumentContentRequest || (exports.TextDocumentContentRequest = TextDocumentContentRequest = {}));
22
+ /**
23
+ * The `workspace/textDocumentContent` request is sent from the server to the client to refresh
24
+ * the content of a specific text document.
25
+ *
26
+ * @since 3.18.0
27
+ */
28
+ var TextDocumentContentRefreshRequest;
29
+ (function (TextDocumentContentRefreshRequest) {
30
+ TextDocumentContentRefreshRequest.method = `workspace/textDocumentContent/refresh`;
31
+ TextDocumentContentRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
32
+ TextDocumentContentRefreshRequest.type = new messages_1.ProtocolRequestType(TextDocumentContentRefreshRequest.method);
33
+ })(TextDocumentContentRefreshRequest || (exports.TextDocumentContentRefreshRequest = TextDocumentContentRefreshRequest = {}));
@@ -1,7 +1,7 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { Definition, DefinitionLink, LocationLink, Location } from 'vscode-languageserver-types';
3
- import { MessageDirection, ProtocolRequestType } from './messages';
4
- import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
3
+ import { MessageDirection, ProtocolRequestType, CM } from './messages';
4
+ import { type TextDocumentRegistrationOptions, type StaticRegistrationOptions, type TextDocumentPositionParams, type PartialResultParams, type WorkDoneProgressParams, type WorkDoneProgressOptions } from './protocol';
5
5
  /**
6
6
  * Since 3.6.0
7
7
  */
@@ -35,4 +35,5 @@ export declare namespace TypeDefinitionRequest {
35
35
  const messageDirection: MessageDirection;
36
36
  const type: ProtocolRequestType<TypeDefinitionParams, Definition | LocationLink[] | null, Location[] | LocationLink[], void, TypeDefinitionRegistrationOptions>;
37
37
  type HandlerSignature = RequestHandler<TypeDefinitionParams, Definition | DefinitionLink[] | null, void>;
38
+ const capabilities: CM<"textDocument.typeDefinition", "typeDefinitionProvider">;
38
39
  }
@@ -6,7 +6,7 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.TypeDefinitionRequest = void 0;
8
8
  const messages_1 = require("./messages");
9
- // @ts-ignore: to avoid inlining LocatioLink as dynamic import
9
+ // @ts-ignore: to avoid inlining LocationLink as dynamic import
10
10
  let __noDynamicImport;
11
11
  /**
12
12
  * A request to resolve the type definition locations of a symbol at a given text
@@ -18,4 +18,5 @@ var TypeDefinitionRequest;
18
18
  TypeDefinitionRequest.method = 'textDocument/typeDefinition';
19
19
  TypeDefinitionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
20
20
  TypeDefinitionRequest.type = new messages_1.ProtocolRequestType(TypeDefinitionRequest.method);
21
+ TypeDefinitionRequest.capabilities = messages_1.CM.create('textDocument.typeDefinition', 'typeDefinitionProvider');
21
22
  })(TypeDefinitionRequest || (exports.TypeDefinitionRequest = TypeDefinitionRequest = {}));
@@ -1,7 +1,7 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { TypeHierarchyItem } from 'vscode-languageserver-types';
3
- import { MessageDirection, ProtocolRequestType } from './messages';
4
- import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
3
+ import { MessageDirection, ProtocolRequestType, CM } from './messages';
4
+ import { type TextDocumentRegistrationOptions, type StaticRegistrationOptions, type TextDocumentPositionParams, type PartialResultParams, type WorkDoneProgressParams, type WorkDoneProgressOptions } from './protocol';
5
5
  /**
6
6
  * @since 3.17.0
7
7
  */
@@ -42,6 +42,7 @@ export declare namespace TypeHierarchyPrepareRequest {
42
42
  const messageDirection: MessageDirection;
43
43
  const type: ProtocolRequestType<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, never, void, TypeHierarchyRegistrationOptions>;
44
44
  type HandlerSignature = RequestHandler<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, void>;
45
+ const capabilities: CM<"textDocument.typeHierarchy", "typeHierarchyProvider">;
45
46
  }
46
47
  /**
47
48
  * The parameter of a `typeHierarchy/supertypes` request.