microsoft / live-share

Real-time collaborative development from the comfort of your favorite tools
http://aka.ms/vsls
Creative Commons Attribution 4.0 International
2.28k stars 253 forks source link

[VS Code] Unable to open "File not found" for files not in the first folder in the workspace #1959

Closed phizaz closed 4 years ago

phizaz commented 5 years ago

vscode2.zip

Product and Version [VS/VSCode]: VSCode OS Version [macOS/Windows]: Windows 10 Live Share Extension Version: 1.0.45

Target Platform or Language [e.g. Node.js]: Python

Steps to Reproduce / Scenario:

Assuming there are more than one folders in a workspace, I cannot search and open a file (Ctrl + P; typing the file name; enter) of the second workspace if it has not been opened manually before.

image

The error was Unable to open <filename>: File not found (vsls:/~1/~1/<folder>/<filename>.

After the file has been opened manually (click on the file), then the search results in, and I can now open the file:

image

Interestingly, the correct path seems to be /~1/<folder>/<filename> not /~1/~1/<folder>/<filename>.

PS. This problem doesn't apply to files in the first folder in the workspace.

daytonellwanger commented 5 years ago

@nandiniYeltiwar could you take a look?

lostintangent commented 4 years ago

This issue should now be resolved. Please re-open it if you're still experiencing this problem. Thanks!