Skip to content

Conversation

@TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Nov 1, 2025

There was actually code gate for this API because it was just what was returned by the auth provider. Microsoft auth provider returns these.

Fixes #140929

Copilot AI review requested due to automatic review settings November 1, 2025 00:30
@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) November 1, 2025 00:30
@TylerLeonhardt TylerLeonhardt self-assigned this Nov 1, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request promotes the idToken property from a proposed API to a stable API by moving it from vscode.proposed.idToken.d.ts into the main vscode.d.ts file. This allows all extensions to access ID tokens without needing to opt into a proposed API.

Key Changes

  • Moves idToken property from proposed API to stable API in AuthenticationSession interface
  • Enhances documentation for both accessToken and idToken properties with references to their respective specifications
  • Removes the idToken proposal file and all references to it from the extension system

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/vscode-dts/vscode.proposed.idToken.d.ts Completely removed the proposed API file
src/vscode-dts/vscode.d.ts Added idToken property to AuthenticationSession with enhanced documentation
src/vs/platform/extensions/common/extensionsApiProposals.ts Removed idToken from the registry of API proposals
extensions/microsoft-authentication/tsconfig.json Removed reference to the proposed API file
extensions/microsoft-authentication/package.json Removed idToken from enabled API proposals

@TylerLeonhardt TylerLeonhardt merged commit bf0fa4c into main Nov 3, 2025
43 of 45 checks passed
@TylerLeonhardt TylerLeonhardt deleted the tyler/cultural-angelfish branch November 3, 2025 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend AuthSession to include an optional idToken

3 participants