Skip to main content

DispatchDeltaWorkspaceFolders

Function DispatchDeltaWorkspaceFolders 

Source
pub async fn DispatchDeltaWorkspaceFolders(
    Added: Vec<WorkspaceFolderStateDTO>,
    Removed: Vec<WorkspaceFolderStateDTO>,
)
Expand description

Dispatch $deltaWorkspaceFolders to Cocoon. Returns immediately if both arrays are empty - no point waking the sidecar for a no-op mutation.

Errors are logged and swallowed: the workspace state is already updated by the caller, so a failed notification should not roll the mutation back. The log tag [LandFix:WsDelta] keeps the event grep-able in dev logs and is deliberately consistent with [LandFix:WsNs] on the Cocoon side.