-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Need to allow GitLens to connect to GitHub in every Codespace #1336
Comments
@egamma So there is a bunch of back-story to why that notification exists. But the TLDR version is I'm blocked by microsoft/vscode#111529 Today the VS Code authentication api provide a This creates a big issue for extensions, because we have no way to silently know if we have an authorized session or not. So because GitLens tries to figure out if it has an authorized session to provide passive features (i.e. features that the user doesn't take an explicit action to invoke), and because that prompt is not at all friendly to the user if they didn't do anything to cause it, I added an explanatory notification to tell the user what will happen and why, and offer a way to completely opt-out. So until microsoft/vscode#111529 is fixed/addressed I don't think there is really much I can do. You can disable the integration completely, by setting Also as for:
That is also completely controlled by VS Code And @corwin-of-amber your issue is also out of my hands and is fully controlled by VS Code. |
@eamodio thanks for the background! |
@eamodio Are you saying that you want silent access to a session or silent knowing that a session would exist if you would be asking for it?
Instead of silent access and custom notifications wouldn't it be better to provide a reason for why you want to get a session? That would allow to make a UI more friendly/informative and wouldn't rely on notifications popping up. With GH issue notebooks I have the same challenge: it works well except for thinks like |
To me that are kind of one and the same. I want/need to be able to get access to a session that I've been previously granted access without prompting the user if there isn't one.
Having a reason (and possibly a more global opt-out) on our prompts would be very nice, but I don't think that helps address my silent access concern. In GitLens, I want to use the access if I have been granted it, passively (for avatar lookups, pr & issue linking details, etc) but I don't want to prompt/bother the user UNLESS they take a specific action (or actions) to opt-in to wanting to connect to GitHub to provide those features. /cc @RMacfarlane |
"I" as the user or the extension? |
Extension |
Can you please verify this fix in the insiders edition? You can install the insiders edition from here. Be sure to disable/uninstall the stable version of GitLens first. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
GitLens shows the following dialog whenever I open a new Codespace:
Suggest to use the new API
context.globalState.setKeysForSync
so that my choice is remembered across different Codespaces.The follow-up problem is when I select "Allow" in the dialog, then I have to do a auth flow in GitHub, but I'm already logged into GitHub.
The text was updated successfully, but these errors were encountered: