diff --git a/src/datascience-ui/history-react/interactiveCell.tsx b/src/datascience-ui/history-react/interactiveCell.tsx index b9e38b64fa1f..558258ebb099 100644 --- a/src/datascience-ui/history-react/interactiveCell.tsx +++ b/src/datascience-ui/history-react/interactiveCell.tsx @@ -189,6 +189,7 @@ export class InteractiveCell extends React.Component { onClick={gatherCode} hidden={ this.props.cellVM.cell.state === CellState.error || + this.props.cellVM.cell.state === CellState.executing || this.props.cellVM.cell.data.cell_type === 'markdown' || !this.props.settings.gatherIsInstalled } diff --git a/src/datascience-ui/native-editor/nativeCell.tsx b/src/datascience-ui/native-editor/nativeCell.tsx index 19ddede77e01..cda8de9462b0 100644 --- a/src/datascience-ui/native-editor/nativeCell.tsx +++ b/src/datascience-ui/native-editor/nativeCell.tsx @@ -598,6 +598,7 @@ export class NativeCell extends React.Component { this.props.cellVM.cell.data.execution_count === null || this.props.cellVM.hasBeenRun === null || this.props.cellVM.hasBeenRun === false || + this.props.cellVM.cell.state === CellState.executing || this.isError() || this.isMarkdownCell() || !this.props.gatherIsInstalled;