mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
parent
6d4ecda76c
commit
2c713dd105
|
@ -1291,6 +1291,14 @@ registerAction2(class extends NotebookCellAction {
|
|||
}
|
||||
|
||||
editor.viewModel.notebookDocument.clearCellOutput(context.cell.handle);
|
||||
if (context.cell.metadata && context.cell.metadata?.runState !== NotebookCellRunState.Running) {
|
||||
context.notebookEditor.viewModel!.notebookDocument.changeCellMetadata(context.cell.handle, {
|
||||
runState: NotebookCellRunState.Idle,
|
||||
runStartTime: undefined,
|
||||
lastRunDuration: undefined,
|
||||
statusMessage: undefined
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue