View Source GenLSP.Enumerations.FailureHandlingKind (gen_lsp v0.10.0)

Link to this section Summary

Functions

Applying the workspace change is simply aborted if one of the changes provided fails. All operations executed before the failing operation stay executed.

If the workspace edit contains only textual file changes they are executed transactional. If resource changes (create, rename or delete file) are part of the change the failure handling strategy is abort.

All operations are executed transactional. That means they either all succeed or no changes at all are applied to the workspace.

The client tries to undo the operations already executed. But there is no guarantee that this is succeeding.

Link to this section Types

Link to this section Functions

@spec abort() :: String.t()

Applying the workspace change is simply aborted if one of the changes provided fails. All operations executed before the failing operation stay executed.

Link to this function

text_only_transactional()

View Source
@spec text_only_transactional() :: String.t()

If the workspace edit contains only textual file changes they are executed transactional. If resource changes (create, rename or delete file) are part of the change the failure handling strategy is abort.

@spec transactional() :: String.t()

All operations are executed transactional. That means they either all succeed or no changes at all are applied to the workspace.

@spec undo() :: String.t()

The client tries to undo the operations already executed. But there is no guarantee that this is succeeding.