diff --git a/news/2 Fixes/9935.md b/news/2 Fixes/9935.md new file mode 100644 index 000000000000..d80250f6b9b6 --- /dev/null +++ b/news/2 Fixes/9935.md @@ -0,0 +1 @@ +Switching kernels should disable the run/interrupt/restart buttons. \ No newline at end of file diff --git a/src/client/datascience/interactive-common/interactiveBase.ts b/src/client/datascience/interactive-common/interactiveBase.ts index d59512819fb5..25399406a10d 100644 --- a/src/client/datascience/interactive-common/interactiveBase.ts +++ b/src/client/datascience/interactive-common/interactiveBase.ts @@ -1480,7 +1480,12 @@ export abstract class InteractiveBase extends WebViewHost { onClick={runCell} tooltip={getLocString('DataScience.runCell', 'Run cell')} hidden={this.isMarkdownCell()} + disabled={this.props.busy} > diff --git a/src/datascience-ui/native-editor/nativeEditor.tsx b/src/datascience-ui/native-editor/nativeEditor.tsx index 622052e7c7d9..f6f83fc375a0 100644 --- a/src/datascience-ui/native-editor/nativeEditor.tsx +++ b/src/datascience-ui/native-editor/nativeEditor.tsx @@ -477,6 +477,7 @@ ${buildSettingsCss(this.props.settings)}`} themeMatplotlibPlots={this.props.settings.themeMatplotlibPlots} // Focus pending does not apply to native editor. focusPending={0} + busy={this.props.busy} /> {lastLine}