Skip to content

Test: "Continue with Microsoft" only when your Microsoft account links to GitHub #339157

Closed

Description

@TylerLeonhardt

Refs: #338823

Complexity: 3

Create Issue


Context

Last round (#333246) put Continue with Microsoft in sign-in dialogs behind a setting. Turning it on for everyone would show the button to people it can't help, like anyone whose Microsoft account isn't linked to a GitHub account. So now VS Code checks first.

The check runs silently in the background. It asks the OS broker for the work and school accounts on your machine, trades each one for a short-lived GitHub token, and asks GitHub who that is. If one of them is linked to a GitHub account (for most of us, an EMU), you get the button. Nothing is saved, and the GitHub token used for the check is revoked.

chat.microsoftAuthentication.enabled now takes three values:

  • auto: run the check, and offer the button only if it finds a link
  • always: offer the button without checking
  • never: don't offer it, and don't check

The button also shows up in a new place: the "Welcome to VS Code" screen a fresh install opens on, as an icon next to Apple.

Image

Setup

Use a work machine where your Microsoft work account is signed in to the OS. Everything here runs in code-insiders --transient, which uses throwaway data and extension folders, so you start signed out of everything.

auto

Run code-insiders --transient. The welcome screen opens with GitHub, Google and Apple. After a short delay, the Microsoft icon should join them. You don't need to change any settings, since Insiders already has auto.

  • How long did it take? Did the icon popping in feel natural or jarring?
  • Skip the welcome screen and click Sign In in the title bar. Is the option in that dialog too?

always

Start another code-insiders --transient and add this to your settings:

"microsoft-authentication.implementation": "msal-no-broker"

Click Reload when VS Code asks. Without the broker, the check can't see the accounts on your machine, so auto has nothing to find. Run Developer: Welcome Onboarding 2026 to reopen the welcome screen. The Microsoft icon should stay away this time.

Now set "chat.microsoftAuthentication.enabled": "always". The icon and the dialog option should come back.

never

Set it to never. The option should be gone from both the welcome screen and the Sign In dialog.

Then sign in

When you're done with the settings, set it back to auto or always, click Continue with Microsoft, and go through sign-in.

  • The confirmation shows your GitHub handle and nothing else. Is that enough to decide?
  • Once you're signed in, does Copilot work like it normally does?
  • Did anything along the way confuse you or feel broken?

Notes

  • auto depends on the OS broker. Windows on ARM and Linux don't have it yet, so auto won't find anything there.
  • msal-no-broker sends Microsoft sign-in through the browser instead of the OS prompt. That's expected.

Known issues

Activity

  1. added this to the 1.141.0 milestone on Oct 1, 2026
  2. TylerLeonhardt commented on Oct 1, 2026

    @TylerLeonhardt
    MemberAuthor

    Signing in with Continue with Microsoft also covers #338555, which lets the Entra-to-GitHub token exchange run without a client secret. It doesn't need separate steps.

  3. dmitrivMS commented on Oct 5, 2026

    @dmitrivMS
    Collaborator

    All works for me!

  4. ulugbekna commented on Oct 5, 2026

    @ulugbekna
    Contributor

    TylerLeonhardt

    How long did it take? Did the icon popping in feel natural or jarring?

    I saw it as a flicker. While I can live with this, wonder if this should be the very first experience a new user should have. We could maybe put the MS icon icon after GHE such that it's appended rather than squeezed in OR it could appear disabled and then get enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions