Skip to content

Commit 118da97

Browse files
committed
1 parent 03acd22 commit 118da97

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/vscode-notebook-tests/src/notebook.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ suite('metadata', () => {
329329
await waitFor(500);
330330
assert.equal(vscode.notebook.activeNotebookEditor !== undefined, true, 'notebook first');
331331
assert.equal(vscode.notebook.activeNotebookEditor!.document.metadata.custom['testMetadata'] as boolean, false);
332-
assert.equal(vscode.notebook.activeNotebookEditor!.selection?.metadata.custom['testCellMetadata'] as boolean, true);
332+
assert.equal(vscode.notebook.activeNotebookEditor!.selection?.metadata.custom!['testCellMetadata'] as number, 123);
333333
assert.equal(vscode.notebook.activeNotebookEditor!.selection?.language, 'typescript');
334334
});
335335
});

extensions/vscode-notebook-tests/src/notebookTestMain.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function activate(context: vscode.ExtensionContext): any {
2929
cellKind: vscode.CellKind.Code,
3030
outputs: [],
3131
metadata: {
32-
custom: { testCellMetadata: true }
32+
custom: { testCellMetadata: 123 }
3333
}
3434
}
3535
]

src/vs/vscode.proposed.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ declare module 'vscode' {
15941594
/**
15951595
* Additional attributes of a cell metadata.
15961596
*/
1597-
[key: string]: any;
1597+
custom?: { [key: string]: any };
15981598
}
15991599

16001600
export interface NotebookCell {

0 commit comments

Comments
 (0)