ApplyWorkspaceEdit

Function ApplyWorkspaceEdit 

Source
pub fn ApplyWorkspaceEdit(
    EditDTO: WorkspaceEditDTO,
) -> ActionEffect<Arc<dyn WorkspaceEditApplier>, CommonError, bool>
Expand description

Creates an effect that, when executed, will apply a WorkspaceEdit to the workspace.

A WorkspaceEdit is a batch of operations that can include text edits to multiple files and filesystem operations like creating, deleting, or renaming files. This effect uses the dedicated WorkspaceEditApplier capability.

§Parameters

  • EditDTO: The WorkspaceEditDTO representing the batch of edits to apply.

§Returns

An ActionEffect that resolves with a bool indicating whether the entire edit was applied successfully.