Skip to content

Commit

Permalink
Merge pull request microsoft#227245 from microsoft/tyriar/226868
Browse files Browse the repository at this point in the history
Hide command guide if it's disable while showing
  • Loading branch information
Tyriar committed Aug 30, 2024
2 parents adb25cf + ac497db commit ab4c5e0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import type { Terminal as RawXtermTerminal } from '@xterm/xterm';
import { addDisposableListener } from '../../../../../base/browser/dom.js';
import { combinedDisposable, Disposable, MutableDisposable } from '../../../../../base/common/lifecycle.js';
import { combinedDisposable, Disposable, MutableDisposable, toDisposable } from '../../../../../base/common/lifecycle.js';
import { localize } from '../../../../../nls.js';
import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.js';
import { TerminalCapability } from '../../../../../platform/terminal/common/capabilities/capabilities.js';
Expand Down Expand Up @@ -70,6 +70,7 @@ class TerminalCommandGuideContribution extends Disposable implements ITerminalCo
addDisposableListener(viewportElement, 'mousemove', (e: MouseEvent) => this._tryShowHighlight(screenElement, xterm, e)),
addDisposableListener(xterm.raw.element!, 'mouseout', () => xterm.markTracker.showCommandGuide(undefined)),
xterm.raw.onData(() => xterm.markTracker.showCommandGuide(undefined)),
toDisposable(() => xterm.markTracker.showCommandGuide(undefined)),
);
}
}
Expand Down

0 comments on commit ab4c5e0

Please sign in to comment.