vscode-languageserver-protocol 3.17.0-next.13 → 3.17.0-next.16

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 (31) hide show
  1. package/lib/common/api.d.ts +1 -18
  2. package/lib/common/api.js +1 -8
  3. package/lib/common/proposed.diagnostic.d.ts +34 -35
  4. package/lib/common/{proposed.notebooks.d.ts → proposed.notebook.d.ts} +101 -57
  5. package/lib/common/{proposed.notebooks.js → proposed.notebook.js} +46 -7
  6. package/lib/common/protocol.callHierarchy.d.ts +1 -1
  7. package/lib/common/protocol.colorProvider.d.ts +1 -1
  8. package/lib/common/protocol.configuration.d.ts +1 -14
  9. package/lib/common/protocol.configuration.js +1 -0
  10. package/lib/common/protocol.d.ts +82 -61
  11. package/lib/common/protocol.declaration.d.ts +2 -2
  12. package/lib/common/protocol.declaration.js +2 -2
  13. package/lib/common/protocol.foldingRange.d.ts +1 -1
  14. package/lib/common/protocol.implementation.d.ts +1 -1
  15. package/lib/common/protocol.inlayHint.d.ts +107 -0
  16. package/lib/common/protocol.inlayHint.js +41 -0
  17. package/lib/common/{proposed.inlineValue.d.ts → protocol.inlineValue.d.ts} +23 -25
  18. package/lib/common/protocol.inlineValue.js +29 -0
  19. package/lib/common/protocol.js +19 -5
  20. package/lib/common/protocol.linkedEditingRange.d.ts +1 -1
  21. package/lib/common/protocol.moniker.d.ts +1 -1
  22. package/lib/common/protocol.progress.d.ts +0 -14
  23. package/lib/common/protocol.selectionRange.d.ts +1 -1
  24. package/lib/common/protocol.semanticTokens.d.ts +1 -1
  25. package/lib/common/protocol.typeDefinition.d.ts +1 -1
  26. package/lib/common/{proposed.typeHierarchy.d.ts → protocol.typeHierarchy.d.ts} +10 -13
  27. package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +1 -1
  28. package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -31
  29. package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
  30. package/package.json +3 -3
  31. package/lib/common/proposed.inlineValue.js +0 -29
@@ -54,9 +54,7 @@ export declare namespace LSPErrorCodes {
54
54
  const lspReservedErrorRangeEnd: integer;
55
55
  }
56
56
  import * as diag from './proposed.diagnostic';
57
- import * as typeh from './proposed.typeHierarchy';
58
- import * as iv from './proposed.inlineValue';
59
- import * as nb from './proposed.notebooks';
57
+ import * as nb from './proposed.notebook';
60
58
  export declare namespace Proposed {
61
59
  type DiagnosticClientCapabilities = diag.DiagnosticClientCapabilities;
62
60
  type $DiagnosticClientCapabilities = diag.$DiagnosticClientCapabilities;
@@ -84,21 +82,6 @@ export declare namespace Proposed {
84
82
  type WorkspaceDiagnosticReportPartialResult = diag.WorkspaceDiagnosticReportPartialResult;
85
83
  const WorkspaceDiagnosticRequest: typeof diag.WorkspaceDiagnosticRequest;
86
84
  const DiagnosticRefreshRequest: typeof diag.DiagnosticRefreshRequest;
87
- type TypeHierarchyClientCapabilities = typeh.TypeHierarchyClientCapabilities;
88
- type TypeHierarchyOptions = typeh.TypeHierarchyOptions;
89
- type TypeHierarchyRegistrationOptions = typeh.TypeHierarchyRegistrationOptions;
90
- type TypeHierarchyPrepareParams = typeh.TypeHierarchyPrepareParams;
91
- type TypeHierarchySupertypesParams = typeh.TypeHierarchySupertypesParams;
92
- type TypeHierarchySubtypesParams = typeh.TypeHierarchySubtypesParams;
93
- const TypeHierarchyPrepareRequest: typeof typeh.TypeHierarchyPrepareRequest;
94
- const TypeHierarchySupertypesRequest: typeof typeh.TypeHierarchySupertypesRequest;
95
- const TypeHierarchySubtypesRequest: typeof typeh.TypeHierarchySubtypesRequest;
96
- type InlineValuesClientCapabilities = iv.InlineValuesClientCapabilities;
97
- type InlineValuesOptions = iv.InlineValuesOptions;
98
- type InlineValuesRegistrationOptions = iv.InlineValuesRegistrationOptions;
99
- type InlineValuesParams = iv.InlineValuesParams;
100
- const InlineValuesRequest: typeof iv.InlineValuesRequest;
101
- const InlineValuesRefreshRequest: typeof iv.InlineValuesRefreshRequest;
102
85
  type $NotebookDocumentClientCapabilities = nb.$NotebookDocumentClientCapabilities;
103
86
  type NotebookDocumentSyncClientCapabilities = nb.NotebookDocumentSyncClientCapabilities;
104
87
  type $NotebookDocumentSyncServerCapabilities = nb.$NotebookDocumentSyncServerCapabilities;
package/lib/common/api.js CHANGED
@@ -72,9 +72,7 @@ var LSPErrorCodes;
72
72
  LSPErrorCodes.lspReservedErrorRangeEnd = -32800;
73
73
  })(LSPErrorCodes = exports.LSPErrorCodes || (exports.LSPErrorCodes = {}));
74
74
  const diag = require("./proposed.diagnostic");
75
- const typeh = require("./proposed.typeHierarchy");
76
- const iv = require("./proposed.inlineValue");
77
- const nb = require("./proposed.notebooks");
75
+ const nb = require("./proposed.notebook");
78
76
  var Proposed;
79
77
  (function (Proposed) {
80
78
  Proposed.DiagnosticServerCancellationData = diag.DiagnosticServerCancellationData;
@@ -82,11 +80,6 @@ var Proposed;
82
80
  Proposed.DocumentDiagnosticRequest = diag.DocumentDiagnosticRequest;
83
81
  Proposed.WorkspaceDiagnosticRequest = diag.WorkspaceDiagnosticRequest;
84
82
  Proposed.DiagnosticRefreshRequest = diag.DiagnosticRefreshRequest;
85
- Proposed.TypeHierarchyPrepareRequest = typeh.TypeHierarchyPrepareRequest;
86
- Proposed.TypeHierarchySupertypesRequest = typeh.TypeHierarchySupertypesRequest;
87
- Proposed.TypeHierarchySubtypesRequest = typeh.TypeHierarchySubtypesRequest;
88
- Proposed.InlineValuesRequest = iv.InlineValuesRequest;
89
- Proposed.InlineValuesRefreshRequest = iv.InlineValuesRefreshRequest;
90
83
  Proposed.NotebookCellKind = nb.NotebookCellKind;
91
84
  Proposed.NotebookCell = nb.NotebookCell;
92
85
  Proposed.NotebookDocument = nb.NotebookDocument;
@@ -1,11 +1,11 @@
1
1
  import { RequestHandler0, RequestHandler, ProgressType } from 'vscode-jsonrpc';
2
2
  import { TextDocumentIdentifier, Diagnostic, DocumentUri, integer } from 'vscode-languageserver-types';
3
3
  import { ProtocolRequestType0, ProtocolRequestType } from './messages';
4
- import { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, TextDocumentClientCapabilities } from './protocol';
4
+ import type { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, TextDocumentClientCapabilities } from './protocol';
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
  *
@@ -1,12 +1,12 @@
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
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
@@ -14,12 +14,16 @@ export interface NotebookDocumentSyncClientCapabilities {
14
14
  * return value for the corresponding server capability as well.
15
15
  */
16
16
  dynamicRegistration?: boolean;
17
- }
18
- export interface $NotebookDocumentClientCapabilities {
17
+ /**
18
+ * The client supports sending execution summary data per cell.
19
+ */
20
+ executionSummarySupport?: boolean;
21
+ };
22
+ export declare type $NotebookDocumentClientCapabilities = {
19
23
  notebookDocument?: {
20
24
  synchronization: NotebookDocumentSyncClientCapabilities;
21
25
  };
22
- }
26
+ };
23
27
  /**
24
28
  * A notebook cell kind.
25
29
  *
@@ -37,6 +41,24 @@ export declare namespace NotebookCellKind {
37
41
  function is(value: any): value is NotebookCellKind;
38
42
  }
39
43
  export declare type NotebookCellKind = 1 | 2;
44
+ export declare type ExecutionSummary = {
45
+ /**
46
+ * A strict monotonically increasing value
47
+ * indicating the execution order of a cell
48
+ * inside a notebook.
49
+ */
50
+ executionOrder: uinteger;
51
+ /**
52
+ * Whether the execution was successful or
53
+ * not if known by the client.
54
+ */
55
+ success?: boolean;
56
+ };
57
+ export declare namespace ExecutionSummary {
58
+ function create(executionOrder: number, success?: boolean): ExecutionSummary;
59
+ function is(value: any): value is ExecutionSummary;
60
+ function equals(one: ExecutionSummary | undefined, other: ExecutionSummary | undefined): boolean;
61
+ }
40
62
  /**
41
63
  * A notebook cell.
42
64
  *
@@ -46,7 +68,7 @@ export declare type NotebookCellKind = 1 | 2;
46
68
  *
47
69
  * @since 3.17.0 - proposed state
48
70
  */
49
- export interface NotebookCell {
71
+ export declare type NotebookCell = {
50
72
  /**
51
73
  * The cell's kind
52
74
  */
@@ -60,18 +82,23 @@ export interface NotebookCell {
60
82
  * Additional metadata stored with the cell.
61
83
  */
62
84
  metadata?: LSPObject;
63
- }
85
+ /**
86
+ * Additional execution summary information
87
+ * if supported by the client.
88
+ */
89
+ executionSummary?: ExecutionSummary;
90
+ };
64
91
  export declare namespace NotebookCell {
65
92
  function create(kind: NotebookCellKind, document: DocumentUri): NotebookCell;
66
93
  function is(value: any): value is NotebookCell;
67
- function equals(one: NotebookCell, other: NotebookCell, compareMetaData?: boolean): boolean;
94
+ function diff(one: NotebookCell, two: NotebookCell): Set<keyof NotebookCell>;
68
95
  }
69
96
  /**
70
97
  * A notebook document.
71
98
  *
72
99
  * @since 3.17.0 - proposed state
73
100
  */
74
- export interface NotebookDocument {
101
+ export declare type NotebookDocument = {
75
102
  /**
76
103
  * The notebook document's uri.
77
104
  */
@@ -94,7 +121,7 @@ export interface NotebookDocument {
94
121
  * The cells of a notebook.
95
122
  */
96
123
  cells: NotebookCell[];
97
- }
124
+ };
98
125
  export declare namespace NotebookDocument {
99
126
  function create(uri: URI, notebookType: string, version: integer, cells: NotebookCell[]): NotebookDocument;
100
127
  function is(value: any): value is NotebookDocument;
@@ -104,18 +131,18 @@ export declare namespace NotebookDocument {
104
131
  *
105
132
  * @since 3.17.0 - proposed state
106
133
  */
107
- export interface NotebookDocumentIdentifier {
134
+ export declare type NotebookDocumentIdentifier = {
108
135
  /**
109
136
  * The notebook document's uri.
110
137
  */
111
138
  uri: URI;
112
- }
139
+ };
113
140
  /**
114
141
  * A versioned notebook document identifier.
115
142
  *
116
143
  * @since 3.17.0 - proposed state
117
144
  */
118
- export interface VersionedNotebookDocumentIdentifier {
145
+ export declare type VersionedNotebookDocumentIdentifier = {
119
146
  /**
120
147
  * The version number of this notebook document.
121
148
  */
@@ -124,7 +151,7 @@ export interface VersionedNotebookDocumentIdentifier {
124
151
  * The notebook document's uri.
125
152
  */
126
153
  uri: URI;
127
- }
154
+ };
128
155
  /**
129
156
  * Options specific to a notebook plus its cells
130
157
  * to be synced to the server.
@@ -142,20 +169,32 @@ export interface VersionedNotebookDocumentIdentifier {
142
169
  */
143
170
  export declare type NotebookDocumentSyncOptions = {
144
171
  /**
145
- * The notebook document to be synced
172
+ * The notebooks to be synced
146
173
  */
147
- notebookDocumentSelector: ({
148
- /** The notebook documents to be synced */
149
- notebookDocumentFilter: NotebookDocumentFilter;
150
- /** The cells of the matching notebook to be synced */
151
- cellSelector?: {
174
+ notebookSelector: ({
175
+ /**
176
+ * The notebook to be synced If a string
177
+ * value is provided it matches against the
178
+ * notebook type. '*' matches every notebook.
179
+ */
180
+ notebook: string | NotebookDocumentFilter;
181
+ /**
182
+ * The cells of the matching notebook to be synced.
183
+ */
184
+ cells?: {
152
185
  language: string;
153
186
  }[];
154
187
  } | {
155
- /** The notebook documents to be synced */
156
- notebookDocumentFilter?: NotebookDocumentFilter;
157
- /** The cells of the matching notebook to be synced */
158
- cellSelector: {
188
+ /**
189
+ * The notebook to be synced If a string
190
+ * value is provided it matches against the
191
+ * notebook type. '*' matches every notebook.
192
+ */
193
+ notebook?: string | NotebookDocumentFilter;
194
+ /**
195
+ * The cells of the matching notebook to be synced.
196
+ */
197
+ cells: {
159
198
  language: string;
160
199
  }[];
161
200
  })[];
@@ -195,7 +234,7 @@ export declare namespace NotebookDocumentSyncRegistrationType {
195
234
  *
196
235
  * @since 3.17.0 - proposed state
197
236
  */
198
- export interface DidOpenNotebookDocumentParams {
237
+ export declare type DidOpenNotebookDocumentParams = {
199
238
  /**
200
239
  * The notebook document that got opened.
201
240
  */
@@ -205,7 +244,7 @@ export interface DidOpenNotebookDocumentParams {
205
244
  * of a notebook cell.
206
245
  */
207
246
  cellTextDocuments: TextDocumentItem[];
208
- }
247
+ };
209
248
  /**
210
249
  * A notification sent when a notebook opens.
211
250
  *
@@ -221,7 +260,7 @@ export declare namespace DidOpenNotebookDocumentNotification {
221
260
  *
222
261
  * @since 3.17.0 - proposed state
223
262
  */
224
- export interface NotebookCellArrayChange {
263
+ export declare type NotebookCellArrayChange = {
225
264
  /**
226
265
  * The start oftest of the cell that changed.
227
266
  */
@@ -234,7 +273,7 @@ export interface NotebookCellArrayChange {
234
273
  * The new cells, if any
235
274
  */
236
275
  cells?: NotebookCell[];
237
- }
276
+ };
238
277
  export declare namespace NotebookCellArrayChange {
239
278
  function is(value: any): value is NotebookCellArrayChange;
240
279
  function create(start: uinteger, deleteCount: uinteger, cells?: NotebookCell[]): NotebookCellArrayChange;
@@ -244,48 +283,53 @@ export declare namespace NotebookCellArrayChange {
244
283
  *
245
284
  * @since 3.17.0 - proposed state
246
285
  */
247
- export interface NotebookDocumentChangeEvent {
286
+ export declare type NotebookDocumentChangeEvent = {
248
287
  /**
249
288
  * The changed meta data if any.
250
289
  */
251
290
  metadata?: LSPObject;
252
291
  /**
253
- * Changes to the cell structure to add or
254
- * remove cells.
292
+ * Changes to cells
255
293
  */
256
- cellStructure?: {
294
+ cells?: {
257
295
  /**
258
- * The change to the cell array.
296
+ * Changes to the cell structure to add or
297
+ * remove cells.
259
298
  */
260
- array: NotebookCellArrayChange;
299
+ structure?: {
300
+ /**
301
+ * The change to the cell array.
302
+ */
303
+ array: NotebookCellArrayChange;
304
+ /**
305
+ * Additional opened cell text documents.
306
+ */
307
+ didOpen?: TextDocumentItem[];
308
+ /**
309
+ * Additional closed cell text documents.
310
+ */
311
+ didClose?: TextDocumentIdentifier[];
312
+ };
261
313
  /**
262
- * Additional opened cell text documents.
314
+ * Changes to notebook cells properties like its
315
+ * kind, execution summary or metadata.
263
316
  */
264
- didOpen?: TextDocumentItem[];
317
+ data?: NotebookCell[];
265
318
  /**
266
- * Additional closed cell text documents.
319
+ * Changes to the text content of notebook cells.
267
320
  */
268
- didClose?: TextDocumentIdentifier[];
321
+ textContent?: {
322
+ document: VersionedTextDocumentIdentifier;
323
+ changes: TextDocumentContentChangeEvent[];
324
+ }[];
269
325
  };
270
- /**
271
- * Changes to notebook cells properties like its
272
- * kind or metadata.
273
- */
274
- cellData?: NotebookCell[];
275
- /**
276
- * Changes to the text content of notebook cells.
277
- */
278
- cellTextDocuments?: {
279
- textDocument: VersionedTextDocumentIdentifier;
280
- contentChanges: TextDocumentContentChangeEvent[];
281
- }[];
282
- }
326
+ };
283
327
  /**
284
328
  * The params sent in a change notebook document notification.
285
329
  *
286
330
  * @since 3.17.0 - proposed state
287
331
  */
288
- export interface DidChangeNotebookDocumentParams {
332
+ export declare type DidChangeNotebookDocumentParams = {
289
333
  /**
290
334
  * The notebook document that did change. The version number points
291
335
  * to the version after all provided changes have been applied. If
@@ -309,7 +353,7 @@ export interface DidChangeNotebookDocumentParams {
309
353
  * you receive them.
310
354
  */
311
355
  change: NotebookDocumentChangeEvent;
312
- }
356
+ };
313
357
  export declare namespace DidChangeNotebookDocumentNotification {
314
358
  const method: 'notebookDocument/didChange';
315
359
  const type: ProtocolNotificationType<DidChangeNotebookDocumentParams, void>;
@@ -319,12 +363,12 @@ export declare namespace DidChangeNotebookDocumentNotification {
319
363
  *
320
364
  * @since 3.17.0 - proposed state
321
365
  */
322
- export interface DidSaveNotebookDocumentParams {
366
+ export declare type DidSaveNotebookDocumentParams = {
323
367
  /**
324
368
  * The notebook document that got saved.
325
369
  */
326
370
  notebookDocument: NotebookDocumentIdentifier;
327
- }
371
+ };
328
372
  /**
329
373
  * A notification sent when a notebook document is saved.
330
374
  *
@@ -339,7 +383,7 @@ export declare namespace DidSaveNotebookDocumentNotification {
339
383
  *
340
384
  * @since 3.17.0 - proposed state
341
385
  */
342
- export interface DidCloseNotebookDocumentParams {
386
+ export declare type DidCloseNotebookDocumentParams = {
343
387
  /**
344
388
  * The notebook document that got closed.
345
389
  */
@@ -349,7 +393,7 @@ export interface DidCloseNotebookDocumentParams {
349
393
  * of a notebook cell that got closed.
350
394
  */
351
395
  cellTextDocuments: TextDocumentIdentifier[];
352
- }
396
+ };
353
397
  /**
354
398
  * A notification sent when a notebook closes.
355
399
  *