File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -840,6 +840,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
840840 setTimeout ( ( ) => this . layout ( this . _timeoutDimension ! ) , 0 ) ;
841841 }
842842 }
843+ if ( ! visible ) {
844+ this . _widgetManager . hideHovers ( ) ;
845+ }
843846 }
844847
845848 public scrollDownLine ( ) : void {
Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ export class TerminalViewPane extends ViewPane {
110110 } else {
111111 this . layoutBody ( this . _bodyDimensions . height , this . _bodyDimensions . width ) ;
112112 }
113+ } else {
114+ this . _terminalService . getActiveTab ( ) ?. setVisible ( false ) ;
113115 }
114116 } ) ) ;
115117
Original file line number Diff line number Diff line change 55
66import { IDisposable } from 'vs/base/common/lifecycle' ;
77import { ITerminalWidget } from 'vs/workbench/contrib/terminal/browser/widgets/widgets' ;
8+ import { IHoverService } from 'vs/workbench/services/hover/browser/hover' ;
89
910export class TerminalWidgetManager implements IDisposable {
1011 private _container : HTMLElement | undefined ;
1112 private _attached : Map < string , ITerminalWidget > = new Map ( ) ;
1213
14+ constructor ( @IHoverService private readonly _hoverService : IHoverService ) {
15+ }
16+
1317 attachToElement ( terminalWrapper : HTMLElement ) {
1418 if ( ! this . _container ) {
1519 this . _container = document . createElement ( 'div' ) ;
@@ -25,6 +29,10 @@ export class TerminalWidgetManager implements IDisposable {
2529 }
2630 }
2731
32+ hideHovers ( ) : void {
33+ this . _hoverService . hideHover ( ) ;
34+ }
35+
2836 attachWidget ( widget : ITerminalWidget ) : IDisposable | undefined {
2937 if ( ! this . _container ) {
3038 return ;
You can’t perform that action at this time.
0 commit comments