Vscode workspace files
Folder paths can be absolute or relative.
I created a workspace, added folders, then saved the workspace.
Later I moved that .code-workspace file somewhere else and opened - no contents under the folder name.
In the .code-workspace file either:
- add relative (../) path relative to location of workspace file.
- or add absolute path (/home/user/ worked fine in WSL - where user is actual $USER, but not literally $USER).
microsoft/vscode#33328 Store workspace folder paths in the same format across OS (forward slash) #33328
microsoft/vscode#33188 Relative paths in .code-workspace files are turned into absolute ones on save #33188
https://code.visualstudio.com/docs/editor/multi-root-workspaces
https://stackoverflow.com/questions/44629890/what-is-a-workspace-in-visual-studio-code