|
4 | 4 | * ------------------------------------------------------------------------------------------ */ |
5 | 5 |
|
6 | 6 | import { |
7 | | - URI, integer, DocumentUri, uinteger, LSPAny, LSPObject, TextDocumentItem, TextDocumentIdentifier, |
| 7 | + URI, integer, DocumentUri, uinteger, LSPAny, TextDocumentItem, TextDocumentIdentifier, |
8 | 8 | VersionedTextDocumentIdentifier |
9 | 9 | } from 'vscode-languageserver-types'; |
10 | 10 |
|
@@ -123,8 +123,10 @@ export type NotebookCell = { |
123 | 123 |
|
124 | 124 | /** |
125 | 125 | * Additional metadata stored with the cell. |
| 126 | + * |
| 127 | + * Note: should always be an object literal (e.g. LSPObject) |
126 | 128 | */ |
127 | | - metadata?: LSPObject; |
| 129 | + metadata?: LSPAny; |
128 | 130 |
|
129 | 131 | /** |
130 | 132 | * Additional execution summary information |
@@ -165,6 +167,7 @@ export namespace NotebookCell { |
165 | 167 | } |
166 | 168 |
|
167 | 169 | function equalsMetadata(one: LSPAny | undefined, other: LSPAny | undefined): boolean { |
| 170 | + type LSPObject = { [key: string]: LSPAny }; |
168 | 171 | if (one === other) { |
169 | 172 | return true; |
170 | 173 | } |
@@ -244,8 +247,10 @@ export type NotebookDocument = { |
244 | 247 | /** |
245 | 248 | * Additional metadata stored with the notebook |
246 | 249 | * document. |
| 250 | + * |
| 251 | + * Note: should always be an object literal (e.g. LSPObject) |
247 | 252 | */ |
248 | | - metadata?: LSPObject; |
| 253 | + metadata?: LSPAny; |
249 | 254 |
|
250 | 255 | /** |
251 | 256 | * The cells of a notebook. |
@@ -440,8 +445,10 @@ export namespace NotebookCellArrayChange { |
440 | 445 | export type NotebookDocumentChangeEvent = { |
441 | 446 | /** |
442 | 447 | * The changed meta data if any. |
| 448 | + * |
| 449 | + * Note: should always be an object literal (e.g. LSPObject) |
443 | 450 | */ |
444 | | - metadata?: LSPObject; |
| 451 | + metadata?: LSPAny; |
445 | 452 |
|
446 | 453 | /** |
447 | 454 | * Changes to cells |
|
0 commit comments