Repository navigation
Description
Refs: #338823
- windows Dmitriy Vasyura (@dmitrivMS)
- macOS Ulugbek Abdullaev (@ulugbekna)
Complexity: 3
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 linkalways: offer the button without checkingnever: 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.
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
autodepends on the OS broker. Windows on ARM and Linux don't have it yet, soautowon't find anything there.msal-no-brokersends Microsoft sign-in through the browser instead of the OS prompt. That's expected.
Known issues
- Continue with Microsoft: Using live id stops at dead end #333501: signing in with a personal Microsoft account ends at an unhelpful error.
autoskips personal accounts butalwaysdoesn't, so you might hit this one. - Continue with Microsoft: Getting my EMU account instead of the regular one #333492: you get your EMU account, not your personal GitHub account. That's by design.
- If the Microsoft authentication extension is slow to start, a dialog you open early can be missing the option because the check hasn't finished. Dialogs you open after that should have it.
Activity
TylerLeonhardt commentedon Oct 1, 2026
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.
dmitrivMS commentedon Oct 5, 2026
All works for me!
ulugbekna commentedon Oct 5, 2026
TylerLeonhardt
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