This commit is contained in:
rebornix
2020-05-13 12:47:39 -07:00
parent e2785c3297
commit 03acd2250a
7 changed files with 57 additions and 7 deletions

View File

@@ -17,19 +17,25 @@ export function activate(context: vscode.ExtensionContext): any {
};
}
return {
const dto: vscode.NotebookData = {
languages: ['typescript'],
metadata: {},
metadata: {
custom: { testMetadata: false }
},
cells: [
{
source: 'test',
language: 'typescript',
cellKind: vscode.CellKind.Code,
outputs: [],
metadata: {}
metadata: {
custom: { testCellMetadata: true }
}
}
]
};
return dto;
},
executeCell: async (_document: vscode.NotebookDocument, _cell: vscode.NotebookCell | undefined, _token: vscode.CancellationToken) => {
if (!_cell) {