Open
Description
Reviews created on Windows store file paths incompatible with WSL2
Description
When the code reviews created in Windows are opened on the Windows subsystem for Linux (Ubuntu), a double-click on a review item results in a error "Cannot not open file: '/home/user/repo/\app\path\file.ext': File does not exist"
Yes, the error message contains double negation, but this is a secondary issue.
Reproduction
- Open VS Code on Windows and make some code review comments on separate files. Commit the code review file.
- Open VS Code and access files on WSL2 (Ubuntu was used) and click on any of the code review comments.
- Observe the error
Error message
Cannot not open file: '/home/user/repo/\app\path\file.ext': File does not exist
🌍 Your Environment
VS Code on Windows 10 for creating code review items.
VS Code on Windows 11 accessing files on WSL for viewing code review items.
Workaround
Replacing backslashes with slashes in the code review CSV file allows to open the files on VS Code.