diff --git a/src/vs/workbench/browser/parts/editor/editorStatus.ts b/src/vs/workbench/browser/parts/editor/editorStatus.ts index fc7578bbc16b048a9dfab7e40cbd45d48aa94c4f..c24027710cb68e365d2a85d614e8a23a9b7bf8d2 100644 --- a/src/vs/workbench/browser/parts/editor/editorStatus.ts +++ b/src/vs/workbench/browser/parts/editor/editorStatus.ts @@ -781,8 +781,8 @@ class ChangeIndentationAction extends Action { ].map((a: EditorAction) => { return { id: a.id, - label: (language === LANGUAGE_DEFAULT) ? a.label : a.getAlias(), - detail: (language === LANGUAGE_DEFAULT) ? null : a.label, + label: a.label, + detail: (language === LANGUAGE_DEFAULT) ? null : a.getAlias(), run: () => a.run() }; }); @@ -876,8 +876,8 @@ export class ChangeEncodingAction extends Action { saveWithEncodingPick = { label: nls.localize('saveWithEncoding', "Save with Encoding") }; reopenWithEncodingPick = { label: nls.localize('reopenWithEncoding', "Reopen with Encoding") }; } else { - saveWithEncodingPick = { label: 'Save with Encoding', detail: nls.localize('saveWithEncoding', "Save with Encoding"), }; - reopenWithEncodingPick = { label: 'Reopen with Encoding', detail: nls.localize('reopenWithEncoding', "Reopen with Encoding") }; + saveWithEncodingPick = { label: nls.localize('saveWithEncoding', "Save with Encoding"), detail: 'Save with Encoding', }; + reopenWithEncodingPick = { label: nls.localize('reopenWithEncoding', "Reopen with Encoding"), detail: 'Reopen with Encoding' }; } if (encodingSupport instanceof UntitledEditorInput) { diff --git a/src/vs/workbench/parts/quickopen/browser/commandsHandler.ts b/src/vs/workbench/parts/quickopen/browser/commandsHandler.ts index 5130f7cac52a7e96ec19a0ae33e7baedcaad7035..81156b89dcdc460ef07e3973fd5423cd7aabb622 100644 --- a/src/vs/workbench/parts/quickopen/browser/commandsHandler.ts +++ b/src/vs/workbench/parts/quickopen/browser/commandsHandler.ts @@ -287,10 +287,6 @@ export class CommandsHandler extends QuickOpenHandler { // Alias for non default languages let alias = (language !== LANGUAGE_DEFAULT) ? registry.getAlias(actionDescriptor.id) : null; - if (alias) { - [label, alias] = [alias, label]; // swap alias and label so that english alias is #1 - } - let labelHighlights = wordFilter(searchValue, label); let aliasHighlights = alias ? wordFilter(searchValue, alias) : null; if (labelHighlights || aliasHighlights) { @@ -322,10 +318,6 @@ export class CommandsHandler extends QuickOpenHandler { // Alias for non default languages let alias = (language !== LANGUAGE_DEFAULT) ? action.getAlias() : null; - if (alias) { - [label, alias] = [alias, label]; // swap alias and label so that english alias is #1 - } - let labelHighlights = wordFilter(searchValue, label); let aliasHighlights = alias ? wordFilter(searchValue, alias) : null; if (labelHighlights || aliasHighlights) {