custom metadata for notebook document.

This commit is contained in:
rebornix
2020-05-13 15:00:50 -07:00
parent 44c89d78e7
commit 1669bde634
4 changed files with 7 additions and 3 deletions

View File

@@ -328,7 +328,7 @@ suite('metadata', () => {
await waitFor(500);
assert.equal(vscode.notebook.activeNotebookEditor !== undefined, true, 'notebook first');
assert.equal(vscode.notebook.activeNotebookEditor!.document.metadata.custom['testMetadata'] as boolean, false);
assert.equal(vscode.notebook.activeNotebookEditor!.document.metadata.custom!['testMetadata'] as boolean, false);
assert.equal(vscode.notebook.activeNotebookEditor!.selection?.metadata.custom!['testCellMetadata'] as number, 123);
assert.equal(vscode.notebook.activeNotebookEditor!.selection?.language, 'typescript');
});