Skip to content

User is prompted to select an account after every restart #253606

Closed as not planned
@koesie10

Description

@koesie10

Does this issue occur when all extensions are disabled?: No, but this issue is probably in VS Code rather than in the extension since this works in stable, but not in insiders.

  • VS Code Version: 1.102.0-insider (6e85500)
  • OS Version: Darwin arm64 24.5.0

When using the authentication.getSession method, the user is prompted to select an account on every restart of VS Code Insiders. I suspect this is because the extension is not saved as a "Trusted Extension". I'm seeing this for the CodeQL extension.

Steps to Reproduce:

  1. Start VS Code Insiders
  2. Start an action that calls authentication.getSession (in the case of the CodeQL extension, I'm using the "CodeQL: Run Variant Analysis" command)
  3. Select the account to use
  4. Restart VS Code (or reload the window)
  5. Start the same action. I'm again prompted to select an account. In the stable version, it re-uses the account that was previously selected.
Screen.Recording.2025-07-02.at.11.27.37.mov

Metadata

Metadata

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions