Skip to content

Commit

Permalink
Rerender sticky scroll on folding settings change (microsoft#236083)
Browse files Browse the repository at this point in the history
adding code to rerender sticky scroll on folding settings change
  • Loading branch information
aiday-mar authored Dec 13, 2024
1 parent db62636 commit 9547aba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ export class StickyScrollController extends Disposable implements IEditorContrib
this._readConfiguration();
}

if (event.hasChanged(EditorOption.lineNumbers)) {
if (event.hasChanged(EditorOption.lineNumbers) || event.hasChanged(EditorOption.folding) || event.hasChanged(EditorOption.showFoldingControls)) {
this._renderStickyScroll(0);
}
}
Expand Down

0 comments on commit 9547aba

Please sign in to comment.