mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-31 00:10:04 +08:00
Merge pull request #312681 from microsoft/mrleemurray/working-copper-shark
Agents: Remove product quality handling from OpenInAgentsTitleBarWidget
This commit is contained in:
@@ -66,22 +66,6 @@
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Quality-tinted hover/focus background — blue (stable), green (insider), orange (exploration). */
|
||||
.monaco-workbench .open-in-agents-titlebar-widget[data-product-quality="stable"]:hover,
|
||||
.monaco-workbench .open-in-agents-titlebar-widget[data-product-quality="stable"]:focus-visible {
|
||||
background-color: rgba(0, 122, 204, 0.18);
|
||||
}
|
||||
|
||||
.monaco-workbench .open-in-agents-titlebar-widget[data-product-quality="insider"]:hover,
|
||||
.monaco-workbench .open-in-agents-titlebar-widget[data-product-quality="insider"]:focus-visible {
|
||||
background-color: rgba(36, 187, 26, 0.20);
|
||||
}
|
||||
|
||||
.monaco-workbench .open-in-agents-titlebar-widget[data-product-quality="exploration"]:hover,
|
||||
.monaco-workbench .open-in-agents-titlebar-widget[data-product-quality="exploration"]:focus-visible {
|
||||
background-color: rgba(255, 140, 0, 0.22);
|
||||
}
|
||||
|
||||
.monaco-workbench .open-in-agents-titlebar-widget:hover > .open-in-agents-titlebar-widget-label,
|
||||
.monaco-workbench .open-in-agents-titlebar-widget:focus-visible > .open-in-agents-titlebar-widget-label {
|
||||
max-width: 200px;
|
||||
|
||||
@@ -144,7 +144,6 @@ class OpenInAgentsTitleBarWidget extends BaseActionViewItem {
|
||||
constructor(
|
||||
action: IAction,
|
||||
options: IBaseActionViewItemOptions | undefined,
|
||||
@IProductService private readonly productService: IProductService,
|
||||
@IHoverService private readonly hoverService: IHoverService,
|
||||
) {
|
||||
super(undefined, action, options);
|
||||
@@ -155,7 +154,6 @@ class OpenInAgentsTitleBarWidget extends BaseActionViewItem {
|
||||
|
||||
container.classList.add('open-in-agents-titlebar-widget');
|
||||
container.setAttribute('role', 'button');
|
||||
container.setAttribute('data-product-quality', this.productService.quality ?? 'stable');
|
||||
|
||||
const label = this.action.label || localize('openInAgentsLabel', "Open in Agents");
|
||||
container.setAttribute('aria-label', label);
|
||||
|
||||
Reference in New Issue
Block a user