-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Yaohai Zheng <[email protected]>
- Loading branch information
Showing
20 changed files
with
1,893 additions
and
25 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/FailureHandlingKind.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/****************************************************************************** | ||
* Copyright (c) 2018 Microsoft Corporation and others. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License v. 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0, | ||
* or the Eclipse Distribution License v. 1.0 which is available at | ||
* http://www.eclipse.org/org/documents/edl-v10.php. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause | ||
******************************************************************************/ | ||
|
||
package org.eclipse.lsp4j; | ||
|
||
/** | ||
* The kind of failure handling supported by the client. | ||
*/ | ||
public final class FailureHandlingKind { | ||
|
||
private FailureHandlingKind() { | ||
} | ||
|
||
/** | ||
* Applying the workspace change is simply aborted if one of the changes | ||
* provided fails. All operations executed before the failing operation stay | ||
* executed. | ||
*/ | ||
public static final String Abort = "abort"; | ||
|
||
/** | ||
* All operations are executed transactional. That means they either all succeed | ||
* or no changes at all are applied to the workspace. | ||
*/ | ||
public static final String Transactional = "transactional"; | ||
|
||
/** | ||
* 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. | ||
*/ | ||
public static final String TextOnlyTransactional = "textOnlyTransactional"; | ||
|
||
/** | ||
* The client tries to undo the operations already executed. But there is no | ||
* guaruntee that this is succeeding. | ||
*/ | ||
public static final String Undo = "undo"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.