Expand description
Utilities for Wind handlers - one pub fn Fn per atomic file.
Shared-state modules (ApplicationRoot, LocalhostUrl, UserdataDir,
RecentlyOpened) are directory modules; #[path] overrides are required
because the old .rs files still exist in the same directory.
Modules§
- Application
Root /Static/Application/→ Sky Target real path. State held here;GetandSetexpose atomic accessors.- Channel
Priority - Maps a wire command string → Echo scheduler lane via the Common
Channelregistry’sPriority()accessor. Unknown commands fall back toPriority::Normalso unclassified callers don’t starve the high-priority queue. - Fiddee
Root $HOME/.fiddee- the user-scope dotfile root. Holds VS Code-style extensions (~/.fiddee/extensions), recently-opened workspaces (~/.fiddee/workspaces/RecentlyOpened.json), per-extension storage (~/.fiddee/extensionStorage,~/.fiddee/globalStorage), and the background-daemon log/data trees (~/.fiddee/logs,~/.fiddee/data).- Json
Value Helpers - Serde-Value helpers shared across Wind handlers.
v_strextracts a string from either a raw JSON string or a VS CodeUriComponentsobject (external/pathfield). Any new cross-cutting coercer that accepts both shapes belongs here. - Localhost
Url - The localhost plugin base URL (
http://localhost:<port>). State held here;GetandSetexpose atomic accessors. - Metadata
Encoding - Converts
std::fs::Metadatato VS Code’sIStatwire shape. TheFileTypebits are VS Code’s enum (File=1, Directory=2, SymbolicLink=64); the readdir atoms also emit these values. - Path
Extraction - Converts VS Code
Uri-shaped arguments to platform-native paths. Co-locates percent-decoding, userdata remapping, and/Static/Applicationrewriting because each is a private helper ofextract_path_from_arg. Percent-decoding is also re-exported for callers outside the VFS path (configuration loaders, etc.). - Recently
Opened - Recently-opened workspaces/files persistence.
- Userdata
Dir - Canonical userdata base directory (Tauri
app_data_dir) + first-access scaffolding. State held here; atomics expose Get/Set/Ensure.