Skip to main content

IsUserExtensionScanPath

Function IsUserExtensionScanPath 

Source
fn IsUserExtensionScanPath(DirectoryPath: &Path) -> bool
Expand description

Return true if the given scan path represents a user-writable extension directory (i.e. where extensions:install drops VSIX payloads), not a bundled “built-in” path that ships with the app.

VS Code’s sidebar categorises installed extensions by IsBuiltin: true appears under Built-in, false under Installed (accessible via @installed). Previously this classifier was hardcoded to true for every scan path, so user-installed VSIXes showed up under Built-in and @installed was empty.

The canonical user extension root on macOS/Linux is ~/.land/extensions (VS Code’s equivalent is ~/.vscode/extensions). We also honour a Lodge override in case callers remap it.

Everything else - the Mountain build’s own Resources/extensions, Sky’s Static/Application/extensions, the VS Code submodule’s Dependency/…/extensions - is treated as built-in.