You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue referenced is encompassing the overall story for multi-account extensions, and we'll certainly have a TPI for that when it's ready, but one part that has gone in does affect users today and that's the changes to ClearSessionPreference which is a part of the getSession API.
You see, for authentication providers that support being signed into multiple accounts at once (like Microsoft), the user will be prompted to select an account to use when vscode.authentication.getSession with createIfNone: true is called.
Previous behavior:
This preference is remembered until vscode.authentication.getSession is called with the ClearSessionPreference flag.
New behavior:
This preference is remembered per-workspace until vscode.authentication.getSession is called in that workspace with the ClearSessionPreference flag.
This sets us up to allow an extension like GitHub Repos say "this workspace is this account and that workspace is that account".
Anyway, it's a lot of backstory, but the testing itself is pretty easy... All I want to you do is:
Open two windows each pointing to a different workspace
Run the command Run Clear Session Preference Test in one, chose your work account
In the other window, run the same command. Note: it should go directly to the notification that says what account you're logged in to
Now, in that new window, click the "Clear session preference" button in the notification... follow the flow to add a new account (your personal Microsoft account)
Reload both windows and run Run Clear Session Preference Test
Expected:
The workspace that you didn't clear the session preference in should have the account as before (work)
The workspace that you did clear the session preference in should have the new account (personal)
Refs: #152399
Complexity: 2
Create Issue
The issue referenced is encompassing the overall story for multi-account extensions, and we'll certainly have a TPI for that when it's ready, but one part that has gone in does affect users today and that's the changes to
ClearSessionPreference
which is a part of thegetSession
API.You see, for authentication providers that support being signed into multiple accounts at once (like Microsoft), the user will be prompted to select an account to use when
vscode.authentication.getSession
withcreateIfNone: true
is called.Previous behavior:
This preference is remembered until
vscode.authentication.getSession
is called with theClearSessionPreference
flag.New behavior:
This preference is remembered per-workspace until
vscode.authentication.getSession
is called in that workspace with theClearSessionPreference
flag.This sets us up to allow an extension like GitHub Repos say "this workspace is this account and that workspace is that account".
Anyway, it's a lot of backstory, but the testing itself is pretty easy... All I want to you do is:
Extensions: Install from VSIX...
)Run Clear Session Preference Test
in one, chose your work accountRun Clear Session Preference Test
Expected:
What the code of the test extension looks like
The text was updated successfully, but these errors were encountered: