-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
pending-releaseResolved but not yet released to the stable editionResolved but not yet released to the stable editionverified ✔VerifiedVerified
Milestone
Description
Steps to reproduce
- have two Azure accounts.
- open a repo of a 1st Azure account in VSCode.
- open GK.dev. Connect to the 2nd Azure account. Sync GitLens with GK.dev
- Make sure you cannot get the information about the repository pull-requests.
- open GK.dev. Disconnect the 2nd Azure account. Connect it to the 1st account.
- Sync GitLens with GK.dev
- try to reach out the information about the repository pull-requests.
Expected result
GitLens is logged in to the 1st Azure account. It can get the information about thre repository pull-requests.
Actual result
GitLens keeps being logged in to the 2nd Azure account. It fails getting the information about thre repository pull-requests.
I think that the problem is that syncCloudConnection does not refresh token if it thinks that the current session is valid. I believe it can be reproduced with other types of integrations too.
Discovered and specified in #4192
Verification steps
Go through steps to reproduce and make sure that you see the Expected result.
Workaround
When there is an old session that you cannot sync with GK.dev the following helps:
- Disconnect the integration on GK.dev
- Sync
- Connect the integration on GK.dev
- Sync
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
pending-releaseResolved but not yet released to the stable editionResolved but not yet released to the stable editionverified ✔VerifiedVerified