Skip to main content

resolve_static_application_path

Function resolve_static_application_path 

Source
fn resolve_static_application_path(Path: &str) -> String
Expand description

Map paths starting with /Static/Application/ to the real Sky Target directory. Also accepts the leading-slash-less form - the WASM loader (vscode-onigurumaonig.wasm) resolves asset URLs relative to the current document, which strips the leading slash before the path reaches file:read. Without this branch, tokio::fs::read would be called with a relative path and fail with ENOENT, breaking TextMate syntax highlighting.