Expand description
Wind Service Handlers - dispatcher for every MountainIPCInvoke Tauri
call from Wind/Output/Sky. The mod.rs inside is the central match
that routes wire strings to per-domain atoms or handler files. Atoms
live under WindServiceHandlers/<Domain>/<Atom>.rs following the
one-export-per-file convention.
The previous WindServiceHandler (singular) sibling was merged here
on 2026-04-23: of its 24 files, only 3 functions were live
(extensions install/uninstall, nativeHost showOpenDialog) and those
now live as atoms under WindServiceHandlers/Extension/ and
WindServiceHandlers/NativeDialog/. The remaining 21 files were
dead-code duplicates of plural-side implementations.
Wind Service Handlers - dispatcher and sub-module aggregator.
Domain files handle the individual handler implementations.
Modules§
- Commands
- Command registry handlers - execute and list all registered commands.
- Configuration
- Configuration, environment, and workbench-configuration handlers.
- Extension
- Extension-management IPC handler atoms. One
pub async fnper file; file name mirrors the exported function name. Dispatcher inWindServiceHandlers/mod.rsroutesextensions:installandextensions:uninstallinto these atoms. - Extensions
- Extension management handlers - list, get, query, install/uninstall stubs.
- File
System - FileSystem atoms - two tiers:
- Git
- Git subprocess handlers exposed to the renderer via the
localGitchannel. Mirrors stock VS Code’sILocalGitServiceAPI (src/vs/platform/git/common/localGitService.ts) -clone,pull,checkout,revParse,fetch,revListCount,cancel. Adds two Land-specific auxiliaries:exec(arbitrary argv, used by the Git extension) andisAvailable(synchronous feature detection). - Model
- Text model registry and TextFile handlers - open, close, get, update, read, write, save.
- Native
Dialog - Native dialog (open / save) handler atoms.
- Native
Host - NativeHost atoms - native OS-layer handlers.
- Navigation
- Navigation history and label handlers.
- Output
- Output channel handlers - create, append, clear, show.
- Search
- Search handlers - find in files, find files by glob.
- Storage
- Persistent storage handlers - get, set, delete, keys, bulk operations.
- Terminal
- Terminal and local PTY handlers.
- UI
- UI-layer IPC handlers grouped by domain, one file per domain. Before
the 2026-04-23 split this was a single
UI.rs(~670 LoC, 32 handler fns); now each domain lives in its own file sogrep pub async fnagainst one file tells you exactly which wire methods it owns. - Utilities
- Utilities for Wind handlers, grouped by purpose. Sub-module helpers
(
hex_digit,percent_decode,normalize_uri_path, etc.) stay co- located with their single public entry point - splitting by strict one- fn-per-file would fragment tightly coupled internals for no readability gain.
Functions§
- mountain_
ipc_ invoke - Internal dispatcher for the single front-end Tauri command
MountainIPCInvoke(registered inBinary/Main/Entry.rs::invoke_handler!, implemented inBinary/IPC/InvokeCommand.rs). The outer Tauri command receives(method: String, params: Value), unwrapsparamsinto aVec<Value>, then delegates here. - register_
wind_ ipc_ handlers