-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Trusted workspaces and extension installation #117916
Comments
I have the same feeling. I tried to install an extension for testing and was not in a repo I "trusted", but was going to switch after I installed the extension. You are pretty much forced into trusting the current workspace to install an extension which isn't really the gate we are going for. |
Adding @sandy081 since this flow impacts extension acquisition At the moment, the user gesture that requires workspace trust is the gesture to install an extension. This means that any choice other than trusting the workspace will result in the extension not getting installed. I do see how this can cause confusion as you might be getting the dialog depending on the workspace that is currently opened. I am inclined to updating the flow so that:
|
For the flow where a notification is shown, we may wish to promote this to a dialog as the user is more likely than not expecting the extension they just installed to work immediately |
Independent whether the extension is installed from the Extensions list or the Extension editor, there will be an immediate visual indicator (shield icon + tooltip/message) that the extension is disabled due to workspace trust requirement. Clicking |
It is possible though that the user already has something requesting trust "softly" so there may not be a new visual indication. Because of that and the fact this this isn't "on load" but rather during the explicit action of installing the extension, it may be a candidate for a more immediate request for trust |
I think that we can experiment with both soft and modal notifications. The big takeaway from this issue is that the action that requires workspace trust is "enabling" the extension after it has been installed. Independent of the workspace trust state, the extension should get installed. If we are all on-board with that, I will make the necessary changes. |
@sandy081, any input on this? Thanks! |
This flow seems to be new to users, at present we allow installing extensions if they can run otherwise we do not. For eg., we do not allow installing an UI extension in web and we show a dialog immediately. In this case, one difference is that no user action will help in running the extension. In case of trusted workspace, user taking an action (say I trust this workspace) will allow running the extension. I agree that not showing any information that is on user face will confuse them why this extension is not enabled. So, I would either
IMO the second flow seems nicer for user because user knows what will happen before rather after the action. |
Thanks @sandy081! I do like the second flow as well. |
This has been checked in to |
When using trusted workspaces as described in #106488.
-> extension is not installed
-> window shows in "unknown" trust state
That the extension is not installed is unexpected. I would have assumed that the extension is installed but is not activated.
The text was updated successfully, but these errors were encountered: