File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ namespace OmniSharp.Extensions.LanguageServer.Protocol.Models
8
8
public enum FailureHandlingKind
9
9
{
10
10
/// <summary>
11
- /// All operations are executed transactional. That means they either all
12
- /// succeed or no changes at all are applied to the workspace .
11
+ /// Applying the workspace change is simply aborted if one of the changes provided
12
+ /// fails. All operations executed before the failing operation stay executed .
13
13
/// </summary>
14
14
[ EnumMember ( Value = "abort" ) ]
15
15
Abort ,
@@ -20,9 +20,17 @@ public enum FailureHandlingKind
20
20
[ EnumMember ( Value = "transactional" ) ]
21
21
Transactional ,
22
22
/// <summary>
23
- ///Supports deleting existing files and folders.
23
+ /// If the workspace edit contains only textual file changes they are executed transactional.
24
+ /// If resource changes (create, rename or delete file) are part of the change the failure
25
+ /// handling strategy is abort.
26
+ /// </summary>
27
+ [ EnumMember ( Value = "textOnlyTransactional" ) ]
28
+ TextOnlyTransactional ,
29
+ /// <summary>
30
+ /// The client tries to undo the operations already executed. But there is no
31
+ /// guarantee that this is succeeding.
24
32
/// </summary>
25
- [ EnumMember ( Value = "delete " ) ]
26
- Delete ,
33
+ [ EnumMember ( Value = "undo " ) ]
34
+ Undo ,
27
35
}
28
36
}
You can’t perform that action at this time.
0 commit comments