You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(Mountain): Fix extension location URI marshalling for VS Code renderer
VS Code's URI revival system ignores objects lacking the `$mid === 1` marshalling marker. Without it, extension locations sent to the renderer become plain `UriComponents` bags where `.fsPath` and `.with` are undefined — the sidebar silently filters the entire batch out.
This change adds three functions in Extensions.rs:
- `Normalize_Location_To_UriComponents`: converts the scanner's raw `file://` URL string into VS Code's `UriComponents` object shape
- `Stamp_Mid_Uri`: attaches `$mid: 1` to any UriComponents that lack it
- `Parse_File_Url_To_UriComponents`: parses `file:///absolute/path` URLs into the required structure
Also extends `BuildInitialUrl` to recognize Mountain's own `{ uri: "file://…" }` format (written by the recently opened persistence) alongside VS Code's historical `folderUri`/`workspace.configPath` shapes for backward compatibility with imported profiles.
Extension locations in the sidebar now resolve correctly.
0 commit comments