Skip to content

Commit 25282a9

Browse files
authored
Merge pull request microsoft#202663 from microsoft/aiday/fixingColorizationStickyScroll
Fixing incorrect colorization of tokens in sticky scroll
2 parents 5eac27c + 112b74e commit 25282a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
127127
}
128128

129129
setState(_state: StickyScrollWidgetState | undefined, foldingModel: FoldingModel | null, _rebuildFromLine?: number): void {
130-
if ((!this._previousState && !_state) || (this._previousState && this._previousState.equals(_state))) {
130+
if (_rebuildFromLine === undefined &&
131+
((!this._previousState && !_state) || (this._previousState && this._previousState.equals(_state)))
132+
) {
131133
return;
132134
}
133135
const isWidgetHeightZero = this._isWidgetHeightZero(_state);

0 commit comments

Comments
 (0)