Fix model list hover for upgrade scenario (#311399)

This commit is contained in:
Logan Ramos
2026-04-20 12:45:14 -04:00
committed by GitHub
parent 8412c237a3
commit f2576e277e
2 changed files with 16 additions and 2 deletions

View File

@@ -1505,8 +1505,13 @@ export class ActionListWidget<T> extends Disposable {
}
} else if (element && element.hover?.content && typeof e.index === 'number') {
// Show hover for disabled items that have hover content (with delay)
this._hideSubmenu();
this._scheduleSubmenuShow(element, e.index);
if (this._currentSubmenuElement === element) {
this._cancelSubmenuHide();
this._cancelSubmenuShow();
} else {
this._hideSubmenu();
this._scheduleSubmenuShow(element, e.index);
}
}
}

View File

@@ -357,6 +357,15 @@
word-wrap: break-word;
}
.action-list-submenu-hover-header a {
color: var(--vscode-textLink-foreground);
}
.action-list-submenu-hover-header a:hover,
.action-list-submenu-hover-header a:active {
color: var(--vscode-textLink-activeForeground);
}
.action-list-submenu-hover-header.has-submenu {
border-bottom: 1px solid var(--vscode-menu-separatorBackground, var(--vscode-editorWidget-border));
}