Skip to content

Commit c2f9910

Browse files
committed
Use quickPickTop
1 parent 3efab86 commit c2f9910

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vs/workbench/contrib/terminal/browser/terminalIconPicker.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { Disposable } from '../../../../base/common/lifecycle.js';
1111
import type { ThemeIcon } from '../../../../base/common/themables.js';
1212
import { IHoverService } from '../../../../platform/hover/browser/hover.js';
1313
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
14+
import { ILayoutService } from '../../../../platform/layout/browser/layoutService.js';
1415
import { defaultInputBoxStyles } from '../../../../platform/theme/browser/defaultStyles.js';
1516
import { getIconRegistry, IconContribution } from '../../../../platform/theme/common/iconRegistry.js';
1617
import { WorkbenchIconSelectBox } from '../../../services/userDataProfile/browser/iconSelectBox.js';
@@ -39,7 +40,8 @@ export class TerminalIconPicker extends Disposable {
3940

4041
constructor(
4142
@IInstantiationService instantiationService: IInstantiationService,
42-
@IHoverService private readonly _hoverService: IHoverService
43+
@IHoverService private readonly _hoverService: IHoverService,
44+
@ILayoutService private readonly _layoutService: ILayoutService,
4345
) {
4446
super();
4547

@@ -64,7 +66,7 @@ export class TerminalIconPicker extends Disposable {
6466
target: {
6567
targetElements: [body],
6668
x: bodyRect.left + (bodyRect.width - dimension.width) / 2,
67-
y: bodyRect.top
69+
y: bodyRect.top + this._layoutService.activeContainerOffset.quickPickTop - 2
6870
},
6971
position: {
7072
hoverPosition: HoverPosition.BELOW,

0 commit comments

Comments
 (0)