Skip to main content

ParseWorkspaceFolders

Function ParseWorkspaceFolders 

Source
pub fn ParseWorkspaceFolders() -> Vec<PathBuf>
Expand description

Parse workspace folder paths from CLI / env with the following precedence:

  1. Every --folder <path> pair on the command line (repeatable).
  2. Any non-flag positional argument that resolves to an existing directory (convention used when the user drags a folder onto the app).
  3. Open env var (colon-separated on POSIX, ;-separated on Windows to match the platform’s PATH delimiter).
  4. The current working directory, if no other source is available AND Walk isn’t set to false.

Returned paths are canonicalised; non-existent / non-directory entries are dropped with a warning.