You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS version: OS | Linux x64 4.4.0-19041-Microsoft, Remote | WSL: Ubuntu
Hi,
VSCode has a little issue - files are opened with relative or absolute path, especially when navigating through the code.
I noticed that my bookmarks disappeared, but later realized that on sidebar the same file is listed twice, like so:
1st: /home/user/Proj/src/parser.cpp
2nd: ../src/parser.cpp
Maybe convert path from Code to its absolute form before storing? Just imagine what happened, when I created symbolic link to project directory and used it to open project. Even more weird path cases :)
The text was updated successfully, but these errors were encountered:
As you noticed, this is a VS Code behavior. Prior to the latest release of the extension (v13), I would say this workaround could be easily added, but I don’t see this happening so easily anymore. To be able to support Remotes, I had to use relative paths, because depending on how you opened the folder (locally or remotely), the root folder changes. So I combine both to identify the files
I’ll take a closer look if something can be done, but supporting Remotes is the priority .
I’m closing this issue because it is caused by how VS Code works, with no feasible workaround.
But, maybe using a global storage as requested in #287 this could be achieved, because in the end, the bookmark will be relative to a file in the file system, not in the opened workspace.
Environment/version
Hi,
VSCode has a little issue - files are opened with relative or absolute path, especially when navigating through the code.
I noticed that my bookmarks disappeared, but later realized that on sidebar the same file is listed twice, like so:
1st:
/home/user/Proj/src/parser.cpp
2nd:
../src/parser.cpp
Maybe convert path from Code to its absolute form before storing? Just imagine what happened, when I created symbolic link to project directory and used it to open project. Even more weird path cases :)
The text was updated successfully, but these errors were encountered: