Expand description
§CreateEffectForRequest (Track)
Central routing table that maps string-based commands/RPC methods to typed
effects (MappedEffect). Each domain module handles its own match arms
and returns None for unrecognised methods, enabling the chain-of-
responsibility pattern below.
§Domain modules
| Module | Commands handled |
|---|---|
| Authentication | Authentication.GetSession, Authentication.GetAccounts |
| Clipboard | Clipboard.Read, Clipboard.Write |
| Commands | executeCommand, Command.Execute, Command.GetAll |
| Configuration | config.get, config.update, Configuration.* |
| Debug | Debug.Start, Debug.RegisterConfigurationProvider, Debug.Stop |
| Diagnostics | Diagnostic.Set, Diagnostic.Clear |
| Documents | Document.Save, Document.SaveAs |
| FileSystem | FileSystem.*, FileWatcher.*, openDocument aliases |
| Git | $gitExec |
| Keybinding | Keybinding.GetResolved |
| LanguageFeatures | $languageFeatures:registerProvider |
| Languages | Languages.GetAll |
| NativeHost | NativeHost.OpenExternal |
| SCM | $scm:* |
| Search | findFiles, findTextInFiles, Search.TextSearch |
| Secrets | secrets.get, secrets.store, secrets.delete |
| StatusBar | $statusBar:*, $setStatusBarMessage, $disposeStatusBarMessage |
| Storage | Storage.Get, Storage.Set |
| Task | Task.Fetch, Task.Execute |
| Terminal | $terminal:*, Terminal.* |
| TreeView | $tree:register, tree.* |
| UserInterface | UserInterface.*, Window.* |
| Webview | $webview:*, webview.*, $resolveCustomEditor |
| Workspace | applyEdit, showTextDocument, $updateWorkspaceFolders |
Modules§
- Authentication
- Clipboard
- Commands
- Configuration
- Debug
- Diagnostics
- Documents
- File
Read Alias - Cocoon legacy aliases:
openDocument,readFile,stat- short-hand routes used by Cocoon’s Effect-TS Workspace + FileSystem services before the canonicalFileSystem.*naming was established. Backed by the sameFileSystemReaderprovider. - File
System - File
Watcher - Git
- Keybinding
- Language
Features - Languages
- Native
Host - SCM
- Search
- Secrets
- Status
Bar - Storage
- Task
- Terminal
- Tree
View - User
Interface - Webview
- WindowUI
- Window-namespace UI commands from Cocoon’s window shim. These emit Tauri events to Sky and return immediately (no reply channel wired yet).
- Workspace
Functions§
- Fn
- Maps a string-based method name (command or RPC) to its corresponding effect
constructor, returning a boxed closure (
MappedEffect) that can be executed by the ApplicationRunTime.