Not doing the call when we are on the same range and the element has already been underlined

This commit is contained in:
aiday-mar 2022-08-22 17:22:42 +02:00
parent e890c8d843
commit 7afe4e7008

View file

@ -99,6 +99,8 @@ export class StickyScrollWidget extends Disposable implements IOverlayWidget {
if (!stickyPositionProjectedOnEditor.equalsRange(this._stickyRangeProjectedOnEditor)) {
this._stickyRangeProjectedOnEditor = stickyPositionProjectedOnEditor;
sessionStore.clear();
} else if (targetMouseEvent.element.style.textDecoration === 'underline') {
return;
}
const cancellationToken = new CancellationTokenSource();