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
fix: normalize path before calling showItemInFolder
and openPath
#41642
Conversation
Not sure why this Mac test is the only one that's failing; it doesn't seem relevant to me. EDIT: Looks like this is happening to others so probably a false positive: #41577 (comment) Lines 2110 to 2142 in 7609156
|
Not sure who to ask for review on this (maybe @codebytere?), very small change anyway. |
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.
Thanks for working on this! It also looks like shell.openPath
might be subject to the same issue in the Windows impl? We should address that here as well if that's the case.
9f07955
to
dcc778d
Compare
showItemInFolder
showItemInFolder
and openPath
d7556f7
to
8273670
Compare
8273670
to
d578485
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.
thanks!
Congrats on merging your first pull request! 🎉🎉🎉 |
Release Notes Persisted
|
I have automatically backported this PR to "28-x-y", please check out #41670 |
I have automatically backported this PR to "30-x-y", please check out #41671 |
I have automatically backported this PR to "29-x-y", please check out #41672 |
Description of Change
Resolves #11617, e.g. before Windows Explorer wouldn't open when calling
shell.showItemInFolder(fullPath)
with a path that contains forward slashes. This PR makes the change of first normalizing the path that was passed in usingNormalizePathSeparators()
.Checklist
npm test
passesRelease Notes
Notes: Fixed
shell.showItemInFolder
not opening Windows Explorer if the passed path contains forward slashes