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

core: fix new window command for the browser #10364

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

vince-fugnitto
Copy link
Member

What it does

Fixes #10360

The pull-request fixes an issue with the new window command in the browser caused by 5abda1f.
The change adds the missing hash (#) for the fragment, which is ultimately used to open a new window without a workspace present.

How to test

browser:

  1. start the example-browser application
  2. open a workspace (ex: theia)
  3. execute the command new window
  4. confirm a new window is opened in a new tab without a workspace present
  5. confirm the new window command works from a window without a workspace present

electron (regression):

  1. start the example-electron application
  2. open a workspace (ex: theia)
  3. execute the command new window
  4. confirm a new electron window is opened, with no workspace present
  5. confirm the new window command works from a window without a workspace present

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto [email protected]

The commit fixes the `new window` command for the browser which
previously would open an incorrect page since the `hash` (`#`) was not
part of the url since we build it ourselves.

Signed-off-by: vince-fugnitto <[email protected]>
@vince-fugnitto vince-fugnitto added bug bugs found in the application core issues related to the core of the application labels Nov 1, 2021
@vince-fugnitto vince-fugnitto self-assigned this Nov 1, 2021
Copy link
Contributor

@alvsan09 alvsan09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested the fix and it works as expected 👍
The code looks good to me as well !

@vince-fugnitto vince-fugnitto merged commit c862e70 into master Nov 9, 2021
@vince-fugnitto vince-fugnitto deleted the vf/fix-new-window branch November 9, 2021 20:30
@github-actions github-actions bot added this to the 1.20.0 milestone Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application core issues related to the core of the application
Projects
None yet
Development

Successfully merging this pull request may close these issues.

core: new window command in the browser does not work
2 participants