vscode-languageserver-protocol 3.17.0-next.14 → 3.17.0-next.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/api.d.ts +1 -22
- package/lib/common/api.js +1 -10
- package/lib/common/connection.d.ts +26 -2
- package/lib/common/proposed.diagnostic.d.ts +93 -68
- package/lib/common/proposed.diagnostic.js +12 -7
- package/lib/common/{proposed.notebooks.d.ts → proposed.notebook.d.ts} +81 -114
- package/lib/common/{proposed.notebooks.js → proposed.notebook.js} +28 -56
- package/lib/common/protocol.callHierarchy.d.ts +1 -1
- package/lib/common/protocol.colorProvider.d.ts +1 -1
- package/lib/common/protocol.configuration.d.ts +1 -14
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +266 -102
- package/lib/common/protocol.declaration.d.ts +2 -2
- package/lib/common/protocol.declaration.js +2 -2
- package/lib/common/protocol.foldingRange.d.ts +2 -19
- package/lib/common/protocol.foldingRange.js +1 -19
- package/lib/common/protocol.implementation.d.ts +2 -2
- package/lib/common/protocol.implementation.js +2 -2
- package/lib/common/protocol.inlayHint.d.ts +115 -0
- package/lib/common/protocol.inlayHint.js +44 -0
- package/lib/common/protocol.inlineValue.d.ts +91 -0
- package/lib/common/protocol.inlineValue.js +31 -0
- package/lib/common/protocol.js +71 -15
- package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
- package/lib/common/protocol.moniker.d.ts +13 -11
- package/lib/common/protocol.moniker.js +8 -8
- package/lib/common/protocol.progress.d.ts +2 -14
- package/lib/common/protocol.progress.js +4 -2
- package/lib/common/protocol.selectionRange.d.ts +2 -2
- package/lib/common/protocol.semanticTokens.d.ts +1 -1
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/common/{proposed.typeHierarchy.d.ts → protocol.typeHierarchy.d.ts} +28 -22
- package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +7 -4
- package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -41
- package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
- package/metaModel.schema.json +686 -0
- package/package.json +3 -3
- package/lib/common/proposed.inlineValue.d.ts +0 -86
- package/lib/common/proposed.inlineValue.js +0 -29
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { URI, integer, DocumentUri, uinteger, LSPObject, TextDocumentItem, TextDocumentIdentifier, VersionedTextDocumentIdentifier } from 'vscode-languageserver-types';
|
|
2
2
|
import { ProtocolNotificationType, RegistrationType } from './messages';
|
|
3
|
-
import { StaticRegistrationOptions, NotebookDocumentFilter, TextDocumentContentChangeEvent } from './protocol';
|
|
3
|
+
import type { StaticRegistrationOptions, NotebookDocumentFilter, TextDocumentContentChangeEvent } from './protocol';
|
|
4
4
|
/**
|
|
5
5
|
* Notebook specific client capabilities.
|
|
6
6
|
*
|
|
7
|
-
* @since 3.17.0
|
|
7
|
+
* @since 3.17.0
|
|
8
|
+
* @proposed
|
|
8
9
|
*/
|
|
9
|
-
export
|
|
10
|
+
export declare type NotebookDocumentSyncClientCapabilities = {
|
|
10
11
|
/**
|
|
11
12
|
* Whether implementation supports dynamic registration. If this is
|
|
12
13
|
* set to `true` the client supports the new
|
|
@@ -18,16 +19,17 @@ export interface NotebookDocumentSyncClientCapabilities {
|
|
|
18
19
|
* The client supports sending execution summary data per cell.
|
|
19
20
|
*/
|
|
20
21
|
executionSummarySupport?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export
|
|
22
|
+
};
|
|
23
|
+
export declare type $NotebookDocumentClientCapabilities = {
|
|
23
24
|
notebookDocument?: {
|
|
24
25
|
synchronization: NotebookDocumentSyncClientCapabilities;
|
|
25
26
|
};
|
|
26
|
-
}
|
|
27
|
+
};
|
|
27
28
|
/**
|
|
28
29
|
* A notebook cell kind.
|
|
29
30
|
*
|
|
30
|
-
* @since 3.17.0
|
|
31
|
+
* @since 3.17.0
|
|
32
|
+
* @proposed
|
|
31
33
|
*/
|
|
32
34
|
export declare namespace NotebookCellKind {
|
|
33
35
|
/**
|
|
@@ -66,9 +68,10 @@ export declare namespace ExecutionSummary {
|
|
|
66
68
|
* cells and can therefore be used to uniquely identify a
|
|
67
69
|
* notebook cell or the cell's text document.
|
|
68
70
|
*
|
|
69
|
-
* @since 3.17.0
|
|
71
|
+
* @since 3.17.0
|
|
72
|
+
* @proposed
|
|
70
73
|
*/
|
|
71
|
-
export
|
|
74
|
+
export declare type NotebookCell = {
|
|
72
75
|
/**
|
|
73
76
|
* The cell's kind
|
|
74
77
|
*/
|
|
@@ -87,19 +90,19 @@ export interface NotebookCell {
|
|
|
87
90
|
* if supported by the client.
|
|
88
91
|
*/
|
|
89
92
|
executionSummary?: ExecutionSummary;
|
|
90
|
-
}
|
|
93
|
+
};
|
|
91
94
|
export declare namespace NotebookCell {
|
|
92
95
|
function create(kind: NotebookCellKind, document: DocumentUri): NotebookCell;
|
|
93
96
|
function is(value: any): value is NotebookCell;
|
|
94
|
-
function equals(one: NotebookCell, other: NotebookCell, compareMetaData?: boolean): boolean;
|
|
95
97
|
function diff(one: NotebookCell, two: NotebookCell): Set<keyof NotebookCell>;
|
|
96
98
|
}
|
|
97
99
|
/**
|
|
98
100
|
* A notebook document.
|
|
99
101
|
*
|
|
100
|
-
* @since 3.17.0
|
|
102
|
+
* @since 3.17.0
|
|
103
|
+
* @proposed
|
|
101
104
|
*/
|
|
102
|
-
export
|
|
105
|
+
export declare type NotebookDocument = {
|
|
103
106
|
/**
|
|
104
107
|
* The notebook document's uri.
|
|
105
108
|
*/
|
|
@@ -122,7 +125,7 @@ export interface NotebookDocument {
|
|
|
122
125
|
* The cells of a notebook.
|
|
123
126
|
*/
|
|
124
127
|
cells: NotebookCell[];
|
|
125
|
-
}
|
|
128
|
+
};
|
|
126
129
|
export declare namespace NotebookDocument {
|
|
127
130
|
function create(uri: URI, notebookType: string, version: integer, cells: NotebookCell[]): NotebookDocument;
|
|
128
131
|
function is(value: any): value is NotebookDocument;
|
|
@@ -130,20 +133,22 @@ export declare namespace NotebookDocument {
|
|
|
130
133
|
/**
|
|
131
134
|
* A literal to identify a notebook document in the client.
|
|
132
135
|
*
|
|
133
|
-
* @since 3.17.0
|
|
136
|
+
* @since 3.17.0
|
|
137
|
+
* @proposed
|
|
134
138
|
*/
|
|
135
|
-
export
|
|
139
|
+
export declare type NotebookDocumentIdentifier = {
|
|
136
140
|
/**
|
|
137
141
|
* The notebook document's uri.
|
|
138
142
|
*/
|
|
139
143
|
uri: URI;
|
|
140
|
-
}
|
|
144
|
+
};
|
|
141
145
|
/**
|
|
142
146
|
* A versioned notebook document identifier.
|
|
143
147
|
*
|
|
144
|
-
* @since 3.17.0
|
|
148
|
+
* @since 3.17.0
|
|
149
|
+
* @proposed
|
|
145
150
|
*/
|
|
146
|
-
export
|
|
151
|
+
export declare type VersionedNotebookDocumentIdentifier = {
|
|
147
152
|
/**
|
|
148
153
|
* The version number of this notebook document.
|
|
149
154
|
*/
|
|
@@ -152,7 +157,7 @@ export interface VersionedNotebookDocumentIdentifier {
|
|
|
152
157
|
* The notebook document's uri.
|
|
153
158
|
*/
|
|
154
159
|
uri: URI;
|
|
155
|
-
}
|
|
160
|
+
};
|
|
156
161
|
/**
|
|
157
162
|
* Options specific to a notebook plus its cells
|
|
158
163
|
* to be synced to the server.
|
|
@@ -166,39 +171,40 @@ export interface VersionedNotebookDocumentIdentifier {
|
|
|
166
171
|
* document that contain at least one matching
|
|
167
172
|
* cell will be synced.
|
|
168
173
|
*
|
|
169
|
-
* @since 3.17.0
|
|
174
|
+
* @since 3.17.0
|
|
175
|
+
* @proposed
|
|
170
176
|
*/
|
|
171
177
|
export declare type NotebookDocumentSyncOptions = {
|
|
172
178
|
/**
|
|
173
|
-
* The
|
|
179
|
+
* The notebooks to be synced
|
|
174
180
|
*/
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
181
|
+
notebookSelector: ({
|
|
182
|
+
/**
|
|
183
|
+
* The notebook to be synced If a string
|
|
184
|
+
* value is provided it matches against the
|
|
185
|
+
* notebook type. '*' matches every notebook.
|
|
186
|
+
*/
|
|
187
|
+
notebook: string | NotebookDocumentFilter;
|
|
188
|
+
/**
|
|
189
|
+
* The cells of the matching notebook to be synced.
|
|
190
|
+
*/
|
|
191
|
+
cells?: {
|
|
180
192
|
language: string;
|
|
181
193
|
}[];
|
|
182
194
|
} | {
|
|
183
|
-
/**
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
195
|
+
/**
|
|
196
|
+
* The notebook to be synced If a string
|
|
197
|
+
* value is provided it matches against the
|
|
198
|
+
* notebook type. '*' matches every notebook.
|
|
199
|
+
*/
|
|
200
|
+
notebook?: string | NotebookDocumentFilter;
|
|
201
|
+
/**
|
|
202
|
+
* The cells of the matching notebook to be synced.
|
|
203
|
+
*/
|
|
204
|
+
cells: {
|
|
187
205
|
language: string;
|
|
188
206
|
}[];
|
|
189
207
|
})[];
|
|
190
|
-
/**
|
|
191
|
-
* Determines how the notebook is synchronized.
|
|
192
|
-
*
|
|
193
|
-
* If set to 'notebook' the notebook document,
|
|
194
|
-
* its meta data, cell structure and the cell's
|
|
195
|
-
* text documents are synchronized.
|
|
196
|
-
*
|
|
197
|
-
* If set to 'cellContent' only the cell content
|
|
198
|
-
* is synchronized using the available
|
|
199
|
-
* `textDocument/did*` notifications.
|
|
200
|
-
*/
|
|
201
|
-
mode: 'notebook' | 'cellContent';
|
|
202
208
|
/**
|
|
203
209
|
* Whether save notification should be forwarded to
|
|
204
210
|
* the server. Will only be honored if mode === `notebook`.
|
|
@@ -208,7 +214,8 @@ export declare type NotebookDocumentSyncOptions = {
|
|
|
208
214
|
/**
|
|
209
215
|
* Registration options specific to a notebook.
|
|
210
216
|
*
|
|
211
|
-
* @since 3.17.0
|
|
217
|
+
* @since 3.17.0
|
|
218
|
+
* @proposed
|
|
212
219
|
*/
|
|
213
220
|
export declare type NotebookDocumentSyncRegistrationOptions = NotebookDocumentSyncOptions & StaticRegistrationOptions;
|
|
214
221
|
export interface $NotebookDocumentSyncServerCapabilities {
|
|
@@ -221,9 +228,10 @@ export declare namespace NotebookDocumentSyncRegistrationType {
|
|
|
221
228
|
/**
|
|
222
229
|
* The params sent in a open notebook document notification.
|
|
223
230
|
*
|
|
224
|
-
* @since 3.17.0
|
|
231
|
+
* @since 3.17.0
|
|
232
|
+
* @proposed
|
|
225
233
|
*/
|
|
226
|
-
export
|
|
234
|
+
export declare type DidOpenNotebookDocumentParams = {
|
|
227
235
|
/**
|
|
228
236
|
* The notebook document that got opened.
|
|
229
237
|
*/
|
|
@@ -233,11 +241,12 @@ export interface DidOpenNotebookDocumentParams {
|
|
|
233
241
|
* of a notebook cell.
|
|
234
242
|
*/
|
|
235
243
|
cellTextDocuments: TextDocumentItem[];
|
|
236
|
-
}
|
|
244
|
+
};
|
|
237
245
|
/**
|
|
238
246
|
* A notification sent when a notebook opens.
|
|
239
247
|
*
|
|
240
|
-
* @since 3.17.0
|
|
248
|
+
* @since 3.17.0
|
|
249
|
+
* @proposed
|
|
241
250
|
*/
|
|
242
251
|
export declare namespace DidOpenNotebookDocumentNotification {
|
|
243
252
|
const method: 'notebookDocument/didOpen';
|
|
@@ -247,9 +256,10 @@ export declare namespace DidOpenNotebookDocumentNotification {
|
|
|
247
256
|
* A change describing how to move a `NotebookCell`
|
|
248
257
|
* array from state S to S'.
|
|
249
258
|
*
|
|
250
|
-
* @since 3.17.0
|
|
259
|
+
* @since 3.17.0
|
|
260
|
+
* @proposed
|
|
251
261
|
*/
|
|
252
|
-
export
|
|
262
|
+
export declare type NotebookCellArrayChange = {
|
|
253
263
|
/**
|
|
254
264
|
* The start oftest of the cell that changed.
|
|
255
265
|
*/
|
|
@@ -262,7 +272,7 @@ export interface NotebookCellArrayChange {
|
|
|
262
272
|
* The new cells, if any
|
|
263
273
|
*/
|
|
264
274
|
cells?: NotebookCell[];
|
|
265
|
-
}
|
|
275
|
+
};
|
|
266
276
|
export declare namespace NotebookCellArrayChange {
|
|
267
277
|
function is(value: any): value is NotebookCellArrayChange;
|
|
268
278
|
function create(start: uinteger, deleteCount: uinteger, cells?: NotebookCell[]): NotebookCellArrayChange;
|
|
@@ -270,9 +280,10 @@ export declare namespace NotebookCellArrayChange {
|
|
|
270
280
|
/**
|
|
271
281
|
* A change event for a notebook document.
|
|
272
282
|
*
|
|
273
|
-
* @since 3.17.0
|
|
283
|
+
* @since 3.17.0
|
|
284
|
+
* @proposed
|
|
274
285
|
*/
|
|
275
|
-
export
|
|
286
|
+
export declare type NotebookDocumentChangeEvent = {
|
|
276
287
|
/**
|
|
277
288
|
* The changed meta data if any.
|
|
278
289
|
*/
|
|
@@ -312,13 +323,14 @@ export interface NotebookDocumentChangeEvent {
|
|
|
312
323
|
changes: TextDocumentContentChangeEvent[];
|
|
313
324
|
}[];
|
|
314
325
|
};
|
|
315
|
-
}
|
|
326
|
+
};
|
|
316
327
|
/**
|
|
317
328
|
* The params sent in a change notebook document notification.
|
|
318
329
|
*
|
|
319
|
-
* @since 3.17.0
|
|
330
|
+
* @since 3.17.0
|
|
331
|
+
* @proposed
|
|
320
332
|
*/
|
|
321
|
-
export
|
|
333
|
+
export declare type DidChangeNotebookDocumentParams = {
|
|
322
334
|
/**
|
|
323
335
|
* The notebook document that did change. The version number points
|
|
324
336
|
* to the version after all provided changes have been applied. If
|
|
@@ -342,7 +354,7 @@ export interface DidChangeNotebookDocumentParams {
|
|
|
342
354
|
* you receive them.
|
|
343
355
|
*/
|
|
344
356
|
change: NotebookDocumentChangeEvent;
|
|
345
|
-
}
|
|
357
|
+
};
|
|
346
358
|
export declare namespace DidChangeNotebookDocumentNotification {
|
|
347
359
|
const method: 'notebookDocument/didChange';
|
|
348
360
|
const type: ProtocolNotificationType<DidChangeNotebookDocumentParams, void>;
|
|
@@ -350,18 +362,20 @@ export declare namespace DidChangeNotebookDocumentNotification {
|
|
|
350
362
|
/**
|
|
351
363
|
* The params sent in a save notebook document notification.
|
|
352
364
|
*
|
|
353
|
-
* @since 3.17.0
|
|
365
|
+
* @since 3.17.0
|
|
366
|
+
* @proposed
|
|
354
367
|
*/
|
|
355
|
-
export
|
|
368
|
+
export declare type DidSaveNotebookDocumentParams = {
|
|
356
369
|
/**
|
|
357
370
|
* The notebook document that got saved.
|
|
358
371
|
*/
|
|
359
372
|
notebookDocument: NotebookDocumentIdentifier;
|
|
360
|
-
}
|
|
373
|
+
};
|
|
361
374
|
/**
|
|
362
375
|
* A notification sent when a notebook document is saved.
|
|
363
376
|
*
|
|
364
|
-
* @since 3.17.0
|
|
377
|
+
* @since 3.17.0
|
|
378
|
+
* @proposed
|
|
365
379
|
*/
|
|
366
380
|
export declare namespace DidSaveNotebookDocumentNotification {
|
|
367
381
|
const method: 'notebookDocument/didSave';
|
|
@@ -370,9 +384,10 @@ export declare namespace DidSaveNotebookDocumentNotification {
|
|
|
370
384
|
/**
|
|
371
385
|
* The params sent in a close notebook document notification.
|
|
372
386
|
*
|
|
373
|
-
* @since 3.17.0
|
|
387
|
+
* @since 3.17.0
|
|
388
|
+
* @proposed
|
|
374
389
|
*/
|
|
375
|
-
export
|
|
390
|
+
export declare type DidCloseNotebookDocumentParams = {
|
|
376
391
|
/**
|
|
377
392
|
* The notebook document that got closed.
|
|
378
393
|
*/
|
|
@@ -382,62 +397,14 @@ export interface DidCloseNotebookDocumentParams {
|
|
|
382
397
|
* of a notebook cell that got closed.
|
|
383
398
|
*/
|
|
384
399
|
cellTextDocuments: TextDocumentIdentifier[];
|
|
385
|
-
}
|
|
400
|
+
};
|
|
386
401
|
/**
|
|
387
402
|
* A notification sent when a notebook closes.
|
|
388
403
|
*
|
|
389
|
-
* @since 3.17.0
|
|
404
|
+
* @since 3.17.0
|
|
405
|
+
* @proposed
|
|
390
406
|
*/
|
|
391
407
|
export declare namespace DidCloseNotebookDocumentNotification {
|
|
392
408
|
const method: 'notebookDocument/didClose';
|
|
393
409
|
const type: ProtocolNotificationType<DidCloseNotebookDocumentParams, void>;
|
|
394
410
|
}
|
|
395
|
-
/**
|
|
396
|
-
* A notebook controller represents an entity that can execute
|
|
397
|
-
* notebook cells. This is often referred to as a kernel.
|
|
398
|
-
*
|
|
399
|
-
* There can be multiple controllers and the editor will let
|
|
400
|
-
* users choose which controller to use for a certain notebook.
|
|
401
|
-
*/
|
|
402
|
-
export interface NotebookController {
|
|
403
|
-
/**
|
|
404
|
-
* The identifier of this notebook controller.
|
|
405
|
-
*
|
|
406
|
-
* _Note_ that controllers are usually remembered
|
|
407
|
-
* by their identifier and that clients should use
|
|
408
|
-
* stable identifiers.
|
|
409
|
-
*/
|
|
410
|
-
id: string;
|
|
411
|
-
/**
|
|
412
|
-
* Additional metadata associated with
|
|
413
|
-
* this controller.
|
|
414
|
-
*/
|
|
415
|
-
metadata?: LSPObject;
|
|
416
|
-
}
|
|
417
|
-
export declare namespace NotebookController {
|
|
418
|
-
function create(id: string, metadata?: LSPObject): NotebookController;
|
|
419
|
-
function is(value: any): value is NotebookController;
|
|
420
|
-
}
|
|
421
|
-
export interface DidSelectNotebookControllerParams {
|
|
422
|
-
/**
|
|
423
|
-
* The notebook document
|
|
424
|
-
*/
|
|
425
|
-
notebookDocument: NotebookDocumentIdentifier;
|
|
426
|
-
/**
|
|
427
|
-
* The selected controller
|
|
428
|
-
*/
|
|
429
|
-
controller: NotebookController;
|
|
430
|
-
/**
|
|
431
|
-
* Whether the controller has been selected
|
|
432
|
-
* or unselected.
|
|
433
|
-
*/
|
|
434
|
-
selected: boolean;
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* A notification send when a controller got selected
|
|
438
|
-
* for a specific notebook.
|
|
439
|
-
*/
|
|
440
|
-
export declare namespace DidSelectNotebookControllerNotification {
|
|
441
|
-
const method: 'notebookDocument/didSelectNotebookController';
|
|
442
|
-
const type: ProtocolNotificationType<DidSelectNotebookControllerParams, void>;
|
|
443
|
-
}
|
|
@@ -4,14 +4,15 @@
|
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
7
|
+
exports.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.ExecutionSummary = exports.NotebookCellKind = void 0;
|
|
8
8
|
const vscode_languageserver_types_1 = require("vscode-languageserver-types");
|
|
9
9
|
const Is = require("./utils/is");
|
|
10
10
|
const messages_1 = require("./messages");
|
|
11
11
|
/**
|
|
12
12
|
* A notebook cell kind.
|
|
13
13
|
*
|
|
14
|
-
* @since 3.17.0
|
|
14
|
+
* @since 3.17.0
|
|
15
|
+
* @proposed
|
|
15
16
|
*/
|
|
16
17
|
var NotebookCellKind;
|
|
17
18
|
(function (NotebookCellKind) {
|
|
@@ -66,13 +67,26 @@ var NotebookCell;
|
|
|
66
67
|
(candidate.metadata === undefined || Is.objectLiteral(candidate.metadata));
|
|
67
68
|
}
|
|
68
69
|
NotebookCell.is = is;
|
|
69
|
-
function
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
function diff(one, two) {
|
|
71
|
+
const result = new Set();
|
|
72
|
+
if (one.document !== two.document) {
|
|
73
|
+
result.add('document');
|
|
74
|
+
}
|
|
75
|
+
if (one.kind !== two.kind) {
|
|
76
|
+
result.add('kind');
|
|
77
|
+
}
|
|
78
|
+
if (one.executionSummary !== two.executionSummary) {
|
|
79
|
+
result.add('executionSummary');
|
|
80
|
+
}
|
|
81
|
+
if ((one.metadata !== undefined || two.metadata !== undefined) && !equalsMetadata(one.metadata, two.metadata)) {
|
|
82
|
+
result.add('metadata');
|
|
83
|
+
}
|
|
84
|
+
if ((one.executionSummary !== undefined || two.executionSummary !== undefined) && !ExecutionSummary.equals(one.executionSummary, two.executionSummary)) {
|
|
85
|
+
result.add('executionSummary');
|
|
72
86
|
}
|
|
73
|
-
return
|
|
87
|
+
return result;
|
|
74
88
|
}
|
|
75
|
-
NotebookCell.
|
|
89
|
+
NotebookCell.diff = diff;
|
|
76
90
|
function equalsMetadata(one, other) {
|
|
77
91
|
if (one === other) {
|
|
78
92
|
return true;
|
|
@@ -121,26 +135,6 @@ var NotebookCell;
|
|
|
121
135
|
}
|
|
122
136
|
return true;
|
|
123
137
|
}
|
|
124
|
-
function diff(one, two) {
|
|
125
|
-
const result = new Set();
|
|
126
|
-
if (one.document !== two.document) {
|
|
127
|
-
result.add('document');
|
|
128
|
-
}
|
|
129
|
-
if (one.kind !== two.kind) {
|
|
130
|
-
result.add('kind');
|
|
131
|
-
}
|
|
132
|
-
if (one.executionSummary !== two.executionSummary) {
|
|
133
|
-
result.add('executionSummary');
|
|
134
|
-
}
|
|
135
|
-
if ((one.metadata !== undefined || two.metadata !== undefined) && !equalsMetadata(one.metadata, two.metadata)) {
|
|
136
|
-
result.add('metadata');
|
|
137
|
-
}
|
|
138
|
-
if ((one.executionSummary !== undefined || two.executionSummary !== undefined) && !ExecutionSummary.equals(one.executionSummary, two.executionSummary)) {
|
|
139
|
-
result.add('executionSummary');
|
|
140
|
-
}
|
|
141
|
-
return result;
|
|
142
|
-
}
|
|
143
|
-
NotebookCell.diff = diff;
|
|
144
138
|
})(NotebookCell = exports.NotebookCell || (exports.NotebookCell = {}));
|
|
145
139
|
var NotebookDocument;
|
|
146
140
|
(function (NotebookDocument) {
|
|
@@ -162,7 +156,8 @@ var NotebookDocumentSyncRegistrationType;
|
|
|
162
156
|
/**
|
|
163
157
|
* A notification sent when a notebook opens.
|
|
164
158
|
*
|
|
165
|
-
* @since 3.17.0
|
|
159
|
+
* @since 3.17.0
|
|
160
|
+
* @proposed
|
|
166
161
|
*/
|
|
167
162
|
var DidOpenNotebookDocumentNotification;
|
|
168
163
|
(function (DidOpenNotebookDocumentNotification) {
|
|
@@ -193,7 +188,8 @@ var DidChangeNotebookDocumentNotification;
|
|
|
193
188
|
/**
|
|
194
189
|
* A notification sent when a notebook document is saved.
|
|
195
190
|
*
|
|
196
|
-
* @since 3.17.0
|
|
191
|
+
* @since 3.17.0
|
|
192
|
+
* @proposed
|
|
197
193
|
*/
|
|
198
194
|
var DidSaveNotebookDocumentNotification;
|
|
199
195
|
(function (DidSaveNotebookDocumentNotification) {
|
|
@@ -203,36 +199,12 @@ var DidSaveNotebookDocumentNotification;
|
|
|
203
199
|
/**
|
|
204
200
|
* A notification sent when a notebook closes.
|
|
205
201
|
*
|
|
206
|
-
* @since 3.17.0
|
|
202
|
+
* @since 3.17.0
|
|
203
|
+
* @proposed
|
|
207
204
|
*/
|
|
208
205
|
var DidCloseNotebookDocumentNotification;
|
|
209
206
|
(function (DidCloseNotebookDocumentNotification) {
|
|
210
207
|
DidCloseNotebookDocumentNotification.method = 'notebookDocument/didClose';
|
|
211
208
|
DidCloseNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseNotebookDocumentNotification.method);
|
|
212
209
|
})(DidCloseNotebookDocumentNotification = exports.DidCloseNotebookDocumentNotification || (exports.DidCloseNotebookDocumentNotification = {}));
|
|
213
|
-
|
|
214
|
-
(function (NotebookController) {
|
|
215
|
-
function create(id, metadata) {
|
|
216
|
-
const result = { id };
|
|
217
|
-
if (metadata !== undefined) {
|
|
218
|
-
result.metadata = metadata;
|
|
219
|
-
}
|
|
220
|
-
return result;
|
|
221
|
-
}
|
|
222
|
-
NotebookController.create = create;
|
|
223
|
-
function is(value) {
|
|
224
|
-
const candidate = value;
|
|
225
|
-
return Is.objectLiteral(candidate) && Is.string(candidate.id) && (candidate.metadata === undefined || Is.objectLiteral(candidate.metadata));
|
|
226
|
-
}
|
|
227
|
-
NotebookController.is = is;
|
|
228
|
-
})(NotebookController = exports.NotebookController || (exports.NotebookController = {}));
|
|
229
|
-
/**
|
|
230
|
-
* A notification send when a controller got selected
|
|
231
|
-
* for a specific notebook.
|
|
232
|
-
*/
|
|
233
|
-
var DidSelectNotebookControllerNotification;
|
|
234
|
-
(function (DidSelectNotebookControllerNotification) {
|
|
235
|
-
DidSelectNotebookControllerNotification.method = 'notebookDocument/didSelectNotebookController';
|
|
236
|
-
DidSelectNotebookControllerNotification.type = new messages_1.ProtocolNotificationType(DidSelectNotebookControllerNotification.method);
|
|
237
|
-
})(DidSelectNotebookControllerNotification = exports.DidSelectNotebookControllerNotification || (exports.DidSelectNotebookControllerNotification = {}));
|
|
238
|
-
//# sourceMappingURL=proposed.notebooks.js.map
|
|
210
|
+
//# sourceMappingURL=proposed.notebook.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.16.0
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
export interface DocumentColorClientCapabilities {
|
|
6
6
|
/**
|
|
7
7
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
import { RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
2
2
|
import { LSPAny } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { PartialResultParams } from './protocol';
|
|
5
|
-
export interface ConfigurationClientCapabilities {
|
|
6
|
-
/**
|
|
7
|
-
* The workspace client capabilities
|
|
8
|
-
*/
|
|
9
|
-
workspace?: {
|
|
10
|
-
/**
|
|
11
|
-
* The client supports `workspace/configuration` requests.
|
|
12
|
-
*
|
|
13
|
-
* @since 3.6.0
|
|
14
|
-
*/
|
|
15
|
-
configuration?: boolean;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
4
|
+
import type { PartialResultParams } from './protocol';
|
|
18
5
|
/**
|
|
19
6
|
* The 'workspace/configuration' request is sent from the server to the client to fetch a certain
|
|
20
7
|
* configuration setting.
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.ConfigurationRequest = void 0;
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
|
+
//---- Get Configuration request ----
|
|
9
10
|
/**
|
|
10
11
|
* The 'workspace/configuration' request is sent from the server to the client to fetch a certain
|
|
11
12
|
* configuration setting.
|