Skip to content

Hover commands are off #242040

Open
Open
@bpasero

Description

@bpasero

Notice how the command is offscreen:

Image

Steps to Reproduce:

  1. open chatStatus.ts
  2. change getEntryProps to return this:
return {
			name: localize('chatStatus', "Copilot Status"),
			text,
			ariaLabel,
			command,
			showInAllWindows: true,
			kind: 'copilot',
			tooltip: {
				content: () => {
					const container = $('div.chat-status-bar-entry-tooltip');

					if (this.contextKeyService.getContextKeyValue<boolean>(ChatContextKeys.Setup.pro.key) === true) {
						container.appendChild($('div', undefined, localize('proTitle', "You are using Copilot Pro")));
						container.appendChild($('hr'));
					}

					// Settings
					this.createSettings(container, disposables);

					// Shortcuts
					container.appendChild($('hr'));
					this.createShortcuts(container, disposables);

					return container;
				},
				commands: [{
					id: TOGGLE_CHAT_ACTION_ID,
					title: 'Toggle'
				}]
			}
		};

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugworkbench-hoverHover issues in the workbench

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions