Skip to content

Conversation

@KetchupOnMyKetchup
Copy link
Contributor

@KetchupOnMyKetchup KetchupOnMyKetchup commented Apr 7, 2023

Set all contexts for view upon sign in and refresh

Fixes:

The problem is that when logging in the context only gets set for the login and there are 3 contexts related to the View (github-actions.signed-in, github-actions.has-repos, and github-actions.internet-access ). The view checks for these in vscode-github-actions/package.json.

They are reading for the when condition, and there is an issue where if you download the extension, enable it, and THEN you login at that point, that the contexts for repo and internet are not set, so that causes the view not to change. So the user is actually logged in, but the view isn't triggered to change.

This change adds two additional checks for has-repos and internet-access when a user signs in.

image

Demo of broken state before fix:
vscodeloginbroken

Demo of fixed state:
vscodeloginfixed

Co-authored from @KetchupOnMyKetchup and @lrotschy

Co-authored-by: Liela Rotschy <lrotschy@github.com>
@KetchupOnMyKetchup KetchupOnMyKetchup marked this pull request as ready for review April 7, 2023 15:02
@KetchupOnMyKetchup KetchupOnMyKetchup requested a review from a team as a code owner April 7, 2023 15:03
Co-authored-by: Crystal Tenn <ketchuponmyketchup@github.com>

Co-authored-by: Liela Rotschy <lrotschy@github.com>
@KetchupOnMyKetchup KetchupOnMyKetchup merged commit 34c1a34 into main Apr 7, 2023
@KetchupOnMyKetchup KetchupOnMyKetchup deleted the lrotschyketchup/fixContextsForViewSimple branch April 7, 2023 15:55
KetchupOnMyKetchup pushed a commit to ruleset-workflow-demo/vscode-gh-actions that referenced this pull request Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants