Skip to main content

Module WorkspaceFileService

Module WorkspaceFileService 

Source
Expand description

Parsing and serialization of VS Code .code-workspace JSON files.

The format is a JSON object with at minimum a folders array; each entry has a path relative to the workspace file’s parent directory. ParseWorkspaceFile::Fn resolves each path through the canonical-path cache and converts it to a file:// URI.

Modules§

ParseWorkspaceFile
Parse a .code-workspace file’s content and resolve every folder path to a file:// URI.
WorkspaceFile 🔒
Top-level shape of a .code-workspace JSON document. Private to the parser; exposed only as pub(super) for the sibling ParseWorkspaceFile::Fn to deserialise into.
WorkspaceFolderEntry 🔒
Single folders entry in a .code-workspace JSON document. Path is relative to the workspace file’s parent directory.