mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
SCM - fix sync view actions (#193998)
This commit is contained in:
@@ -14,7 +14,7 @@ import { ThemeIcon } from 'vs/base/common/themables';
|
||||
import { URI } from 'vs/base/common/uri';
|
||||
import { ICommandService } from 'vs/platform/commands/common/commands';
|
||||
import { IConfigurationChangeEvent, IConfigurationService } from 'vs/platform/configuration/common/configuration';
|
||||
import { IContextKey, IContextKeyService, RawContextKey } from 'vs/platform/contextkey/common/contextkey';
|
||||
import { ContextKeyExpr, IContextKey, IContextKeyService, RawContextKey } from 'vs/platform/contextkey/common/contextkey';
|
||||
import { IContextMenuService } from 'vs/platform/contextview/browser/contextView';
|
||||
import { IInstantiationService, ServicesAccessor } from 'vs/platform/instantiation/common/instantiation';
|
||||
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
|
||||
@@ -832,6 +832,7 @@ class RefreshAction extends ViewAction<SCMSyncViewPane> {
|
||||
icon: Codicon.refresh,
|
||||
menu: {
|
||||
id: MenuId.ViewTitle,
|
||||
when: ContextKeyExpr.equals('view', SYNC_VIEW_PANE_ID),
|
||||
group: 'navigation'
|
||||
}
|
||||
});
|
||||
@@ -854,6 +855,7 @@ class SetListViewModeAction extends ViewAction<SCMSyncViewPane> {
|
||||
toggled: ContextKeys.ViewMode.isEqualTo(ViewMode.List),
|
||||
menu: {
|
||||
id: MenuId.ViewTitle,
|
||||
when: ContextKeyExpr.equals('view', SYNC_VIEW_PANE_ID),
|
||||
group: '1_viewmode'
|
||||
}
|
||||
});
|
||||
@@ -876,6 +878,7 @@ class SetTreeViewModeAction extends ViewAction<SCMSyncViewPane> {
|
||||
toggled: ContextKeys.ViewMode.isEqualTo(ViewMode.Tree),
|
||||
menu: {
|
||||
id: MenuId.ViewTitle,
|
||||
when: ContextKeyExpr.equals('view', SYNC_VIEW_PANE_ID),
|
||||
group: '1_viewmode'
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user