Skip to content

Commit

Permalink
Merge pull request #229966 from microsoft/tyriar/229872
Browse files Browse the repository at this point in the history
Prevent terminal SI decorations showing under quick fixes
  • Loading branch information
Tyriar committed Sep 27, 2024
2 parents 38b087c + 73f3a3e commit 8af8a57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class TerminalQuickFixAddon extends Disposable implements ITerminalAddon,
if (!marker) {
return;
}
const decoration = this._terminal.registerDecoration({ marker, layer: 'top' });
const decoration = this._terminal.registerDecoration({ marker, width: 2, layer: 'top' });
if (!decoration) {
return;
}
Expand Down Expand Up @@ -284,7 +284,7 @@ export class TerminalQuickFixAddon extends Disposable implements ITerminalAddon,
updateLayout(this._configurationService, e);
this._accessibilitySignalService.playSignal(AccessibilitySignal.terminalQuickFix);

const parentElement = (e.closest('.xterm') as HTMLElement).parentElement;
const parentElement = e.closest('.xterm')?.parentElement;
if (!parentElement) {
return;
}
Expand Down

0 comments on commit 8af8a57

Please sign in to comment.