|
| 1 | +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | +From: =?UTF-8?q?Lo=C3=AFc=20Mangeonjean?= <loic@coderpad.io> |
| 3 | +Date: Wed, 6 Aug 2025 18:38:44 +0200 |
| 4 | +Subject: [PATCH] fix: also register the quickinput container |
| 5 | + |
| 6 | +--- |
| 7 | + src/vs/platform/quickinput/browser/quickInputController.ts | 6 +++++- |
| 8 | + 1 file changed, 5 insertions(+), 1 deletion(-) |
| 9 | + |
| 10 | +diff --git a/src/vs/platform/quickinput/browser/quickInputController.ts b/src/vs/platform/quickinput/browser/quickInputController.ts |
| 11 | +index 68dc9d95089..ad0b19ee6a7 100644 |
| 12 | +--- a/src/vs/platform/quickinput/browser/quickInputController.ts |
| 13 | ++++ b/src/vs/platform/quickinput/browser/quickInputController.ts |
| 14 | +@@ -35,6 +35,7 @@ import { getWindowControlsStyle, WindowControlsStyle } from '../../window/common |
| 15 | + import { getZoomFactor } from '../../../base/browser/browser.js'; |
| 16 | + import { Checkbox } from '../../../base/browser/ui/toggle/toggle.js'; |
| 17 | + import { defaultCheckboxStyles } from '../../theme/browser/defaultStyles.js'; |
| 18 | ++import { IKeybindingService } from '../../keybinding/common/keybinding.js'; |
| 19 | + |
| 20 | + const $ = dom.$; |
| 21 | + |
| 22 | +@@ -86,7 +87,8 @@ export class QuickInputController extends Disposable { |
| 23 | + @ILayoutService private readonly layoutService: ILayoutService, |
| 24 | + @IInstantiationService private readonly instantiationService: IInstantiationService, |
| 25 | + @IContextKeyService contextKeyService: IContextKeyService, |
| 26 | +- @IStorageService private readonly storageService: IStorageService |
| 27 | ++ @IStorageService private readonly storageService: IStorageService, |
| 28 | ++ @IKeybindingService private readonly keybindingService: IKeybindingService, |
| 29 | + ) { |
| 30 | + super(); |
| 31 | + |
| 32 | +@@ -137,6 +139,8 @@ export class QuickInputController extends Disposable { |
| 33 | + } |
| 34 | + |
| 35 | + const container = dom.append(this._container, $('.quick-input-widget.show-file-icons')); |
| 36 | ++ this._register(this.keybindingService.registerContainer(container)); |
| 37 | ++ |
| 38 | + container.tabIndex = -1; |
| 39 | + container.style.display = 'none'; |
| 40 | + |
0 commit comments