Skip to content

Commit 7fc10b9

Browse files
authored
Disable prevention of running cells when restarting (#13722)
1 parent 9f4c596 commit 7fc10b9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/client/datascience/notebook/notebookEditor.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,7 @@ export class NotebookEditor implements INotebookEditor {
233233
// Set our status
234234
const status = this.statusProvider.set(DataScience.restartingKernelStatus(), true, undefined, undefined);
235235

236-
// Disable running cells.
237-
const [cellRunnable, runnable] = [this.document.metadata.cellRunnable, this.document.metadata.runnable];
238236
try {
239-
this.document.metadata.cellRunnable = false;
240-
this.document.metadata.runnable = false;
241237
await kernel.restart();
242238
} catch (exc) {
243239
// If we get a kernel promise failure, then restarting timed out. Just shutdown and restart the entire server.
@@ -261,8 +257,6 @@ export class NotebookEditor implements INotebookEditor {
261257
} finally {
262258
status.dispose();
263259
this.restartingKernel = false;
264-
// Restore previous state.
265-
[this.document.metadata.cellRunnable, this.document.metadata.runnable] = [cellRunnable, runnable];
266260
}
267261
}
268262
private async shouldAskForRestart(): Promise<boolean> {

0 commit comments

Comments
 (0)