8000 Only refresh if visible · githubnext/vscode@2966683 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2966683

Browse files
committed
Only refresh if visible
1 parent a2934ee commit 2966683

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ export class TerminalStickyScrollOverlay extends Disposable {
117117
this._syncOptions();
118118
this._refresh();
119119
}));
120-
this._register(this._instance.onDidChangeVisibility(() => this._refresh()));
120+
this._register(this._instance.onDidChangeVisibility(isVisible => {
121+
if (isVisible) {
122+
this._refresh();
123+
}
124+
}));
121125

122126
this._getSerializeAddonConstructor().then(SerializeAddon => {
123127
if (this._store.isDisposed) {

0 commit comments

Comments
 (0)
0