Skip to content

Commit 7afe4e7

Browse files
author
aiday-mar
committed
Not doing the call when we are on the same range and the element has already been underlined
1 parent e890c8d commit 7afe4e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
9999
if (!stickyPositionProjectedOnEditor.equalsRange(this._stickyRangeProjectedOnEditor)) {
100100
this._stickyRangeProjectedOnEditor = stickyPositionProjectedOnEditor;
101101
sessionStore.clear();
102+
} else if (targetMouseEvent.element.style.textDecoration === 'underline') {
103+
return;
102104
}
103105

104106
const cancellationToken = new CancellationTokenSource();

0 commit comments

Comments
 (0)