Fix terminal icon picker issues

Fixes #251428
This commit is contained in:
Daniel Imms
2025-06-14 09:08:57 -07:00
parent 5c8496abb6
commit 3efab8683c
@@ -45,8 +45,7 @@ export class TerminalIconPicker extends Disposable {
this._iconSelectBox = instantiationService.createInstance(WorkbenchIconSelectBox, {
icons: icons.value,
inputBoxStyles: defaultInputBoxStyles,
showIconInfo: true
inputBoxStyles: defaultInputBoxStyles
});
}
@@ -58,18 +57,21 @@ export class TerminalIconPicker extends Disposable {
this._iconSelectBox.dispose();
}));
this._iconSelectBox.clearInput();
const body = getActiveDocument().body;
const bodyRect = body.getBoundingClientRect();
const hoverWidget = this._hoverService.showInstantHover({
content: this._iconSelectBox.domNode,
target: getActiveDocument().body,
target: {
targetElements: [body],
x: bodyRect.left + (bodyRect.width - dimension.width) / 2,
y: bodyRect.top
},
position: {
hoverPosition: HoverPosition.BELOW,
},
persistence: {
sticky: true,
},
appearance: {
showPointer: true
}
}, true);
if (hoverWidget) {
this._register(hoverWidget);