mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-06 14:24:04 -05:00
workaround #39510
This commit is contained in:
@@ -535,13 +535,16 @@ export class CommandsHandler extends QuickOpenHandler {
|
||||
|
||||
// Add an 'alias' in original language when running in different locale
|
||||
const aliasTitle = (language !== LANGUAGE_DEFAULT && typeof action.item.title !== 'string') ? action.item.title.original : null;
|
||||
const aliasCategory = (language !== LANGUAGE_DEFAULT && category && typeof action.item.category !== 'string') ? action.item.category.original : null;
|
||||
let alias;
|
||||
if (aliasTitle && category) {
|
||||
alias = aliasCategory ? `${aliasCategory}: ${aliasTitle}` : `${category}: ${aliasTitle}`;
|
||||
} else if (aliasTitle) {
|
||||
alias = aliasTitle;
|
||||
}
|
||||
|
||||
// Disable aliasCategory for now (https://github.com/Microsoft/vscode/issues/39510)
|
||||
// const aliasCategory = (language !== LANGUAGE_DEFAULT && category && typeof action.item.category !== 'string') ? action.item.category.original : null;
|
||||
let alias: string;
|
||||
// if (aliasTitle && category) {
|
||||
// alias = aliasCategory ? `${aliasCategory}: ${aliasTitle}` : `${category}: ${aliasTitle}`;
|
||||
// } else if (aliasTitle) {
|
||||
alias = aliasTitle;
|
||||
// }
|
||||
|
||||
const aliasHighlights = alias ? wordFilter(searchValue, alias) : null;
|
||||
|
||||
if (labelHighlights || aliasHighlights) {
|
||||
|
||||
Reference in New Issue
Block a user