Skip to content

Commit

Permalink
Fix folded section hint run button execution range (microsoft#209973)
Browse files Browse the repository at this point in the history
off by 1 cell range fix
  • Loading branch information
Yoyokrazy committed Apr 10, 2024
1 parent 0347b00 commit 0e263c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class FoldedCellHint extends CellContentPart {
const idx = this._notebookEditor.getViewModel().getCellIndex(element);
const length = this._notebookEditor.getViewModel().getFoldedLength(idx);

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

const foldHintTop = element.layoutInfo.previewHeight;
Expand Down

0 comments on commit 0e263c4

Please sign in to comment.