vscode-languageserver-protocol 3.17.0-next.14 → 3.17.0-next.15

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.
@@ -123,8 +123,4 @@ export declare namespace Proposed {
123
123
  const DidSaveNotebookDocumentNotification: typeof nb.DidSaveNotebookDocumentNotification;
124
124
  type DidCloseNotebookDocumentParams = nb.DidCloseNotebookDocumentParams;
125
125
  const DidCloseNotebookDocumentNotification: typeof nb.DidCloseNotebookDocumentNotification;
126
- type NotebookController = nb.NotebookController;
127
- const NotebookController: typeof nb.NotebookController;
128
- type DidSelectNotebookControllerParams = nb.DidSelectNotebookControllerParams;
129
- const DidSelectNotebookControllerNotification: typeof nb.DidSelectNotebookControllerNotification;
130
126
  }
package/lib/common/api.js CHANGED
@@ -95,7 +95,5 @@ var Proposed;
95
95
  Proposed.DidChangeNotebookDocumentNotification = nb.DidChangeNotebookDocumentNotification;
96
96
  Proposed.DidSaveNotebookDocumentNotification = nb.DidSaveNotebookDocumentNotification;
97
97
  Proposed.DidCloseNotebookDocumentNotification = nb.DidCloseNotebookDocumentNotification;
98
- Proposed.NotebookController = nb.NotebookController;
99
- Proposed.DidSelectNotebookControllerNotification = nb.DidSelectNotebookControllerNotification;
100
98
  })(Proposed = exports.Proposed || (exports.Proposed = {}));
101
99
  //# sourceMappingURL=api.js.map
