Skip to content

Quiet authentication requests with different scopes might not be distinct on Accounts icon #137601

@gjsjohnmurray

Description

@gjsjohnmurray

Consider this line:

Suppose an extension runs this code:

  const session1 = await vscode.authentication.getSession('myProvider', ['A', 'BC'], {createIfNone: false});
  const session2 = await vscode.authentication.getSession('myProvider', ['AB', 'C'], {createIfNone: false});

The Account icon badge will report only 1 login request.

A potential solution might be to change the line to be:

   const scopesList = JSON.stringify(scopes);

Metadata

Metadata

Labels

authenticationIssues with the Authentication platformbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions