提交 14a184ae 编写于 作者: B Benjamin Pasero

💄 action labels (fixes #19441)

上级 a73960c8
......@@ -179,6 +179,6 @@ registry.registerWorkbenchAction(new SyncActionDescriptor(GlobalNewFolderAction,
registry.registerWorkbenchAction(new SyncActionDescriptor(GlobalCompareResourcesAction, GlobalCompareResourcesAction.ID, GlobalCompareResourcesAction.LABEL), 'Files: Compare Active File With...', category);
registry.registerWorkbenchAction(new SyncActionDescriptor(FocusOpenEditorsView, FocusOpenEditorsView.ID, FocusOpenEditorsView.LABEL, { primary: KeyChord(KeyMod.CtrlCmd | KeyCode.KEY_K, KeyCode.KEY_E) }), 'Files: Focus on Open Editors View', category);
registry.registerWorkbenchAction(new SyncActionDescriptor(FocusFilesExplorer, FocusFilesExplorer.ID, FocusFilesExplorer.LABEL), 'Files: Focus on Files Explorer', category);
registry.registerWorkbenchAction(new SyncActionDescriptor(ShowActiveFileInExplorer, ShowActiveFileInExplorer.ID, ShowActiveFileInExplorer.LABEL), 'Files: Show Active File in Explorer', category);
registry.registerWorkbenchAction(new SyncActionDescriptor(ShowActiveFileInExplorer, ShowActiveFileInExplorer.ID, ShowActiveFileInExplorer.LABEL), 'Files: Reveal Active File in Side Bar', category);
registry.registerWorkbenchAction(new SyncActionDescriptor(CollapseExplorerView, CollapseExplorerView.ID, CollapseExplorerView.LABEL), 'Files: Collapse Folders in Explorer', category);
registry.registerWorkbenchAction(new SyncActionDescriptor(RefreshExplorerView, RefreshExplorerView.ID, RefreshExplorerView.LABEL), 'Files: Refresh Explorer', category);
\ No newline at end of file
......@@ -1686,7 +1686,7 @@ export const revealInExplorerCommand = (accessor: ServicesAccessor, resource: UR
export class ShowActiveFileInExplorer extends Action {
public static ID = 'workbench.files.action.showActiveFileInExplorer';
public static LABEL = nls.localize('showInExplorer', "Show Active File in Explorer");
public static LABEL = nls.localize('showInExplorer', "Reveal Active File in Side Bar");
constructor(
id: string,
......
......@@ -22,7 +22,6 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
import { KeyMod, KeyChord, KeyCode } from 'vs/base/common/keyCodes';
import { CommandsRegistry, ICommandHandler } from 'vs/platform/commands/common/commands';
import { ContextKeyExpr } from 'vs/platform/contextkey/common/contextkey';
import { isWindows } from 'vs/base/common/platform';
class FileViewerActionContributor extends ActionBarContributor {
......@@ -90,7 +89,7 @@ CommandsRegistry.registerCommand('workbench.action.files.openFileInNewWindow', o
// Editor Title Context Menu
appendEditorTitleContextMenuItem('_workbench.action.files.revealInOS', RevealInOSAction.LABEL, revealInOSCommand);
appendEditorTitleContextMenuItem('_workbench.action.files.copyPath', CopyPathAction.LABEL, copyPathCommand);
appendEditorTitleContextMenuItem('_workbench.action.files.revealInExplorer', isWindows ? nls.localize('showInSideBar', "Show in Side Bar") : nls.localize('showInExplorer', "Show in Explorer"), revealInExplorerCommand);
appendEditorTitleContextMenuItem('_workbench.action.files.revealInExplorer', nls.localize('revealInSideBar', "Reveal in Side Bar"), revealInExplorerCommand);
function appendEditorTitleContextMenuItem(id: string, title: string, command: ICommandHandler): void {
......
......@@ -133,13 +133,13 @@ registry.registerWorkbenchAction(new SyncActionDescriptor(searchActions.ReplaceI
registry.registerWorkbenchAction(new SyncActionDescriptor(searchActions.CloseReplaceAction, Constants.CloseReplaceWidgetActionId, '', { primary: KeyCode.Escape }, ContextKeyExpr.and(Constants.SearchViewletVisibleKey, Constants.ReplaceInputBoxFocussedKey)), '');
registry.registerWorkbenchAction(new SyncActionDescriptor(searchActions.ShowNextSearchTermAction, searchActions.ShowNextSearchTermAction.ID, searchActions.ShowNextSearchTermAction.LABEL, ShowNextFindTermKeybinding,
ContextKeyExpr.and(Constants.SearchViewletVisibleKey, Constants.SearchInputBoxFocussedKey)), 'Show next search term');
ContextKeyExpr.and(Constants.SearchViewletVisibleKey, Constants.SearchInputBoxFocussedKey)), 'Show Next Search Term');
registry.registerWorkbenchAction(new SyncActionDescriptor(searchActions.ShowPreviousSearchTermAction, searchActions.ShowPreviousSearchTermAction.ID, searchActions.ShowPreviousSearchTermAction.LABEL, ShowPreviousFindTermKeybinding,
ContextKeyExpr.and(Constants.SearchViewletVisibleKey, Constants.SearchInputBoxFocussedKey)), 'Show previous search term');
ContextKeyExpr.and(Constants.SearchViewletVisibleKey, Constants.SearchInputBoxFocussedKey)), 'Show Previous Search Term');
registry.registerWorkbenchAction(new SyncActionDescriptor(searchActions.FocusNextInputAction, searchActions.FocusNextInputAction.ID, searchActions.FocusNextInputAction.LABEL, { primary: KeyCode.DownArrow },
ContextKeyExpr.and(Constants.SearchViewletVisibleKey, Constants.InputBoxFocussedKey)), 'Focus next input box');
ContextKeyExpr.and(Constants.SearchViewletVisibleKey, Constants.InputBoxFocussedKey)), 'Focus Next Input Box');
registry.registerWorkbenchAction(new SyncActionDescriptor(searchActions.FocusPreviousInputAction, searchActions.FocusPreviousInputAction.ID, searchActions.FocusPreviousInputAction.LABEL, { primary: KeyCode.UpArrow },
ContextKeyExpr.and(Constants.SearchViewletVisibleKey, Constants.InputBoxFocussedKey, Constants.SearchInputBoxFocussedKey.toNegated())), 'Focus previous input box');
ContextKeyExpr.and(Constants.SearchViewletVisibleKey, Constants.InputBoxFocussedKey, Constants.SearchInputBoxFocussedKey.toNegated())), 'Focus Previous Input Box');
registry.registerWorkbenchAction(new SyncActionDescriptor(searchActions.ToggleCaseSensitiveAction, Constants.ToggleCaseSensitiveActionId, '', ToggleCaseSensitiveKeybinding, ContextKeyExpr.and(Constants.SearchViewletVisibleKey, Constants.SearchInputBoxFocussedKey)), '');
registry.registerWorkbenchAction(new SyncActionDescriptor(searchActions.ToggleWholeWordAction, Constants.ToggleWholeWordActionId, '', ToggleWholeWordKeybinding, ContextKeyExpr.and(Constants.SearchViewletVisibleKey, Constants.SearchInputBoxFocussedKey)), '');
......
......@@ -80,7 +80,7 @@ export class ToggleRegexAction extends Action {
export class ShowNextSearchTermAction extends Action {
public static ID = 'search.history.showNext';
public static LABEL = nls.localize('nextSearchTerm', "Show next search term");
public static LABEL = nls.localize('nextSearchTerm', "Show Next Search Term");
constructor(id: string, label: string, @IViewletService private viewletService: IViewletService) {
super(id, label);
......@@ -96,7 +96,7 @@ export class ShowNextSearchTermAction extends Action {
export class ShowPreviousSearchTermAction extends Action {
public static ID = 'search.history.showPrevious';
public static LABEL = nls.localize('previousSearchTerm', "Show previous search term");
public static LABEL = nls.localize('previousSearchTerm', "Show Previous Search Term");
constructor(id: string, label: string, @IViewletService private viewletService: IViewletService) {
super(id, label);
......@@ -112,7 +112,7 @@ export class ShowPreviousSearchTermAction extends Action {
export class FocusNextInputAction extends Action {
public static ID = 'search.focus.nextInputBox';
public static LABEL = nls.localize('focusNextInputBox', "Focus next input box");
public static LABEL = nls.localize('focusNextInputBox', "Focus Next Input Box");
constructor(id: string, label: string, @IViewletService private viewletService: IViewletService) {
super(id, label);
......@@ -127,7 +127,7 @@ export class FocusNextInputAction extends Action {
export class FocusPreviousInputAction extends Action {
public static ID = 'search.focus.previousInputBox';
public static LABEL = nls.localize('focusPreviousInputBox', "Focus previous input box");
public static LABEL = nls.localize('focusPreviousInputBox', "Focus Previous Input Box");
constructor(id: string, label: string, @IViewletService private viewletService: IViewletService) {
super(id, label);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册