Skip to main content

Module WindServiceHandlers

Module WindServiceHandlers 

Source
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 fn per file; file name mirrors the exported function name. Dispatcher in WindServiceHandlers/mod.rs routes extensions:install and extensions:uninstall into these atoms.
Extensions
Extension management handlers - list, get, query, install/uninstall stubs.
FileSystem
FileSystem atoms - two tiers:
Git
Git subprocess handlers exposed to the renderer via the localGit channel. Mirrors stock VS Code’s ILocalGitService API (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) and isAvailable (synchronous feature detection).
Model
Text model registry and TextFile handlers - open, close, get, update, read, write, save.
NativeDialog
Native dialog (open / save) handler atoms.
NativeHost
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 so grep pub async fn against 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 in Binary/Main/Entry.rs::invoke_handler!, implemented in Binary/IPC/InvokeCommand.rs). The outer Tauri command receives (method: String, params: Value), unwraps params into a Vec<Value>, then delegates here.
register_wind_ipc_handlers

Type Aliases§

ConfigurationOverridesDTO 🔒
ConfigurationTarget 🔒