mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-19 18:14:50 +01:00
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user