Skip to content

Commit

Permalink
Respect empty bubble on initial run of `restart-kernel-and-re-evaluat…
Browse files Browse the repository at this point in the history
…e-bubbles` command
  • Loading branch information
t9md authored and lgeiger committed Jun 21, 2017
1 parent 2a5491f commit 9b1a5c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,18 +405,18 @@ const Hydrogen = {

restartKernelAndReEvaluateBubbles() {
const { editor, kernel } = store;
if (!editor || !kernel) {
this.runAll();
return;
}

let breakpoints = [];
_.forEach(this.markerBubbleMap, (bubble: ResultView) => {
breakpoints.push(bubble.marker.getBufferRange().start);
});
this.clearResultBubbles();

kernel.restart(() => this.runAll(breakpoints));
if (!editor || !kernel) {
this.runAll(breakpoints);
} else {
kernel.restart(() => this.runAll(breakpoints));
}
},

toggleBubble() {
Expand Down

0 comments on commit 9b1a5c3

Please sign in to comment.