@@ -5,7 +5,7 @@ import { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams,
5
5
  /**
6
6
  * @since 3.17.0 - proposed state
7
7
  */
8
- export interface DiagnosticClientCapabilities {
8
+ export declare type DiagnosticClientCapabilities = {
9
9
  /**
10
10
  * Whether implementation supports dynamic registration. If this is set to `true`
11
11
  * the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
@@ -16,18 +16,18 @@ export interface DiagnosticClientCapabilities {
16
16
  * Whether the clients supports related documents for document diagnostic pulls.
17
17
  */
18
18
  relatedDocumentSupport?: boolean;
19
- }
20
- export interface $DiagnosticClientCapabilities {
19
+ };
20
+ export declare type $DiagnosticClientCapabilities = {
21
21
  textDocument?: TextDocumentClientCapabilities & {
22
22
  diagnostic?: DiagnosticClientCapabilities;
23
23
  };
24
- }
24
+ };
25
25
  /**
26
26
  * Diagnostic options.
27
27
  *
28
28
  * @since 3.17.0 - proposed state
29
29
  */
30
- export interface DiagnosticOptions extends WorkDoneProgressOptions {
30
+ export declare type DiagnosticOptions = WorkDoneProgressOptions & {
31
31
  /**
32
32
  * An optional identifier under which the diagnostics are
33
33
  * managed by the client.
@@ -44,25 +44,24 @@ export interface DiagnosticOptions extends WorkDoneProgressOptions {
44
44
  * The server provides support for workspace diagnostics as well.
45
45
  */
46
46
  workspaceDiagnostics: boolean;
47
- }
47
+ };
48
48
  /**
49
49
  * Diagnostic registration options.
50
50
  *
51
51
  * @since 3.17.0 - proposed state
52
52
  */
53
- export interface DiagnosticRegistrationOptions extends TextDocumentRegistrationOptions, DiagnosticOptions, StaticRegistrationOptions {
54
- }
55
- export interface $DiagnosticServerCapabilities {
53
+ export declare type DiagnosticRegistrationOptions = TextDocumentRegistrationOptions & DiagnosticOptions & StaticRegistrationOptions;
54
+ export declare type $DiagnosticServerCapabilities = {
56
55
  diagnosticProvider?: DiagnosticOptions;
57
- }
56
+ };
58
57
  /**
59
58
  * Cancellation data returned from a diagnostic request.
60
59
  *
61
60
  * @since 3.17.0 - proposed state
62
61
  */
63
- export interface DiagnosticServerCancellationData {
62
+ export declare type DiagnosticServerCancellationData = {
64
63
  retriggerRequest: boolean;
65
- }
64
+ };
66
65
  /**
67
66
  * @since 3.17.0 - proposed state
68
67
  */
@@ -74,7 +73,7 @@ export declare namespace DiagnosticServerCancellationData {
74
73
  *
75
74
  * @since 3.17.0 - proposed state
76
75
  */
77
- export interface DocumentDiagnosticParams extends WorkDoneProgressParams, PartialResultParams {
76
+ export declare type DocumentDiagnosticParams = WorkDoneProgressParams & PartialResultParams & {
78
77
  /**
79
78
  * The text document.
80
79
  */
@@ -87,7 +86,7 @@ export interface DocumentDiagnosticParams extends WorkDoneProgressParams, Partia
87
86
  * The result id of a previous response if provided.
88
87
  */
89
88
  previousResultId?: string;
90
- }
89
+ };
91
90
  /**
92
91
  * The document diagnostic report kinds.
93
92
  *
@@ -110,7 +109,7 @@ export declare enum DocumentDiagnosticReportKind {
110
109
  *
111
110
  * @since 3.17.0 - proposed state
112
111
  */
113
- export interface FullDocumentDiagnosticReport {
112
+ export declare type FullDocumentDiagnosticReport = {
114
113
  /**
115
114
  * A full document diagnostic report.
116
115
  */
@@ -125,13 +124,13 @@ export interface FullDocumentDiagnosticReport {
125
124
  * The actual items.
126
125
  */
127
126
  items: Diagnostic[];
128
- }
127
+ };
129
128
  /**
130
129
  * A full diagnostic report with a set of related documents.
131
130
  *
132
131
  * @since 3.17.0 - proposed state
133
132
  */
134
- export interface RelatedFullDocumentDiagnosticReport extends FullDocumentDiagnosticReport {
133
+ export declare type RelatedFullDocumentDiagnosticReport = FullDocumentDiagnosticReport & {
135
134
  /**
136
135
  * Diagnostics of related documents. This information is useful
137
136
  * in programming languages where code in a file A can generate
@@ -144,14 +143,14 @@ export interface RelatedFullDocumentDiagnosticReport extends FullDocumentDiagnos
144
143
  relatedDocuments?: {
145
144
  [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
146
145
  };
147
- }
146
+ };
148
147
  /**
149
148
  * A diagnostic report indicating that the last returned
150
149
  * report is still accurate.
151
150
  *
152
151
  * @since 3.17.0 - proposed state
153
152
  */
154
- export interface UnchangedDocumentDiagnosticReport {
153
+ export declare type UnchangedDocumentDiagnosticReport = {
155
154
  /**
156
155
  * A document diagnostic report indicating
157
156
  * no changes to the last result. A server can
@@ -164,13 +163,13 @@ export interface UnchangedDocumentDiagnosticReport {
164
163
  * diagnostic request for the same document.
165
164
  */
166
165
  resultId: string;
167
- }
166
+ };
168
167
  /**
169
168
  * An unchanged diagnostic report with a set of related documents.
170
169
  *
171
170
  * @since 3.17.0 - proposed state
172
171
  */
173
- export interface RelatedUnchangedDocumentDiagnosticReport extends UnchangedDocumentDiagnosticReport {
172
+ export declare type RelatedUnchangedDocumentDiagnosticReport = UnchangedDocumentDiagnosticReport & {
174
173
  /**
175
174
  * Diagnostics of related documents. This information is useful
176
175
  * in programming languages where code in a file A can generate
@@ -183,7 +182,7 @@ export interface RelatedUnchangedDocumentDiagnosticReport extends UnchangedDocum
183
182
  relatedDocuments?: {
184
183
  [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
185
184
  };
186
- }
185
+ };
187
186
  /**
188
187
  * The result of a document diagnostic pull request. A report can
189
188
  * either be a full report containing all diagnostics for the
@@ -199,11 +198,11 @@ export declare type DocumentDiagnosticReport = RelatedFullDocumentDiagnosticRepo
199
198
  *
200
199
  * @since 3.17.0 - proposed state
201
200
  */
202
- export interface DocumentDiagnosticReportPartialResult {
201
+ export declare type DocumentDiagnosticReportPartialResult = {
203
202
  relatedDocuments: {
204
203
  [uri: string /** DocumentUri */]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
205
204
  };
206
- }
205
+ };
207
206
  /**
208
207
  * The document diagnostic request definition.
209
208
  *
@@ -236,7 +235,7 @@ export declare type PreviousResultId = {
236
235
  *
237
236
  * @since 3.17.0 - proposed state
238
237
  */
239
- export interface WorkspaceDiagnosticParams extends WorkDoneProgressParams, PartialResultParams {
238
+ export declare type WorkspaceDiagnosticParams = WorkDoneProgressParams & PartialResultParams & {
240
239
  /**
241
240
  * The additional identifier provided during registration.
242
241
  */
@@ -246,13 +245,13 @@ export interface WorkspaceDiagnosticParams extends WorkDoneProgressParams, Parti
246
245
  * previous result ids.
247
246
  */
248
247
  previousResultIds: PreviousResultId[];
249
- }
248
+ };
250
249
  /**
251
250
  * A full document diagnostic report for a workspace diagnostic result.
252
251
  *
253
252
  * @since 3.17.0 - proposed state
254
253
  */
255
- export interface WorkspaceFullDocumentDiagnosticReport extends FullDocumentDiagnosticReport {
254
+ export declare type WorkspaceFullDocumentDiagnosticReport = FullDocumentDiagnosticReport & {
256
255
  /**
257
256
  * The URI for which diagnostic information is reported.
258
257
  */
@@ -262,13 +261,13 @@ export interface WorkspaceFullDocumentDiagnosticReport extends FullDocumentDiagn
262
261
  * If the document is not marked as open `null` can be provided.
263
262
  */
264
263
  version: integer | null;
265
- }
264
+ };
266
265
  /**
267
266
  * An unchanged document diagnostic report for a workspace diagnostic result.
268
267
  *
269
268
  * @since 3.17.0 - proposed state
270
269
  */
271
- export interface WorkspaceUnchangedDocumentDiagnosticReport extends UnchangedDocumentDiagnosticReport {
270
+ export declare type WorkspaceUnchangedDocumentDiagnosticReport = UnchangedDocumentDiagnosticReport & {
272
271
  /**
273
272
  * The URI for which diagnostic information is reported.
274
273
  */
@@ -278,7 +277,7 @@ export interface WorkspaceUnchangedDocumentDiagnosticReport extends UnchangedDoc
278
277
  * If the document is not marked as open `null` can be provided.
279
278
  */
280
279
  version: integer | null;
281
- }
280
+ };
282
281
  /**
283
282
  * A workspace diagnostic document report.
284
283
  *
@@ -290,17 +289,17 @@ export declare type WorkspaceDocumentDiagnosticReport = WorkspaceFullDocumentDia
290
289
  *
291
290
  * @since 3.17.0 - proposed state
292
291
  */
293
- export interface WorkspaceDiagnosticReport {
292
+ export declare type WorkspaceDiagnosticReport = {
294
293
  items: WorkspaceDocumentDiagnosticReport[];
295
- }
294
+ };
296
295
  /**
297
296
  * A partial result for a workspace diagnostic report.
298
297
  *
299
298
  * @since 3.17.0 - proposed state
300
299
  */
301
- export interface WorkspaceDiagnosticReportPartialResult {
300
+ export declare type WorkspaceDiagnosticReportPartialResult = {
302
301
  items: WorkspaceDocumentDiagnosticReport[];
303
- }
302
+ };
304
303
  /**
305
304
  * The workspace diagnostic request definition.
306
305
  *
@@ -7,18 +7,18 @@ import { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistr
7
7
  *
8
8
  * @since 3.17.0 - proposed state
9
9
  */
10
- export interface InlineValuesClientCapabilities {
10
+ export declare type InlineValuesClientCapabilities = {
11
11
  /**
12
12
  * Whether implementation supports dynamic registration for inline value providers.
13
13
  */
14
14
  dynamicRegistration?: boolean;
15
- }
15
+ };
16
16
  /**
17
17
  * Client workspace capabilities specific to inline values.
18
18
  *
19
19
  * @since 3.17.0 - proposed state
20
20
  */
21
- export interface InlineValuesWorkspaceClientCapabilities {
21
+ export declare type InlineValuesWorkspaceClientCapabilities = {
22
22
  /**
23
23
  * Whether the client implementation supports a refresh request sent from the
24
24
  * server to the client.
@@ -29,27 +29,25 @@ export interface InlineValuesWorkspaceClientCapabilities {
29
29
  * change that requires such a calculation.
30
30
  */
31
31
  refreshSupport?: boolean;
32
- }
32
+ };
33
33
  /**
34
34
  * Inline values options used during static registration.
35
35
  *
36
36
  * @since 3.17.0 - proposed state
37
37
  */
38
- export interface InlineValuesOptions extends WorkDoneProgressOptions {
39
- }
38
+ export declare type InlineValuesOptions = WorkDoneProgressOptions;
40
39
  /**
41
40
  * Inline value options used during static or dynamic registration.
42
41
  *
43
42
  * @since 3.17.0 - proposed state
44
43
  */
45
- export interface InlineValuesRegistrationOptions extends InlineValuesOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions {
46
- }
44
+ export declare type InlineValuesRegistrationOptions = InlineValuesOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
47
45
  /**
48
46
  * A parameter literal used in inline values requests.
49
47
  *
50
48
  * @since 3.17.0 - proposed state
51
49
  */
52
- export interface InlineValuesParams extends WorkDoneProgressParams {
50
+ export declare type InlineValuesParams = WorkDoneProgressParams & {
53
51
  /**
54
52
  * The text document.
55
53
  */
@@ -63,7 +61,7 @@ export interface InlineValuesParams extends WorkDoneProgressParams {
63
61
  * requested.
64
62
  */
65
63
  context: InlineValuesContext;
66
- }
64
+ };
67
65
  /**
68
66
  * A request to provide inline values in a document. The request's parameter is of
69
67
  * type [InlineValuesParams](#InlineValuesParams), the response is of type
@@ -6,7 +6,7 @@ import { StaticRegistrationOptions, NotebookDocumentFilter, TextDocumentContentC
6
6
  *
7
7
  * @since 3.17.0 - proposed state
8
8
  */
9
- export interface NotebookDocumentSyncClientCapabilities {
9
+ export declare type NotebookDocumentSyncClientCapabilities = {
10
10
  /**
11
11
  * Whether implementation supports dynamic registration. If this is
12
12
  * set to `true` the client supports the new
@@ -18,12 +18,17 @@ export interface NotebookDocumentSyncClientCapabilities {
18
18
  * The client supports sending execution summary data per cell.
19
19
  */
20
20
  executionSummarySupport?: boolean;
21
- }
22
- export interface $NotebookDocumentClientCapabilities {
21
+ /**
22
+ * The client has support for notebook controllers and might
23
+ * send `DidSelectNotebookController` notifications.
24
+ */
25
+ notebookControllerSupport?: boolean;
26
+ };
27
+ export declare type $NotebookDocumentClientCapabilities = {
23
28
  notebookDocument?: {
24
29
  synchronization: NotebookDocumentSyncClientCapabilities;
25
30
  };
26
- }
31
+ };
27
32
  /**
28
33
  * A notebook cell kind.
29
34
  *
@@ -68,7 +73,7 @@ export declare namespace ExecutionSummary {
68
73
  *
69
74
  * @since 3.17.0 - proposed state
70
75
  */
71
- export interface NotebookCell {
76
+ export declare type NotebookCell = {
72
77
  /**
73
78
  * The cell's kind
74
79
  */
@@ -87,11 +92,10 @@ export interface NotebookCell {
87
92
  * if supported by the client.
88
93
  */
89
94
  executionSummary?: ExecutionSummary;
90
- }
95
+ };
91
96
  export declare namespace NotebookCell {
92
97
  function create(kind: NotebookCellKind, document: DocumentUri): NotebookCell;
93
98
  function is(value: any): value is NotebookCell;
94
- function equals(one: NotebookCell, other: NotebookCell, compareMetaData?: boolean): boolean;
95
99
  function diff(one: NotebookCell, two: NotebookCell): Set<keyof NotebookCell>;
96
100
  }
97
101
  /**
@@ -99,7 +103,7 @@ export declare namespace NotebookCell {
99
103
  *
100
104
  * @since 3.17.0 - proposed state
101
105
  */
102
- export interface NotebookDocument {
106
+ export declare type NotebookDocument = {
103
107
  /**
104
108
  * The notebook document's uri.
105
109
  */
@@ -122,7 +126,7 @@ export interface NotebookDocument {
122
126
  * The cells of a notebook.
123
127
  */
124
128
  cells: NotebookCell[];
125
- }
129
+ };
126
130
  export declare namespace NotebookDocument {
127
131
  function create(uri: URI, notebookType: string, version: integer, cells: NotebookCell[]): NotebookDocument;
128
132
  function is(value: any): value is NotebookDocument;
@@ -132,18 +136,18 @@ export declare namespace NotebookDocument {
132
136
  *
133
137
  * @since 3.17.0 - proposed state
134
138
  */
135
- export interface NotebookDocumentIdentifier {
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
148
  * @since 3.17.0 - proposed state
145
149
  */
146
- export interface VersionedNotebookDocumentIdentifier {
150
+ export declare type VersionedNotebookDocumentIdentifier = {
147
151
  /**
148
152
  * The version number of this notebook document.
149
153
  */
@@ -152,7 +156,7 @@ export interface VersionedNotebookDocumentIdentifier {
152
156
  * The notebook document's uri.
153
157
  */
154
158
  uri: URI;
155
- }
159
+ };
156
160
  /**
157
161
  * Options specific to a notebook plus its cells
158
162
  * to be synced to the server.
@@ -223,7 +227,7 @@ export declare namespace NotebookDocumentSyncRegistrationType {
223
227
  *
224
228
  * @since 3.17.0 - proposed state
225
229
  */
226
- export interface DidOpenNotebookDocumentParams {
230
+ export declare type DidOpenNotebookDocumentParams = {
227
231
  /**
228
232
  * The notebook document that got opened.
229
233
  */
@@ -233,7 +237,7 @@ export interface DidOpenNotebookDocumentParams {
233
237
  * of a notebook cell.
234
238
  */
235
239
  cellTextDocuments: TextDocumentItem[];
236
- }
240
+ };
237
241
  /**
238
242
  * A notification sent when a notebook opens.
239
243
  *
@@ -249,7 +253,7 @@ export declare namespace DidOpenNotebookDocumentNotification {
249
253
  *
250
254
  * @since 3.17.0 - proposed state
251
255
  */
252
- export interface NotebookCellArrayChange {
256
+ export declare type NotebookCellArrayChange = {
253
257
  /**
254
258
  * The start oftest of the cell that changed.
255
259
  */
@@ -262,7 +266,7 @@ export interface NotebookCellArrayChange {
262
266
  * The new cells, if any
263
267
  */
264
268
  cells?: NotebookCell[];
265
- }
269
+ };
266
270
  export declare namespace NotebookCellArrayChange {
267
271
  function is(value: any): value is NotebookCellArrayChange;
268
272
  function create(start: uinteger, deleteCount: uinteger, cells?: NotebookCell[]): NotebookCellArrayChange;
@@ -272,7 +276,7 @@ export declare namespace NotebookCellArrayChange {
272
276
  *
273
277
  * @since 3.17.0 - proposed state
274
278
  */
275
- export interface NotebookDocumentChangeEvent {
279
+ export declare type NotebookDocumentChangeEvent = {
276
280
  /**
277
281
  * The changed meta data if any.
278
282
  */
@@ -312,13 +316,13 @@ export interface NotebookDocumentChangeEvent {
312
316
  changes: TextDocumentContentChangeEvent[];
313
317
  }[];
314
318
  };
315
- }
319
+ };
316
320
  /**
317
321
  * The params sent in a change notebook document notification.
318
322
  *
319
323
  * @since 3.17.0 - proposed state
320
324
  */
321
- export interface DidChangeNotebookDocumentParams {
325
+ export declare type DidChangeNotebookDocumentParams = {
322
326
  /**
323
327
  * The notebook document that did change. The version number points
324
328
  * to the version after all provided changes have been applied. If
@@ -342,7 +346,7 @@ export interface DidChangeNotebookDocumentParams {
342
346
  * you receive them.
343
347
  */
344
348
  change: NotebookDocumentChangeEvent;
345
- }
349
+ };
346
350
  export declare namespace DidChangeNotebookDocumentNotification {
347
351
  const method: 'notebookDocument/didChange';
348
352
  const type: ProtocolNotificationType<DidChangeNotebookDocumentParams, void>;
@@ -352,12 +356,12 @@ export declare namespace DidChangeNotebookDocumentNotification {
352
356
  *
353
357
  * @since 3.17.0 - proposed state
354
358
  */
355
- export interface DidSaveNotebookDocumentParams {
359
+ export declare type DidSaveNotebookDocumentParams = {
356
360
  /**
357
361
  * The notebook document that got saved.
358
362
  */
359
363
  notebookDocument: NotebookDocumentIdentifier;
360
- }
364
+ };
361
365
  /**
362
366
  * A notification sent when a notebook document is saved.
363
367
  *
@@ -372,7 +376,7 @@ export declare namespace DidSaveNotebookDocumentNotification {
372
376
  *
373
377
  * @since 3.17.0 - proposed state
374
378
  */
375
- export interface DidCloseNotebookDocumentParams {
379
+ export declare type DidCloseNotebookDocumentParams = {
376
380
  /**
377
381
  * The notebook document that got closed.
378
382
  */
@@ -382,7 +386,7 @@ export interface DidCloseNotebookDocumentParams {
382
386
  * of a notebook cell that got closed.
383
387
  */
384
388
  cellTextDocuments: TextDocumentIdentifier[];
385
- }
389
+ };
386
390
  /**
387
391
  * A notification sent when a notebook closes.
388
392
  *
@@ -392,52 +396,3 @@ export declare namespace DidCloseNotebookDocumentNotification {
392
396
  const method: 'notebookDocument/didClose';
393
397
  const type: ProtocolNotificationType<DidCloseNotebookDocumentParams, void>;
394
398
  }
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,7 +4,7 @@
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.DidSelectNotebookControllerNotification = exports.NotebookController = exports.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.ExecutionSummary = exports.NotebookCellKind = void 0;
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");
@@ -66,13 +66,26 @@ var NotebookCell;
66
66
  (candidate.metadata === undefined || Is.objectLiteral(candidate.metadata));
67
67
  }
68
68
  NotebookCell.is = is;
69
- function equals(one, other, compareMetaData = true) {
70
- if (one.kind !== other.kind || one.document !== other.document) {
71
- return false;
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');
72
85
  }
73
- return !compareMetaData || (compareMetaData && equalsMetadata(one.metadata, other.metadata));
86
+ return result;
74
87
  }
75
- NotebookCell.equals = equals;
88
+ NotebookCell.diff = diff;
76
89
  function equalsMetadata(one, other) {
77
90
  if (one === other) {
78
91
  return true;
@@ -121,26 +134,6 @@ var NotebookCell;
121
134
  }
122
135
  return true;
123
136
  }
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
137
  })(NotebookCell = exports.NotebookCell || (exports.NotebookCell = {}));
145
138
  var NotebookDocument;
146
139
  (function (NotebookDocument) {
@@ -210,29 +203,4 @@ var DidCloseNotebookDocumentNotification;
210
203
  DidCloseNotebookDocumentNotification.method = 'notebookDocument/didClose';
211
204
  DidCloseNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseNotebookDocumentNotification.method);
212
205
  })(DidCloseNotebookDocumentNotification = exports.DidCloseNotebookDocumentNotification || (exports.DidCloseNotebookDocumentNotification = {}));
213
- var NotebookController;
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
206
  //# sourceMappingURL=proposed.notebooks.js.map
@@ -5,35 +5,32 @@ import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumen
5
5
  /**
6
6
  * @since 3.17.0 - proposed state
7
7
  */
8
- export interface TypeHierarchyClientCapabilities {
8
+ export declare type TypeHierarchyClientCapabilities = {
9
9
  /**
10
10
  * Whether implementation supports dynamic registration. If this is set to `true`
11
11
  * the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
12
12
  * return value for the corresponding server capability as well.
13
13
  */
14
14
  dynamicRegistration?: boolean;
15
- }
15
+ };
16
16
  /**
17
17
  * Type hierarchy options used during static registration.
18
18
  *
19
19
  * @since 3.17.0 - proposed state
20
20
  */
21
- export interface TypeHierarchyOptions extends WorkDoneProgressOptions {
22
- }
21
+ export declare type TypeHierarchyOptions = WorkDoneProgressOptions;
23
22
  /**
24
23
  * Type hierarchy options used during static or dynamic registration.
25
24
  *
26
25
  * @since 3.17.0 - proposed state
27
26
  */
28
- export interface TypeHierarchyRegistrationOptions extends TextDocumentRegistrationOptions, TypeHierarchyOptions, StaticRegistrationOptions {
29
- }
27
+ export declare type TypeHierarchyRegistrationOptions = TextDocumentRegistrationOptions & TypeHierarchyOptions & StaticRegistrationOptions;
30
28
  /**
31
29
  * The parameter of a `textDocument/prepareTypeHierarchy` request.
32
30
  *
33
31
  * @since 3.17.0 - proposed state
34
32
  */
35
- export interface TypeHierarchyPrepareParams extends TextDocumentPositionParams, WorkDoneProgressParams {
36
- }
33
+ export declare type TypeHierarchyPrepareParams = TextDocumentPositionParams & WorkDoneProgressParams;
37
34
  /**
38
35
  * A request to result a `TypeHierarchyItem` in a document at a given position.
39
36
  * Can be used as an input to a subtypes or supertypes type hierarchy.
@@ -50,9 +47,9 @@ export declare namespace TypeHierarchyPrepareRequest {
50
47
  *
51
48
  * @since 3.17.0 - proposed state
52
49
  */
53
- export interface TypeHierarchySupertypesParams extends WorkDoneProgressParams, PartialResultParams {
50
+ export declare type TypeHierarchySupertypesParams = WorkDoneProgressParams & PartialResultParams & {
54
51
  item: TypeHierarchyItem;
55
- }
52
+ };
56
53
  /**
57
54
  * A request to resolve the supertypes for a given `TypeHierarchyItem`.
58
55
  *
@@ -68,9 +65,9 @@ export declare namespace TypeHierarchySupertypesRequest {
68
65
  *
69
66
  * @since 3.17.0 - proposed state
70
67
  */
71
- export interface TypeHierarchySubtypesParams extends WorkDoneProgressParams, PartialResultParams {
68
+ export declare type TypeHierarchySubtypesParams = WorkDoneProgressParams & PartialResultParams & {
72
69
  item: TypeHierarchyItem;
73
- }
70
+ };
74
71
  /**
75
72
  * A request to resolve the subtypes for a given `TypeHierarchyItem`.
76
73
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vscode-languageserver-protocol",
3
3
  "description": "VSCode Language Server Protocol implementation",
4
- "version": "3.17.0-next.14",
4
+ "version": "3.17.0-next.15",
5
5
  "author": "Microsoft Corporation",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "typings": "./lib/common/api.d.ts",
20
20
  "dependencies": {
21
- "vscode-jsonrpc": "8.0.0-next.6",
22
- "vscode-languageserver-types": "3.17.0-next.7"
21
+ "vscode-jsonrpc": "8.0.0-next.7",
22
+ "vscode-languageserver-types": "3.17.0-next.8"
23
23
  },
24
24
  "scripts": {
25
25
  "prepublishOnly": "git clean -xfd . && npm install && npm run clean && npm run compile && npm test",