File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,7 @@ export class TerminalIconPicker extends Disposable {
45
45
46
46
this . _iconSelectBox = instantiationService . createInstance ( WorkbenchIconSelectBox , {
47
47
icons : icons . value ,
48
- inputBoxStyles : defaultInputBoxStyles ,
49
- showIconInfo : true
48
+ inputBoxStyles : defaultInputBoxStyles
50
49
} ) ;
51
50
}
52
51
@@ -58,18 +57,21 @@ export class TerminalIconPicker extends Disposable {
58
57
this . _iconSelectBox . dispose ( ) ;
59
58
} ) ) ;
60
59
this . _iconSelectBox . clearInput ( ) ;
60
+ const body = getActiveDocument ( ) . body ;
61
+ const bodyRect = body . getBoundingClientRect ( ) ;
61
62
const hoverWidget = this . _hoverService . showInstantHover ( {
62
63
content : this . _iconSelectBox . domNode ,
63
- target : getActiveDocument ( ) . body ,
64
+ target : {
65
+ targetElements : [ body ] ,
66
+ x : bodyRect . left + ( bodyRect . width - dimension . width ) / 2 ,
67
+ y : bodyRect . top
68
+ } ,
64
69
position : {
65
70
hoverPosition : HoverPosition . BELOW ,
66
71
} ,
67
72
persistence : {
68
73
sticky : true ,
69
74
} ,
70
- appearance : {
71
- showPointer : true
72
- }
73
75
} , true ) ;
74
76
if ( hoverWidget ) {
75
77
this . _register ( hoverWidget ) ;
You can’t perform that action at this time.
0 commit comments