Skip to content

Conversation

@LaureatePoet
Copy link
Contributor

This PR improves the robustness of project name parsing in the Overleaf Workshop VS Code extension.
Main changes:

  • Fixes an issue where project names containing special characters (such as []) could not be parsed correctly.
  • In parseUri (remoteFileSystemProvider.ts), project name is now decoded from the path if present, or falls back to the projectName query parameter if missing.
  • Ensures that project URIs are always generated with encodeURIComponent for the project name (projectManagerProvider.ts).

This resolves the bug where projects with names like [test] could not be opened or used in the extension.


Related Issue

#283

…l characters

- Improve parseUri to correctly handle project names containing special characters such as [].
- Fallback to query.projectName if path part is missing or empty.
- Ensure decodeURIComponent is used for both path and query extraction.
- This fixes issues where projects with names like "[test]" could not be opened in VS Code.
@iamhyc
Copy link
Member

iamhyc commented Jul 3, 2025

Seems good, nice work!

@QianrenLi Please help test it locally. if possible, please also help create a new release after this merged ☺️

@iamhyc iamhyc requested a review from QianrenLi July 3, 2025 13:00
@LaureatePoet LaureatePoet requested a review from iamhyc July 8, 2025 04:39
@iamhyc
Copy link
Member

iamhyc commented Jul 8, 2025

@LaureatePoet Please address the comments above firstly so I can continue to review.

@LaureatePoet
Copy link
Contributor Author

@LaureatePoet Please address the comments above firstly so I can continue to review.

May I resubmit the PR?

@iamhyc iamhyc merged commit 14f30f4 into overleaf-workshop:master Jul 8, 2025
1 check passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2025
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.

2 participants