Skip to content

Commit 0e263c4

Browse files
authored
Fix folded section hint run button execution range (microsoft#209973)
off by 1 cell range fix
1 parent 0347b00 commit 0e263c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class FoldedCellHint extends CellContentPart {
4949
const idx = this._notebookEditor.getViewModel().getCellIndex(element);
5050
const length = this._notebookEditor.getViewModel().getFoldedLength(idx);
5151

52-
DOM.reset(this._container, this.getRunFoldedSectionButton({ start: idx, end: idx + length }), this.getHiddenCellsLabel(length), this.getHiddenCellHintButton(element));
52+
DOM.reset(this._container, this.getRunFoldedSectionButton({ start: idx, end: idx + length + 1 }), this.getHiddenCellsLabel(length), this.getHiddenCellHintButton(element));
5353
DOM.show(this._container);
5454

5555
const foldHintTop = element.layoutInfo.previewHeight;

0 commit comments

Comments
 (0)