Skip to content

Commit 5edc703

Browse files
authored
menus: fix descenders missing from context menu options (microsoft#209672)
Fixes microsoft#209621, apply the fix locally for testing instead
1 parent f144cce commit 5edc703

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/vs/base/browser/ui/menu/menu.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,6 @@ ${formatRule(Codicon.menuSubmenu)}
12811281
.monaco-menu .monaco-action-bar.vertical .keybinding {
12821282
font-size: inherit;
12831283
padding: 0 2em;
1284-
overflow: hidden;
12851284
max-height: 100%;
12861285
}
12871286

src/vs/workbench/contrib/testing/browser/testingDecorations.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,13 @@ class MultiRunTestDecoration extends RunTestDecoration implements ITestDecoratio
975975
let testSubmenus: IAction[] = testItems.map(({ currentLabel, testItem }) => {
976976
const actions = this.getTestContextMenuActions(testItem.test, testItem.resultItem);
977977
disposable.add(actions);
978-
return new SubmenuAction(testItem.test.item.extId, stripIcons(currentLabel), actions.object);
978+
let label = stripIcons(currentLabel);
979+
const lf = label.indexOf('\n');
980+
if (lf !== -1) {
981+
label = label.slice(0, lf);
982+
}
983+
984+
return new SubmenuAction(testItem.test.item.extId, label, actions.object);
979985
});
980986

981987

0 commit comments

Comments
 (0)