Skip to content
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

Improve protocol link handling around windowId=_blank support #171323

Merged
merged 15 commits into from Jan 16, 2023
Merged

Conversation

bpasero
Copy link
Member

@bpasero bpasero commented Jan 14, 2023

Protocol links can use windowId=_blank to indicate that they want a fresh window to be handled in. This works fine in most cases except when VS Code is not running. In that case, we first restore the previous session only then to open another empty window to handle the protocol link in. A better solution is to open an empty window right from the beginning and then handle the link in there.

The code that deals with protocol links is incredibly complex and spaghetti. Will try to cleanup the existing implementation but will resort to explanatory comments in most cases where cleanup is not helping reduce complexity.

Refs: https://github.com/github/codespaces/issues/9792

@bpasero bpasero changed the title Protocol link handling Improve protocol link handling around windowId=_blank support Jan 14, 2023
@bpasero bpasero marked this pull request as ready for review January 15, 2023 11:22
@bpasero bpasero added this to the January 2023 milestone Jan 15, 2023
@bpasero
Copy link
Member Author

bpasero commented Jan 16, 2023

Good to go for a review.

@joaomoreno joaomoreno closed this Jan 16, 2023
auto-merge was automatically disabled January 16, 2023 14:50

Pull request was closed

@joaomoreno joaomoreno reopened this Jan 16, 2023
@bpasero bpasero merged commit 1379f03 into main Jan 16, 2023
@bpasero bpasero deleted the ben/sheer-bee branch January 16, 2023 15:07
@github-actions github-actions bot locked and limited conversation to collaborators Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants