Skip to main content

Module Workspace

Module Workspace 

Source
Expand description

Workspace-domain handlers for CocoonService. Five entry points cover document open/save, edit application, configuration changes, and workspace-folder updates.

Modulesยง

ApplyEdit
Apply a sequence of text edits to a document via sky://editor/applyEdits. Each edit carries a range (start/end position) plus the replacement newText.
OpenDocument
Open a document in the workbench via sky://editor/openDocument.
SaveAll
Save every dirty editor (optionally including untitled) via sky://editor/saveAll.
UpdateConfiguration
Forward a Cocoon-side configuration change to Sky for workbench settings refresh.
UpdateWorkspaceFolders
Apply folder additions/removals to ApplicationState.Workspace. URIs drive removal matching; new folders are appended after the existing set so existing indices stay stable.