mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-30 16:50:30 -04:00
Merge from vscode 8c426f9f3b6b18935cc6c2ec8aa6d45ccd88021e
This commit is contained in:
@@ -840,6 +840,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
||||
setTimeout(() => this.layout(this._timeoutDimension!), 0);
|
||||
}
|
||||
}
|
||||
if (!visible) {
|
||||
this._widgetManager.hideHovers();
|
||||
}
|
||||
}
|
||||
|
||||
public scrollDownLine(): void {
|
||||
|
||||
@@ -110,6 +110,8 @@ export class TerminalViewPane extends ViewPane {
|
||||
} else {
|
||||
this.layoutBody(this._bodyDimensions.height, this._bodyDimensions.width);
|
||||
}
|
||||
} else {
|
||||
this._terminalService.getActiveTab()?.setVisible(false);
|
||||
}
|
||||
}));
|
||||
|
||||
|
||||
@@ -5,11 +5,15 @@
|
||||
|
||||
import { IDisposable } from 'vs/base/common/lifecycle';
|
||||
import { ITerminalWidget } from 'vs/workbench/contrib/terminal/browser/widgets/widgets';
|
||||
import { IHoverService } from 'vs/workbench/services/hover/browser/hover';
|
||||
|
||||
export class TerminalWidgetManager implements IDisposable {
|
||||
private _container: HTMLElement | undefined;
|
||||
private _attached: Map<string, ITerminalWidget> = new Map();
|
||||
|
||||
constructor(@IHoverService private readonly _hoverService: IHoverService) {
|
||||
}
|
||||
|
||||
attachToElement(terminalWrapper: HTMLElement) {
|
||||
if (!this._container) {
|
||||
this._container = document.createElement('div');
|
||||
@@ -25,6 +29,10 @@ export class TerminalWidgetManager implements IDisposable {
|
||||
}
|
||||
}
|
||||
|
||||
hideHovers(): void {
|
||||
this._hoverService.hideHover();
|
||||
}
|
||||
|
||||
attachWidget(widget: ITerminalWidget): IDisposable | undefined {
|
||||
if (!this._container) {
|
||||
return undefined; // {{SQL CARBON EDIT}} strict-null-check
|
||||
|
||||
Reference in New Issue
Block a user