Skip to content

Commit 2e9d6fe

Browse files
authored
SCM - update hide strategy on the SCM input action bar (microsoft#253596)
1 parent ca8f724 commit 2e9d6fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vs/workbench/contrib/scm/browser/scmViewPane.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ import { EditorOption, EditorOptions, IEditorOptions } from '../../../../editor/
9393
import { IAsyncDataTreeViewState, ITreeCompressionDelegate } from '../../../../base/browser/ui/tree/asyncDataTree.js';
9494
import { IUriIdentityService } from '../../../../platform/uriIdentity/common/uriIdentity.js';
9595
import { EditOperation } from '../../../../editor/common/core/editOperation.js';
96-
import { IMenuWorkbenchToolBarOptions, WorkbenchToolBar } from '../../../../platform/actions/browser/toolbar.js';
96+
import { HiddenItemStrategy, IMenuWorkbenchToolBarOptions, WorkbenchToolBar } from '../../../../platform/actions/browser/toolbar.js';
9797
import { CancellationTokenSource } from '../../../../base/common/cancellation.js';
9898
import { DropdownWithPrimaryActionViewItem } from '../../../../platform/actions/browser/dropdownWithPrimaryActionViewItem.js';
9999
import { clamp, rot } from '../../../../base/common/numbers.js';
@@ -1449,7 +1449,7 @@ class SCMInputWidgetToolbar extends WorkbenchToolBar {
14491449
@IStorageService private readonly storageService: IStorageService,
14501450
@ITelemetryService telemetryService: ITelemetryService,
14511451
) {
1452-
super(container, { resetMenu: MenuId.SCMInputBox, ...options }, menuService, contextKeyService, contextMenuService, keybindingService, commandService, telemetryService);
1452+
super(container, options, menuService, contextKeyService, contextMenuService, keybindingService, commandService, telemetryService);
14531453

14541454
this._dropdownAction = new Action(
14551455
'scmInputMoreActions',
@@ -1947,6 +1947,7 @@ class SCMInputWidget {
19471947

19481948
return createActionViewItem(instantiationService, action, options);
19491949
},
1950+
hiddenItemStrategy: HiddenItemStrategy.NoHide,
19501951
menuOptions: {
19511952
shouldForwardArgs: true
19521953
}

0 commit comments

Comments
 (0)