Add tests for metadata

This commit is contained in:
Rob Lourens
2020-04-24 17:49:49 -05:00
parent 6dbf928e9e
commit 9b995534bc
2 changed files with 81 additions and 0 deletions

View File

@@ -14,6 +14,16 @@ export function activate(context: vscode.ExtensionContext): any {
return;
},
executeCell: async (_document: vscode.NotebookDocument, _cell: vscode.NotebookCell | undefined, _token: vscode.CancellationToken) => {
if (!_cell) {
_cell = _document.cells[0];
}
_cell.outputs = [{
outputKind: vscode.CellOutputKind.Rich,
data: {
'text/plain': ['my output']
}
}];
return;
},
save: async (_document: vscode.NotebookDocument) => {