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

I can't uninstall the Amazon Q extension, every time it reinstalls itself automatically #4898

Open
revanshine opened this issue May 1, 2024 · 6 comments
Labels
amazonq bug We can reproduce the issue and confirmed it is a bug.

Comments

@revanshine
Copy link

Problem

Steps to reproduce the issue

Expected behavior

System details (run the AWS: About Toolkit command)

  • OS:
  • Visual Studio Code version:
  • AWS Toolkit version:
@revanshine revanshine added the bug We can reproduce the issue and confirmed it is a bug. label May 1, 2024
@justinmk3
Copy link
Contributor

What is the exact version of AWS Toolkit you have installed? (run AWS: About command)

@justinmk3 justinmk3 added needs-response Waiting on reply from issue/PR author. amazonq labels May 1, 2024
@connorlanigan
Copy link
Member

I'm seeing the same issue in my VS Code.

The versions shown in AWS: About for me are:

OS: Darwin arm64 23.4.0
Visual Studio Code extension host: 1.88.0
AWS Toolkit: 3.1.0
node: 18.18.2
electron: 28.2.8

The steps I take are:

  1. In the extension list of VS Code, I find "Amazon Q" and choose "Uninstall" from the menu.
  2. VS Code shows a button labelled "Restart Extensions" to complete the uninstallation. I click that button.
  3. VS Code shows a notification: "Installing 'Amazon Q' extension..."
  4. VS Code shows a notification: "Amazon Q is now its own extension. We've auto-installed it for you with all the same features and settings from CodeWhisperer and Amazon Q chat."

In the code, it looks to me like the Amazon Q extension is installed whenever the user has the permission to use Amazon Q:

if (isPreviousQUser()) {
await installAmazonQExtension.execute()

/**
* Returns true if an SSO connection with AmazonQ and CodeWhisperer scopes are found,
* even if the connection is expired.
*
* Note: This function will become irrelevant if/when the Amazon Q view tree is removed
* from the toolkit.
*/
export function isPreviousQUser() {

@justinmk3
Copy link
Contributor

As a workaround, try explicitly performing Sign Out from the Amazon Q menu:
image

I was able to reproduce the issue, then confirmed that AWS Toolkit did not auto-install Amazon Q after the following steps:

  1. go to Amazon Q, click the "..." menu, click Sign Out
  2. uninstall Amazon Q
  3. restart VSCode

@justinmk3 justinmk3 removed the needs-response Waiting on reply from issue/PR author. label May 6, 2024
@CrowderSoup
Copy link

I'm also experiencing this bug. It's incredibly annoying to keep being prompted to install the Amazon Q extension when I don't want the Amazon Q extension.

@justinmk3
Copy link
Contributor

Did you try the workaround ?

@asjadjawed
Copy link

As a workaround, try explicitly performing Sign Out from the Amazon Q menu: image

I was able to reproduce the issue, then confirmed that AWS Toolkit did not auto-install Amazon Q after the following steps:

  1. go to Amazon Q, click the "..." menu, click Sign Out
  2. uninstall Amazon Q
  3. restart VSCode

Thanks this worked for me, it was driving me nuts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amazonq bug We can reproduce the issue and confirmed it is a bug.
Projects
None yet
Development

No branches or pull requests

5 participants