-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[workspace] do not re-open an already currently opened workspace #5632
Conversation
No you're not missing anything, I'm missing something as I only updated the |
ea03237
to
02c8650
Compare
I propose checking the URI only and not the entire Steps to reproduce.
Thoughts? |
Sure makes sense! |
Fixes #5630 - fixes an issue that allows users to open a workspace that is currently opened. If the user had the preference `"workspace.preserveWindow"` set to `false` it would open an identical workspace in a new tab, and if it was set to `true` it would reload the workspace. Instead, an additional check is performed to determine if the current workspace and the new destination are equal, and if they are a NOOP is instead performed by returning `undefined`. - fixes issue present in `OPEN` and `OPEN_WORKSPACE` for both the browser and electron based applications. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
02c8650
to
511fbab
Compare
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 have tested it again and it worked. Thank you!
@kittaakos thank you! |
Fixes #5630
Description
"workspace.preserveWindow"
set tofalse
it would open an identical workspace in a new tab, and if it was set totrue
it would reload the workspace. Instead, an additionalcheck is performed to determine if the current workspace and the new destination are equal, and if they are a NOOP is instead performed by returning
undefined
.OPEN
andOPEN_WORKSPACE
for both the browser and electron based applications.The PR was tested with both folders, files, and multi-root workspaces on both the browser and electron.
How to test
A
)A
using the menuFile
andOpen
workspace.preserveWindow
Signed-off-by: Vincent Fugnitto vincent.fugnitto@ericsson.com