WorkSpaceEditApplier

Trait WorkSpaceEditApplier 

Source
pub trait WorkSpaceEditApplier:
    Environment
    + Send
    + Sync {
    // Required method
    fn ApplyWorkSpaceEdit<'life0, 'async_trait>(
        &'life0 self,
        EditDTO: WorkSpaceEditDTO,
    ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

An abstract service contract for an environment component that can apply a WorkSpaceEdit.

A WorkSpaceEdit is a complex, potentially transactional operation that can include text edits to multiple files, as well as file system operations like creating, deleting, or renaming files. This trait isolates the complex logic of applying such edits.

Required Methods§

Source

fn ApplyWorkSpaceEdit<'life0, 'async_trait>( &'life0 self, EditDTO: WorkSpaceEditDTO, ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Applies the given WorkSpaceEditDTO to the workspace.

§Parameters
  • EditDTO: The DTO representing the batch of edits to apply.
§Returns

A Result indicating whether the entire edit was applied successfully. A false value may indicate a partial success or a user cancellation of one of the steps.

Implementors§