We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a65bea commit 0e2e0e2Copy full SHA for 0e2e0e2
src/vs/base/browser/ui/dropdown/dropdownActionViewItem.ts
@@ -126,9 +126,22 @@ export class DropdownMenuActionViewItem extends BaseActionViewItem {
126
};
127
}
128
129
+ this.updateTooltip();
130
this.updateEnabled();
131
132
133
+ override getTooltip(): string | undefined {
134
+ let title: string | null = null;
135
+
136
+ if (this.getAction().tooltip) {
137
+ title = this.getAction().tooltip;
138
+ } else if (this.getAction().label) {
139
+ title = this.getAction().label;
140
+ }
141
142
+ return title ?? undefined;
143
144
145
override setActionContext(newContext: unknown): void {
146
super.setActionContext(newContext);
147
0 commit comments