Skip to main content

Module CreateEffectForRequest

Module CreateEffectForRequest 

Source
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

ModuleCommands handled
AuthenticationAuthentication.GetSession, Authentication.GetAccounts
ClipboardClipboard.Read, Clipboard.Write
CommandsexecuteCommand, Command.Execute, Command.GetAll
Configurationconfig.get, config.update, Configuration.*
DebugDebug.Start, Debug.RegisterConfigurationProvider, Debug.Stop
DiagnosticsDiagnostic.Set, Diagnostic.Clear
DocumentsDocument.Save, Document.SaveAs
FileSystemFileSystem.*, FileWatcher.*, openDocument aliases
Git$gitExec
KeybindingKeybinding.GetResolved
LanguageFeaturesregister_*_provider (one arm per provider type)
LanguagesLanguages.GetAll
NativeHostNativeHost.OpenExternal
SCM$scm:*
SearchfindFiles, findTextInFiles, Search.TextSearch
Secretssecrets.get, secrets.store, secrets.delete
StatusBar$statusBar:*, $setStatusBarMessage, $disposeStatusBarMessage
StorageStorage.Get, Storage.Set
TaskTask.Fetch, Task.Execute
Terminal$terminal:*, Terminal.*
TreeView$tree:register, tree.*
UserInterfaceUserInterface.*, Window.*
Webview$webview:*, webview.*, $resolveCustomEditor
WorkspaceapplyEdit, showTextDocument, $updateWorkspaceFolders

Modules§

Authentication
Clipboard
Commands
Configuration
Debug
Diagnostics
Documents
Documents Effect (CreateEffectForRequest)
FileReadAlias
Cocoon legacy aliases: openDocument, readFile, stat - short-hand routes used by Cocoon’s Effect-TS Workspace + FileSystem services before the canonical FileSystem.* naming was established. Backed by the same FileSystemReader provider.
FileSystem
FileSystem Effect (CreateEffectForRequest)
FileWatcher
Git
Git Effect (CreateEffectForRequest)
Keybinding
LanguageFeatures
LanguageFeatures Effect (CreateEffectForRequest)
Languages
Languages Effect (CreateEffectForRequest)
NativeHost
SCM
Search
Search Effect (CreateEffectForRequest)
Secrets
StatusBar
StatusBar Effect (CreateEffectForRequest)
Storage
Task
Terminal
TreeView
TreeView Effect (CreateEffectForRequest)
UserInterface
UserInterface Effect (CreateEffectForRequest)
Webview
Webview Effect (CreateEffectForRequest)
WindowUI
Window-namespace UI commands from Cocoon’s window shim. ShowMessage is fire-and-forget (no selection reply needed). ShowQuickPick / ShowInputBox / ShowOpenDialog / ShowSaveDialog block on a oneshot channel that is resolved by the frontend via ResolveUIRequest.
Workspace
Workspace Effect (CreateEffectForRequest)

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.