Skip to main content

STATIC_APPLICATION_ROOT

Static STATIC_APPLICATION_ROOT 

Source
static STATIC_APPLICATION_ROOT: OnceLock<String>
Expand description

Map paths starting with /Static/Application/ to the real Sky Target directory. VS Code’s environmentService computes builtinExtensionsPath as join(FileAccess.asFileUri("").fsPath, "..", "extensions") which resolves to /Static/Application/extensions. Since /Static/Application/ is a URL path (not a real filesystem path), we map it to the actual Sky Target directory where the VS Code assets are served from.

The Sky Target directory is determined relative to the executable’s location in dev mode, or from Tauri’s resource directory in production.