Function
writeSuccess
(
execution: vscode.NotebookCellExecution,
outputs: vscode.NotebookCellOutputItem[][]
)
Source from the content-addressed store, hash-verified
| 113 | const { text, json } = vscode.NotebookCellOutputItem; |
| 114 | |
| 115 | function writeSuccess( |
| 116 | execution: vscode.NotebookCellExecution, |
| 117 | outputs: vscode.NotebookCellOutputItem[][] |
| 118 | ) { |
| 119 | execution.replaceOutput( |
| 120 | outputs.map((items) => new vscode.NotebookCellOutput(items)) |
| 121 | ); |
| 122 | execution.end(true, Date.now()); |
| 123 | } |
| 124 | |
| 125 | function outputJsonMimeType(): boolean { |
| 126 | return ( |
Tested by
no test coverage detected