-
Notifications
You must be signed in to change notification settings - Fork 28.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getSession scope #117512
Comments
Ah, the scope list is intended to act as a filter, so the return of Internally, when some other extension calls |
Do you think changing the param name to |
I didn't realize that |
Ok I think that I used "implement interface" on an old version of the API, then updated vscode.d.ts, then patched it up manually, so I never saw the parameter. Anyway, it's all good. |
Testing #117299
I don't totally understand how the scope list passed to
getSession
works. If it ends up callingcreateSession
then it passes the scope there, which makes sense. But ifclearSessionPreference
is not set, and there is already a session for this auth provider, then it is returned whether or not it has the scopes thatgetSession
requested.If
clearSessionPreference
is set, and there are multiple accounts, then I get to pick an account that may or may not have the scopes that the extension requested.What is the extension supposed to do if it gets a session that doesn't have the scope it needs?
The text was updated successfully, but these errors were encountered: