44 *--------------------------------------------------------------------------------------------*/
55
66import { IQuickInputService , IQuickPickItem , IPickOptions , IInputOptions , IQuickNavigateConfiguration , IQuickPick , IQuickInputButton , IInputBox , QuickPickInput } from 'vs/platform/quickinput/common/quickInput' ;
7- import { IWorkbenchLayoutService } from 'vs/workbench/services /layout/browser/layoutService' ;
7+ import { ILayoutService } from 'vs/platform /layout/browser/layoutService' ;
88import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
99import { IThemeService } from 'vs/platform/theme/common/themeService' ;
1010import { inputBackground , inputForeground , inputBorder , inputValidationInfoBackground , inputValidationInfoForeground , inputValidationInfoBorder , inputValidationWarningBackground , inputValidationWarningForeground , inputValidationWarningBorder , inputValidationErrorBackground , inputValidationErrorForeground , inputValidationErrorBorder , badgeBackground , badgeForeground , contrastBorder , buttonForeground , buttonBackground , buttonHoverBackground , progressBarBackground , widgetShadow , listFocusForeground , listFocusBackground , activeContrastBorder , pickerGroupBorder , pickerGroupForeground } from 'vs/platform/theme/common/colorRegistry' ;
@@ -54,13 +54,13 @@ export class QuickInputService extends PlatformQuickInputService {
5454 @IContextKeyService private readonly contextKeyService : IContextKeyService ,
5555 @IThemeService themeService : IThemeService ,
5656 @IAccessibilityService private readonly accessibilityService : IAccessibilityService ,
57- @IWorkbenchLayoutService private readonly layoutService : IWorkbenchLayoutService
57+ @ILayoutService private readonly layoutService : ILayoutService
5858 ) {
5959 super ( themeService ) ;
6060
6161 this . controller = this . _register ( new QuickInputController ( {
6262 idPrefix : 'quickInput_' , // Constant since there is still only one.
63- container : this . layoutService . getWorkbenchElement ( ) ,
63+ container : this . layoutService . container ,
6464 ignoreFocusOut : ( ) => this . environmentService . args [ 'sticky-quickopen' ] || ! this . configurationService . getValue ( CLOSE_ON_FOCUS_LOST_CONFIG ) ,
6565 isScreenReaderOptimized : ( ) => this . accessibilityService . isScreenReaderOptimized ( ) ,
6666 backKeybindingLabel : ( ) => this . keybindingService . lookupKeybinding ( QuickPickBack . id ) ?. getLabel ( ) || undefined ,
@@ -76,15 +76,15 @@ export class QuickInputService extends PlatformQuickInputService {
7676 styles : this . computeStyles ( ) ,
7777 } ) ) ;
7878
79- this . controller . layout ( this . layoutService . dimension , this . layoutService . getTitleBarOffset ( ) ) ;
79+ this . controller . layout ( this . layoutService . dimension , this . layoutService . offset ?. top ?? 0 ) ;
8080
8181 this . registerListeners ( ) ;
8282 }
8383
8484 private registerListeners ( ) : void {
8585
8686 // Layout changes
87- this . _register ( this . layoutService . onLayout ( dimension => this . controller . layout ( dimension , this . layoutService . getTitleBarOffset ( ) ) ) ) ;
87+ this . _register ( this . layoutService . onLayout ( dimension => this . controller . layout ( dimension , this . layoutService . offset ?. top ?? 0 ) ) ) ;
8888
8989 // Context keys
9090 this . _register ( this . controller . onShow ( ( ) => this . resetContextKeys ( ) ) ) ;
0 commit comments