fix(app): normalize Windows paths for consistent project matching#11668
fix(app): normalize Windows paths for consistent project matching#11668Rettend wants to merge 1 commit intoanomalyco:devfrom
Conversation
On Windows, paths can use either forward slashes (C:/Users/...) or backslashes (C:\Users\...). Deep links from external apps like GitButler use forward slashes, while paths from the file system may use backslashes. This caused duplicate project entries and broken ~ display. - Add normalizePath() to convert backslashes to forward slashes - Normalize paths in project open/close/expand/collapse/move/touch - Fix ~ home directory display by normalizing before comparison - Normalize paths at entry points (openProject, navigateToProject)
|
The following comment was made by an LLM, it may be inaccurate: Based on the search results, I found several related PRs that address similar Windows path handling and project matching issues: Potentially Related PRs:
Why they're related: |
What does this PR do?
fixes #11666, see issue description.
How did you verify your code works?
ctrl+oopencodedeep link-> only one project is open
Admittedly the scope of these changes is larger, and I am not sure this is the best way to fix the issue.