The workspace is a list of directories which are part of you’re project.
The workspace affects features like global search, the file selector etc. These will show/search files in all workspace directories.
Every time you open the editor it will create a workspace. By default this will be the current working directory. If a session is opened then the session defines the workspace instead.
To add directories to you’re workspace you can either edit the session file or use the virtual file system explorer (see below).
When you add a directory to your workspace then it will be mounted in the VFS under a prefix like ws5://
(each directory has a distinct number).
If you edit a session file while you have that session open then your changes will be overriden when you close Nev
Here is an example from a session file. You can add directories to “additionalPaths”:
{
// ...
"workspaceFolder": {
"name": "My workspace", // Name, can be anything
"settings": {
"path": "/some/path", // Primary workspace folder
"additionalPaths": [ // Additional folders which are available for e.g. choose-file command
"/some/other/path"
]
}
}
}
To add a directory to your workspace:
explore-files
or by pressing SPACE gv
C-p
and C-n
C-a
to add the selected directory to you’re workspaceTo remove a directory from you’re workspace:
ws0
, ws1
etc)C-x