From a0c24d9be787f078b07d852d236289762aba90a4 Mon Sep 17 00:00:00 2001 From: Ian Huff Date: Mon, 8 Jun 2020 16:06:29 -0700 Subject: [PATCH] fix continue event to run cell --- news/2 Fixes/12155.md | 1 + .../interactive-ipynb/nativeEditorRunByLineListener.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 news/2 Fixes/12155.md diff --git a/news/2 Fixes/12155.md b/news/2 Fixes/12155.md new file mode 100644 index 000000000000..3473014c4b2c --- /dev/null +++ b/news/2 Fixes/12155.md @@ -0,0 +1 @@ +Fix debugger continue event to actually change a cell. \ No newline at end of file diff --git a/src/client/datascience/interactive-ipynb/nativeEditorRunByLineListener.ts b/src/client/datascience/interactive-ipynb/nativeEditorRunByLineListener.ts index 40403a0528f0..2051c09bea0a 100644 --- a/src/client/datascience/interactive-ipynb/nativeEditorRunByLineListener.ts +++ b/src/client/datascience/interactive-ipynb/nativeEditorRunByLineListener.ts @@ -105,18 +105,18 @@ export class NativeEditorRunByLineListener private async handleStep() { // User issued a step command. - this.postEmitter.fire({ message: InteractiveWindowMessages.ShowContinue, payload: undefined }); + this.postEmitter.fire({ message: InteractiveWindowMessages.ShowContinue, payload: this.currentCellBeingRun }); return this.debugService.step(); } private async handleContinue() { // User issued a continue command - this.postEmitter.fire({ message: InteractiveWindowMessages.ShowContinue, payload: undefined }); + this.postEmitter.fire({ message: InteractiveWindowMessages.ShowContinue, payload: this.currentCellBeingRun }); return this.debugService.continue(); } private async handleContinueEvent() { // Tell the ui to erase the current IP - this.postEmitter.fire({ message: InteractiveWindowMessages.ShowContinue, payload: undefined }); + this.postEmitter.fire({ message: InteractiveWindowMessages.ShowContinue, payload: this.currentCellBeingRun }); } }