Skip to content

Commit ef3a186

Browse files
authored
remove toolbar item (#7087)
1 parent 5174de3 commit ef3a186

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

src/extension.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -218,22 +218,7 @@ async function init(
218218
context.subscriptions.push(new PRNotificationDecorationProvider(tree.notificationProvider));
219219

220220
const copilotRemoteAgentManager = new CopilotRemoteAgentManager(credentialStore, reposManager, copilotStateModel);
221-
222221
context.subscriptions.push(copilotRemoteAgentManager);
223-
let remoteAgentStatusBarItem: vscode.Disposable | undefined;
224-
if (copilotRemoteAgentManager.enabled()) {
225-
remoteAgentStatusBarItem = copilotRemoteAgentManager.statusBarItemImpl();
226-
context.subscriptions.push(remoteAgentStatusBarItem);
227-
}
228-
context.subscriptions.push(copilotRemoteAgentManager.onDidChangeEnabled((enabled: boolean) => {
229-
if (enabled && !remoteAgentStatusBarItem) {
230-
remoteAgentStatusBarItem = copilotRemoteAgentManager.statusBarItemImpl();
231-
context.subscriptions.push(remoteAgentStatusBarItem);
232-
} else if (!enabled && remoteAgentStatusBarItem) {
233-
remoteAgentStatusBarItem.dispose();
234-
remoteAgentStatusBarItem = undefined;
235-
}
236-
}));
237222

238223
registerCommands(context, reposManager, reviewsManager, telemetry, tree, copilotRemoteAgentManager);
239224

src/github/copilotRemoteAgent.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,6 @@ export class CopilotRemoteAgentManager extends Disposable {
9999
return { owner, repo, remote, baseRef, repository };
100100
}
101101

102-
statusBarItemImpl(): vscode.StatusBarItem {
103-
const continueWithCopilot = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left, 100);
104-
continueWithCopilot.command = 'pr.continueAsyncWithCopilot';
105-
continueWithCopilot.text = vscode.l10n.t('$(cloud-upload) Finish with coding agent');
106-
continueWithCopilot.tooltip = vscode.l10n.t('Complete your current work with the Copilot coding agent. Your current changes will be pushed to a branch and your task will be completed in the background.');
107-
continueWithCopilot.show();
108-
return continueWithCopilot;
109-
}
110-
111102
async commandImpl(args?: any) {
112103
// https://github.com/microsoft/vscode-copilot/issues/18918
113104
if (args?.userPrompt) {

0 commit comments

Comments
 (0)