-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Redirect web page when instance changed #9004
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We introduced this change to avoid endless loops where we would start a new workspace on each page load.
IMO the problem here is somewhere else.
@geropl Code this PR changed, only effect display, logic not changed |
@mustard-mh Sorry for not being more precise here (still struggling with the virous 😵 ). We need the buttons to be there in case of a restart. Also cmp. my later comment here. |
Eh, now we have a problem in another place:
@mustard-mh could you add this to how to test |
@akosyakov Ah, yes. That's why I originally combined this with #8226 . If we combine this with #8978 I think we should be good! 🙃 |
ok, let's try, @mustard-mh Could you bring other changes? |
Also updated how to test section |
@geropl Please have a look 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested all scenarios and it works as expected.
Great work @mustard-mh 🚀
if (currentInstanceId !== "") { | ||
if (instance.id !== currentInstanceId && instance.ideUrl !== "") { | ||
currentInstanceId = instance.id; | ||
window.location.href = instance.ideUrl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thx for fixing this! 💪
Description
Display opening workspace when ide is not ready yet. Relates PR #8125
Refresh web page when instanceId changed to get ide config and ws works again
Need to verify
Starting
,Opening workspace...
not_found
works after ws startedRelated Issue(s)
Fixes #8990
Fixes #8226
How to test
Open Workspace
We can do negative test like this PR #8125 in staging here https://hw-fix-8990-crash.staging.gitpod-dev.com/workspaces which will make Insiders VSCode crash bb705e2
Release Notes
Documentation