vscode-languageserver-protocol 3.17.0-next.7 → 3.17.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 (43) hide show
  1. package/lib/browser/main.js +6 -2
  2. package/lib/common/api.d.ts +10 -27
  3. package/lib/common/api.js +15 -11
  4. package/lib/common/connection.d.ts +41 -17
  5. package/lib/common/connection.js +1 -1
  6. package/lib/common/messages.js +0 -3
  7. package/lib/common/protocol.$.d.ts +1 -0
  8. package/lib/common/protocol.$.js +36 -0
  9. package/lib/common/protocol.callHierarchy.d.ts +1 -1
  10. package/lib/common/protocol.colorProvider.d.ts +1 -1
  11. package/lib/common/protocol.configuration.d.ts +4 -16
  12. package/lib/common/protocol.configuration.js +1 -0
  13. package/lib/common/protocol.d.ts +453 -69
  14. package/lib/common/protocol.declaration.d.ts +2 -2
  15. package/lib/common/protocol.declaration.js +2 -2
  16. package/lib/common/{proposed.diagnostic.d.ts → protocol.diagnostic.d.ts} +85 -71
  17. package/lib/common/{proposed.diagnostic.js → protocol.diagnostic.js} +8 -8
  18. package/lib/common/protocol.foldingRange.d.ts +40 -27
  19. package/lib/common/protocol.foldingRange.js +1 -19
  20. package/lib/common/protocol.implementation.d.ts +2 -2
  21. package/lib/common/protocol.implementation.js +2 -2
  22. package/lib/common/protocol.inlayHint.d.ts +107 -0
  23. package/lib/common/protocol.inlayHint.js +41 -0
  24. package/lib/common/protocol.inlineValue.d.ts +84 -0
  25. package/lib/common/protocol.inlineValue.js +29 -0
  26. package/lib/common/protocol.js +131 -17
  27. package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
  28. package/lib/common/protocol.moniker.d.ts +13 -11
  29. package/lib/common/protocol.moniker.js +8 -8
  30. package/lib/common/protocol.notebook.d.ts +391 -0
  31. package/lib/common/protocol.notebook.js +206 -0
  32. package/lib/common/protocol.progress.d.ts +2 -14
  33. package/lib/common/protocol.progress.js +4 -2
  34. package/lib/common/protocol.selectionRange.d.ts +2 -2
  35. package/lib/common/protocol.semanticTokens.d.ts +23 -1
  36. package/lib/common/protocol.typeDefinition.d.ts +1 -1
  37. package/lib/common/protocol.typeHierarchy.d.ts +80 -0
  38. package/lib/common/protocol.typeHierarchy.js +40 -0
  39. package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -41
  40. package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
  41. package/lib/node/main.js +6 -2
  42. package/metaModel.schema.json +705 -0
  43. package/package.json +4 -4
@@ -0,0 +1,391 @@
1
+ import { URI, integer, DocumentUri, uinteger, TextDocumentItem, TextDocumentIdentifier, VersionedTextDocumentIdentifier, LSPObject } from 'vscode-languageserver-types';
2
+ import { ProtocolNotificationType, RegistrationType } from './messages';
3
+ import type { StaticRegistrationOptions, NotebookDocumentFilter, TextDocumentContentChangeEvent } from './protocol';
4
+ /**
5
+ * Notebook specific client capabilities.
6
+ *
7
+ * @since 3.17.0
8
+ */
9
+ export declare type NotebookDocumentSyncClientCapabilities = {
10
+ /**
11
+ * Whether implementation supports dynamic registration. If this is
12
+ * set to `true` the client supports the new
13
+ * `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
14
+ * return value for the corresponding server capability as well.
15
+ */
16
+ dynamicRegistration?: boolean;
17
+ /**
18
+ * The client supports sending execution summary data per cell.
19
+ */
20
+ executionSummarySupport?: boolean;
21
+ };
22
+ /**
23
+ * A notebook cell kind.
24
+ *
25
+ * @since 3.17.0
26
+ */
27
+ export declare namespace NotebookCellKind {
28
+ /**
29
+ * A markup-cell is formatted source that is used for display.
30
+ */
31
+ const Markup: 1;
32
+ /**
33
+ * A code-cell is source code.
34
+ */
35
+ const Code: 2;
36
+ function is(value: any): value is NotebookCellKind;
37
+ }
38
+ export declare type NotebookCellKind = 1 | 2;
39
+ export declare type ExecutionSummary = {
40
+ /**
41
+ * A strict monotonically increasing value
42
+ * indicating the execution order of a cell
43
+ * inside a notebook.
44
+ */
45
+ executionOrder: uinteger;
46
+ /**
47
+ * Whether the execution was successful or
48
+ * not if known by the client.
49
+ */
50
+ success?: boolean;
51
+ };
52
+ export declare namespace ExecutionSummary {
53
+ function create(executionOrder: number, success?: boolean): ExecutionSummary;
54
+ function is(value: any): value is ExecutionSummary;
55
+ function equals(one: ExecutionSummary | undefined, other: ExecutionSummary | undefined): boolean;
56
+ }
57
+ /**
58
+ * A notebook cell.
59
+ *
60
+ * A cell's document URI must be unique across ALL notebook
61
+ * cells and can therefore be used to uniquely identify a
62
+ * notebook cell or the cell's text document.
63
+ *
64
+ * @since 3.17.0
65
+ */
66
+ export declare type NotebookCell = {
67
+ /**
68
+ * The cell's kind
69
+ */
70
+ kind: NotebookCellKind;
71
+ /**
72
+ * The URI of the cell's text document
73
+ * content.
74
+ */
75
+ document: DocumentUri;
76
+ /**
77
+ * Additional metadata stored with the cell.
78
+ *
79
+ * Note: should always be an object literal (e.g. LSPObject)
80
+ */
81
+ metadata?: LSPObject;
82
+ /**
83
+ * Additional execution summary information
84
+ * if supported by the client.
85
+ */
86
+ executionSummary?: ExecutionSummary;
87
+ };
88
+ export declare namespace NotebookCell {
89
+ function create(kind: NotebookCellKind, document: DocumentUri): NotebookCell;
90
+ function is(value: any): value is NotebookCell;
91
+ function diff(one: NotebookCell, two: NotebookCell): Set<keyof NotebookCell>;
92
+ }
93
+ /**
94
+ * A notebook document.
95
+ *
96
+ * @since 3.17.0
97
+ */
98
+ export declare type NotebookDocument = {
99
+ /**
100
+ * The notebook document's uri.
101
+ */
102
+ uri: URI;
103
+ /**
104
+ * The type of the notebook.
105
+ */
106
+ notebookType: string;
107
+ /**
108
+ * The version number of this document (it will increase after each
109
+ * change, including undo/redo).
110
+ */
111
+ version: integer;
112
+ /**
113
+ * Additional metadata stored with the notebook
114
+ * document.
115
+ *
116
+ * Note: should always be an object literal (e.g. LSPObject)
117
+ */
118
+ metadata?: LSPObject;
119
+ /**
120
+ * The cells of a notebook.
121
+ */
122
+ cells: NotebookCell[];
123
+ };
124
+ export declare namespace NotebookDocument {
125
+ function create(uri: URI, notebookType: string, version: integer, cells: NotebookCell[]): NotebookDocument;
126
+ function is(value: any): value is NotebookDocument;
127
+ }
128
+ /**
129
+ * A literal to identify a notebook document in the client.
130
+ *
131
+ * @since 3.17.0
132
+ */
133
+ export declare type NotebookDocumentIdentifier = {
134
+ /**
135
+ * The notebook document's uri.
136
+ */
137
+ uri: URI;
138
+ };
139
+ /**
140
+ * A versioned notebook document identifier.
141
+ *
142
+ * @since 3.17.0
143
+ */
144
+ export declare type VersionedNotebookDocumentIdentifier = {
145
+ /**
146
+ * The version number of this notebook document.
147
+ */
148
+ version: integer;
149
+ /**
150
+ * The notebook document's uri.
151
+ */
152
+ uri: URI;
153
+ };
154
+ /**
155
+ * Options specific to a notebook plus its cells
156
+ * to be synced to the server.
157
+ *
158
+ * If a selector provide a notebook document
159
+ * filter but no cell selector all cells of a
160
+ * matching notebook document will be synced.
161
+ *
162
+ * If a selector provides no notebook document
163
+ * filter but only a cell selector all notebook
164
+ * document that contain at least one matching
165
+ * cell will be synced.
166
+ *
167
+ * @since 3.17.0
168
+ */
169
+ export declare type NotebookDocumentSyncOptions = {
170
+ /**
171
+ * The notebooks to be synced
172
+ */
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
+ })[];
200
+ /**
201
+ * Whether save notification should be forwarded to
202
+ * the server. Will only be honored if mode === `notebook`.
203
+ */
204
+ save?: boolean;
205
+ };
206
+ /**
207
+ * Registration options specific to a notebook.
208
+ *
209
+ * @since 3.17.0
210
+ */
211
+ export declare type NotebookDocumentSyncRegistrationOptions = NotebookDocumentSyncOptions & StaticRegistrationOptions;
212
+ export declare namespace NotebookDocumentSyncRegistrationType {
213
+ const method: 'notebookDocument/sync';
214
+ const type: RegistrationType<NotebookDocumentSyncRegistrationOptions>;
215
+ }
216
+ /**
217
+ * The params sent in a open notebook document notification.
218
+ *
219
+ * @since 3.17.0
220
+ */
221
+ export declare type DidOpenNotebookDocumentParams = {
222
+ /**
223
+ * The notebook document that got opened.
224
+ */
225
+ notebookDocument: NotebookDocument;
226
+ /**
227
+ * The text documents that represent the content
228
+ * of a notebook cell.
229
+ */
230
+ cellTextDocuments: TextDocumentItem[];
231
+ };
232
+ /**
233
+ * A notification sent when a notebook opens.
234
+ *
235
+ * @since 3.17.0
236
+ */
237
+ export declare namespace DidOpenNotebookDocumentNotification {
238
+ const method: 'notebookDocument/didOpen';
239
+ const type: ProtocolNotificationType<DidOpenNotebookDocumentParams, void>;
240
+ }
241
+ /**
242
+ * A change describing how to move a `NotebookCell`
243
+ * array from state S to S'.
244
+ *
245
+ * @since 3.17.0
246
+ */
247
+ export declare type NotebookCellArrayChange = {
248
+ /**
249
+ * The start oftest of the cell that changed.
250
+ */
251
+ start: uinteger;
252
+ /**
253
+ * The deleted cells
254
+ */
255
+ deleteCount: uinteger;
256
+ /**
257
+ * The new cells, if any
258
+ */
259
+ cells?: NotebookCell[];
260
+ };
261
+ export declare namespace NotebookCellArrayChange {
262
+ function is(value: any): value is NotebookCellArrayChange;
263
+ function create(start: uinteger, deleteCount: uinteger, cells?: NotebookCell[]): NotebookCellArrayChange;
264
+ }
265
+ /**
266
+ * A change event for a notebook document.
267
+ *
268
+ * @since 3.17.0
269
+ */
270
+ export declare type NotebookDocumentChangeEvent = {
271
+ /**
272
+ * The changed meta data if any.
273
+ *
274
+ * Note: should always be an object literal (e.g. LSPObject)
275
+ */
276
+ metadata?: LSPObject;
277
+ /**
278
+ * Changes to cells
279
+ */
280
+ cells?: {
281
+ /**
282
+ * Changes to the cell structure to add or
283
+ * remove cells.
284
+ */
285
+ structure?: {
286
+ /**
287
+ * The change to the cell array.
288
+ */
289
+ array: NotebookCellArrayChange;
290
+ /**
291
+ * Additional opened cell text documents.
292
+ */
293
+ didOpen?: TextDocumentItem[];
294
+ /**
295
+ * Additional closed cell text documents.
296
+ */
297
+ didClose?: TextDocumentIdentifier[];
298
+ };
299
+ /**
300
+ * Changes to notebook cells properties like its
301
+ * kind, execution summary or metadata.
302
+ */
303
+ data?: NotebookCell[];
304
+ /**
305
+ * Changes to the text content of notebook cells.
306
+ */
307
+ textContent?: {
308
+ document: VersionedTextDocumentIdentifier;
309
+ changes: TextDocumentContentChangeEvent[];
310
+ }[];
311
+ };
312
+ };
313
+ /**
314
+ * The params sent in a change notebook document notification.
315
+ *
316
+ * @since 3.17.0
317
+ */
318
+ export declare type DidChangeNotebookDocumentParams = {
319
+ /**
320
+ * The notebook document that did change. The version number points
321
+ * to the version after all provided changes have been applied. If
322
+ * only the text document content of a cell changes the notebook version
323
+ * doesn't necessarily have to change.
324
+ */
325
+ notebookDocument: VersionedNotebookDocumentIdentifier;
326
+ /**
327
+ * The actual changes to the notebook document.
328
+ *
329
+ * The changes describe single state changes to the notebook document.
330
+ * So if there are two changes c1 (at array index 0) and c2 (at array
331
+ * index 1) for a notebook in state S then c1 moves the notebook from
332
+ * S to S' and c2 from S' to S''. So c1 is computed on the state S and
333
+ * c2 is computed on the state S'.
334
+ *
335
+ * To mirror the content of a notebook using change events use the following approach:
336
+ * - start with the same initial content
337
+ * - apply the 'notebookDocument/didChange' notifications in the order you receive them.
338
+ * - apply the `NotebookChangeEvent`s in a single notification in the order
339
+ * you receive them.
340
+ */
341
+ change: NotebookDocumentChangeEvent;
342
+ };
343
+ export declare namespace DidChangeNotebookDocumentNotification {
344
+ const method: 'notebookDocument/didChange';
345
+ const type: ProtocolNotificationType<DidChangeNotebookDocumentParams, void>;
346
+ }
347
+ /**
348
+ * The params sent in a save notebook document notification.
349
+ *
350
+ * @since 3.17.0
351
+ */
352
+ export declare type DidSaveNotebookDocumentParams = {
353
+ /**
354
+ * The notebook document that got saved.
355
+ */
356
+ notebookDocument: NotebookDocumentIdentifier;
357
+ };
358
+ /**
359
+ * A notification sent when a notebook document is saved.
360
+ *
361
+ * @since 3.17.0
362
+ */
363
+ export declare namespace DidSaveNotebookDocumentNotification {
364
+ const method: 'notebookDocument/didSave';
365
+ const type: ProtocolNotificationType<DidSaveNotebookDocumentParams, void>;
366
+ }
367
+ /**
368
+ * The params sent in a close notebook document notification.
369
+ *
370
+ * @since 3.17.0
371
+ */
372
+ export declare type DidCloseNotebookDocumentParams = {
373
+ /**
374
+ * The notebook document that got closed.
375
+ */
376
+ notebookDocument: NotebookDocumentIdentifier;
377
+ /**
378
+ * The text documents that represent the content
379
+ * of a notebook cell that got closed.
380
+ */
381
+ cellTextDocuments: TextDocumentIdentifier[];
382
+ };
383
+ /**
384
+ * A notification sent when a notebook closes.
385
+ *
386
+ * @since 3.17.0
387
+ */
388
+ export declare namespace DidCloseNotebookDocumentNotification {
389
+ const method: 'notebookDocument/didClose';
390
+ const type: ProtocolNotificationType<DidCloseNotebookDocumentParams, void>;
391
+ }
@@ -0,0 +1,206 @@
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.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.ExecutionSummary = exports.NotebookCellKind = void 0;
8
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
9
+ const Is = require("./utils/is");
10
+ const messages_1 = require("./messages");
11
+ /**
12
+ * A notebook cell kind.
13
+ *
14
+ * @since 3.17.0
15
+ */
16
+ var NotebookCellKind;
17
+ (function (NotebookCellKind) {
18
+ /**
19
+ * A markup-cell is formatted source that is used for display.
20
+ */
21
+ NotebookCellKind.Markup = 1;
22
+ /**
23
+ * A code-cell is source code.
24
+ */
25
+ NotebookCellKind.Code = 2;
26
+ function is(value) {
27
+ return value === 1 || value === 2;
28
+ }
29
+ NotebookCellKind.is = is;
30
+ })(NotebookCellKind = exports.NotebookCellKind || (exports.NotebookCellKind = {}));
31
+ var ExecutionSummary;
32
+ (function (ExecutionSummary) {
33
+ function create(executionOrder, success) {
34
+ const result = { executionOrder };
35
+ if (success === true || success === false) {
36
+ result.success = success;
37
+ }
38
+ return result;
39
+ }
40
+ ExecutionSummary.create = create;
41
+ function is(value) {
42
+ const candidate = value;
43
+ return Is.objectLiteral(candidate) && vscode_languageserver_types_1.uinteger.is(candidate.executionOrder) && (candidate.success === undefined || Is.boolean(candidate.success));
44
+ }
45
+ ExecutionSummary.is = is;
46
+ function equals(one, other) {
47
+ if (one === other) {
48
+ return true;
49
+ }
50
+ if (one === null || one === undefined || other === null || other === undefined) {
51
+ return false;
52
+ }
53
+ return one.executionOrder === other.executionOrder && one.success === other.success;
54
+ }
55
+ ExecutionSummary.equals = equals;
56
+ })(ExecutionSummary = exports.ExecutionSummary || (exports.ExecutionSummary = {}));
57
+ var NotebookCell;
58
+ (function (NotebookCell) {
59
+ function create(kind, document) {
60
+ return { kind, document };
61
+ }
62
+ NotebookCell.create = create;
63
+ function is(value) {
64
+ const candidate = value;
65
+ return Is.objectLiteral(candidate) && NotebookCellKind.is(candidate.kind) && vscode_languageserver_types_1.DocumentUri.is(candidate.document) &&
66
+ (candidate.metadata === undefined || Is.objectLiteral(candidate.metadata));
67
+ }
68
+ NotebookCell.is = is;
69
+ function diff(one, two) {
70
+ const result = new Set();
71
+ if (one.document !== two.document) {
72
+ result.add('document');
73
+ }
74
+ if (one.kind !== two.kind) {
75
+ result.add('kind');
76
+ }
77
+ if (one.executionSummary !== two.executionSummary) {
78
+ result.add('executionSummary');
79
+ }
80
+ if ((one.metadata !== undefined || two.metadata !== undefined) && !equalsMetadata(one.metadata, two.metadata)) {
81
+ result.add('metadata');
82
+ }
83
+ if ((one.executionSummary !== undefined || two.executionSummary !== undefined) && !ExecutionSummary.equals(one.executionSummary, two.executionSummary)) {
84
+ result.add('executionSummary');
85
+ }
86
+ return result;
87
+ }
88
+ NotebookCell.diff = diff;
89
+ function equalsMetadata(one, other) {
90
+ if (one === other) {
91
+ return true;
92
+ }
93
+ if (one === null || one === undefined || other === null || other === undefined) {
94
+ return false;
95
+ }
96
+ if (typeof one !== typeof other) {
97
+ return false;
98
+ }
99
+ if (typeof one !== 'object') {
100
+ return false;
101
+ }
102
+ const oneArray = Array.isArray(one);
103
+ const otherArray = Array.isArray(other);
104
+ if (oneArray !== otherArray) {
105
+ return false;
106
+ }
107
+ if (oneArray && otherArray) {
108
+ if (one.length !== other.length) {
109
+ return false;
110
+ }
111
+ for (let i = 0; i < one.length; i++) {
112
+ if (!equalsMetadata(one[i], other[i])) {
113
+ return false;
114
+ }
115
+ }
116
+ }
117
+ if (Is.objectLiteral(one) && Is.objectLiteral(other)) {
118
+ const oneKeys = Object.keys(one);
119
+ const otherKeys = Object.keys(other);
120
+ if (oneKeys.length !== otherKeys.length) {
121
+ return false;
122
+ }
123
+ oneKeys.sort();
124
+ otherKeys.sort();
125
+ if (!equalsMetadata(oneKeys, otherKeys)) {
126
+ return false;
127
+ }
128
+ for (let i = 0; i < oneKeys.length; i++) {
129
+ const prop = oneKeys[i];
130
+ if (!equalsMetadata(one[prop], other[prop])) {
131
+ return false;
132
+ }
133
+ }
134
+ }
135
+ return true;
136
+ }
137
+ })(NotebookCell = exports.NotebookCell || (exports.NotebookCell = {}));
138
+ var NotebookDocument;
139
+ (function (NotebookDocument) {
140
+ function create(uri, notebookType, version, cells) {
141
+ return { uri, notebookType, version, cells };
142
+ }
143
+ NotebookDocument.create = create;
144
+ function is(value) {
145
+ const candidate = value;
146
+ return Is.objectLiteral(candidate) && Is.string(candidate.uri) && vscode_languageserver_types_1.integer.is(candidate.version) && Is.typedArray(candidate.cells, NotebookCell.is);
147
+ }
148
+ NotebookDocument.is = is;
149
+ })(NotebookDocument = exports.NotebookDocument || (exports.NotebookDocument = {}));
150
+ var NotebookDocumentSyncRegistrationType;
151
+ (function (NotebookDocumentSyncRegistrationType) {
152
+ NotebookDocumentSyncRegistrationType.method = 'notebookDocument/sync';
153
+ NotebookDocumentSyncRegistrationType.type = new messages_1.RegistrationType(NotebookDocumentSyncRegistrationType.method);
154
+ })(NotebookDocumentSyncRegistrationType = exports.NotebookDocumentSyncRegistrationType || (exports.NotebookDocumentSyncRegistrationType = {}));
155
+ /**
156
+ * A notification sent when a notebook opens.
157
+ *
158
+ * @since 3.17.0
159
+ */
160
+ var DidOpenNotebookDocumentNotification;
161
+ (function (DidOpenNotebookDocumentNotification) {
162
+ DidOpenNotebookDocumentNotification.method = 'notebookDocument/didOpen';
163
+ DidOpenNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidOpenNotebookDocumentNotification.method);
164
+ })(DidOpenNotebookDocumentNotification = exports.DidOpenNotebookDocumentNotification || (exports.DidOpenNotebookDocumentNotification = {}));
165
+ var NotebookCellArrayChange;
166
+ (function (NotebookCellArrayChange) {
167
+ function is(value) {
168
+ const candidate = value;
169
+ return Is.objectLiteral(candidate) && vscode_languageserver_types_1.uinteger.is(candidate.start) && vscode_languageserver_types_1.uinteger.is(candidate.deleteCount) && (candidate.cells === undefined || Is.typedArray(candidate.cells, NotebookCell.is));
170
+ }
171
+ NotebookCellArrayChange.is = is;
172
+ function create(start, deleteCount, cells) {
173
+ const result = { start, deleteCount };
174
+ if (cells !== undefined) {
175
+ result.cells = cells;
176
+ }
177
+ return result;
178
+ }
179
+ NotebookCellArrayChange.create = create;
180
+ })(NotebookCellArrayChange = exports.NotebookCellArrayChange || (exports.NotebookCellArrayChange = {}));
181
+ var DidChangeNotebookDocumentNotification;
182
+ (function (DidChangeNotebookDocumentNotification) {
183
+ DidChangeNotebookDocumentNotification.method = 'notebookDocument/didChange';
184
+ DidChangeNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidChangeNotebookDocumentNotification.method);
185
+ })(DidChangeNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification || (exports.DidChangeNotebookDocumentNotification = {}));
186
+ /**
187
+ * A notification sent when a notebook document is saved.
188
+ *
189
+ * @since 3.17.0
190
+ */
191
+ var DidSaveNotebookDocumentNotification;
192
+ (function (DidSaveNotebookDocumentNotification) {
193
+ DidSaveNotebookDocumentNotification.method = 'notebookDocument/didSave';
194
+ DidSaveNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidSaveNotebookDocumentNotification.method);
195
+ })(DidSaveNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification || (exports.DidSaveNotebookDocumentNotification = {}));
196
+ /**
197
+ * A notification sent when a notebook closes.
198
+ *
199
+ * @since 3.17.0
200
+ */
201
+ var DidCloseNotebookDocumentNotification;
202
+ (function (DidCloseNotebookDocumentNotification) {
203
+ DidCloseNotebookDocumentNotification.method = 'notebookDocument/didClose';
204
+ DidCloseNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseNotebookDocumentNotification.method);
205
+ })(DidCloseNotebookDocumentNotification = exports.DidCloseNotebookDocumentNotification || (exports.DidCloseNotebookDocumentNotification = {}));
206
+ //# sourceMappingURL=protocol.notebook.js.map
@@ -1,20 +1,6 @@
1
1
  import { NotificationHandler, RequestHandler, ProgressType, ProgressToken } from 'vscode-jsonrpc';
2
2
  import { uinteger } from 'vscode-languageserver-types';
3
3
  import { ProtocolRequestType, ProtocolNotificationType } from './messages';
4
- export interface WorkDoneProgressClientCapabilities {
5
- /**
6
- * Window specific client capabilities.
7
- */
8
- window?: {
9
- /**
10
- * Whether client supports server initiated progress using the
11
- * `window/workDoneProgress/create` request.
12
- *
13
- * Since 3.15.0
14
- */
15
- workDoneProgress?: boolean;
16
- };
17
- }
18
4
  export interface WorkDoneProgressBegin {
19
5
  kind: 'begin';
20
6
  /**
@@ -98,6 +84,7 @@ export interface WorkDoneProgressCreateParams {
98
84
  * reporting from the server.
99
85
  */
100
86
  export declare namespace WorkDoneProgressCreateRequest {
87
+ const method: 'window/workDoneProgress/create';
101
88
  const type: ProtocolRequestType<WorkDoneProgressCreateParams, void, never, void, void>;
102
89
  type HandlerSignature = RequestHandler<WorkDoneProgressCreateParams, void, void>;
103
90
  }
@@ -112,6 +99,7 @@ export interface WorkDoneProgressCancelParams {
112
99
  * initiated on the server side.
113
100
  */
114
101
  export declare namespace WorkDoneProgressCancelNotification {
102
+ const method: 'window/workDoneProgress/cancel';
115
103
  const type: ProtocolNotificationType<WorkDoneProgressCancelParams, void>;
116
104
  type HandlerSignature = NotificationHandler<WorkDoneProgressCancelParams>;
117
105
  }
@@ -21,7 +21,8 @@ var WorkDoneProgress;
21
21
  */
22
22
  var WorkDoneProgressCreateRequest;
23
23
  (function (WorkDoneProgressCreateRequest) {
24
- WorkDoneProgressCreateRequest.type = new messages_1.ProtocolRequestType('window/workDoneProgress/create');
24
+ WorkDoneProgressCreateRequest.method = 'window/workDoneProgress/create';
25
+ WorkDoneProgressCreateRequest.type = new messages_1.ProtocolRequestType(WorkDoneProgressCreateRequest.method);
25
26
  })(WorkDoneProgressCreateRequest = exports.WorkDoneProgressCreateRequest || (exports.WorkDoneProgressCreateRequest = {}));
26
27
  /**
27
28
  * The `window/workDoneProgress/cancel` notification is sent from the client to the server to cancel a progress
@@ -29,6 +30,7 @@ var WorkDoneProgressCreateRequest;
29
30
  */
30
31
  var WorkDoneProgressCancelNotification;
31
32
  (function (WorkDoneProgressCancelNotification) {
32
- WorkDoneProgressCancelNotification.type = new messages_1.ProtocolNotificationType('window/workDoneProgress/cancel');
33
+ WorkDoneProgressCancelNotification.method = 'window/workDoneProgress/cancel';
34
+ WorkDoneProgressCancelNotification.type = new messages_1.ProtocolNotificationType(WorkDoneProgressCancelNotification.method);
33
35
  })(WorkDoneProgressCancelNotification = exports.WorkDoneProgressCancelNotification || (exports.WorkDoneProgressCancelNotification = {}));
34
36
  //# sourceMappingURL=protocol.progress.js.map
@@ -1,7 +1,7 @@
1
1
  import { RequestHandler } from 'vscode-jsonrpc';
2
2
  import { TextDocumentIdentifier, Position, SelectionRange } from 'vscode-languageserver-types';
3
3
  import { ProtocolRequestType } from './messages';
4
- import { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams, PartialResultParams } from './protocol';
4
+ import type { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams, 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`
@@ -35,6 +35,6 @@ export interface SelectionRangeParams extends WorkDoneProgressParams, PartialRes
35
35
  */
36
36
  export declare namespace SelectionRangeRequest {
37
37
  const method: 'textDocument/selectionRange';
38
- const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[], any, SelectionRangeRegistrationOptions>;
38
+ const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[], void, SelectionRangeRegistrationOptions>;
39
39
  type HandlerSignature = RequestHandler<SelectionRangeParams, SelectionRange[] | null, void>;
40
40
  }