-
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
fix #5917: normalize the path of terminal link before openning it #5918
fix #5917: normalize the path of terminal link before openning it #5918
Conversation
I currently fix it in the |
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.
Normalization should happen here: https://github.com/theia-ide/theia/blob/d9bb466013049e272666bdbe3aee60d74ecd30f3/packages/core/src/browser/navigatable.ts#L89-L91
that it fixes this issue for all navigatable open handler (editors, previews, and so on)
We cannot use Node.js apis, i.e. |
cd9c407
to
f446b5d
Compare
@akosyakov Code updated. Changes include:
|
Theia's |
@a1994846931931 cool! actually i don't think we need to care about POSIX and Windows, our URI always normalize path to use I'm testing it now. |
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.
It works very well. I like API improvements as well.
@a1994846931931 i will invite you to Theia org as a contributor and after merging your PRs nominate as Theia committer. Quality of your PRs is superb! |
f446b5d
to
6a517e9
Compare
@akosyakov Hey, thanks! It's a great honor! And the code is updated now. |
…alizePath method; 3. normalize uri for NavigatableWidgetOpenHandler Signed-off-by: Cai Xuye <[email protected]>
6a517e9
to
bd4c4a7
Compare
Signed-off-by: Cai Xuye [email protected]
What it does
Normalize the paths of file links contributed by terminals to avoid opening multiple editors for the same file.
How to test
echo "./package.json"
echo ".///package.json"
echo "../${parent}/package.json"
echo "/${absolute/path/to/package.json}"
Review checklist
Reminder for reviewers