Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat - toggle from title if installed #241753

Merged
merged 1 commit into from
Feb 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/vs/workbench/contrib/chat/browser/actions/chatActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const CHAT_SETUP_ACTION_ID = 'workbench.action.chat.triggerSetup';
export const CHAT_SETUP_ACTION_LABEL = localize2('triggerChatSetup', "Use AI Features with Copilot for Free...");

export const TOGGLE_CHAT_ACTION_ID = 'workbench.action.chat.toggle';
export const TOGGLE_CHAT_ACTION_LABEL = localize('toggleChat', "Toggle Chat");

export interface IChatViewOpenOptions {
/**
Expand Down Expand Up @@ -728,16 +729,16 @@ export class CopilotTitleBarMenuRendering extends Disposable implements IWorkben
primaryActionIcon = Codicon.copilot;
} else {
if (signedOut) {
primaryActionId = CHAT_OPEN_ACTION_ID;
primaryActionId = TOGGLE_CHAT_ACTION_ID;
primaryActionTitle = localize('signInToChatSetup', "Sign in to Use Copilot...");
primaryActionIcon = Codicon.copilotNotConnected;
} else if (chatQuotaExceeded || completionsQuotaExceeded) {
primaryActionId = OPEN_CHAT_QUOTA_EXCEEDED_DIALOG;
primaryActionTitle = quotaToButtonMessage({ chatQuotaExceeded, completionsQuotaExceeded });
primaryActionIcon = Codicon.copilotWarning;
} else {
primaryActionId = CHAT_OPEN_ACTION_ID;
primaryActionTitle = CHAT_OPEN_ACTION_LABEL.value;
primaryActionId = TOGGLE_CHAT_ACTION_ID;
primaryActionTitle = TOGGLE_CHAT_ACTION_LABEL;
primaryActionIcon = Codicon.copilot;
}
}
Expand Down
Loading