vscode-languageserver-protocol
Advanced tools
Comparing version 3.12.0 to 3.13.0-next.1
@@ -115,2 +115,44 @@ import { RequestType, RequestType0, NotificationType, NotificationType0 } from 'vscode-jsonrpc'; | ||
/** | ||
* The kind of resource operations supported by the client. | ||
*/ | ||
export declare type ResourceOperationKind = 'create' | 'rename' | 'delete'; | ||
export declare namespace ResourceOperationKind { | ||
/** | ||
* Supports creating new resources. | ||
*/ | ||
const Create: ResourceOperationKind; | ||
/** | ||
* Supports renaming existing resources. | ||
*/ | ||
const Rename: ResourceOperationKind; | ||
/** | ||
* Supports deleting existing resources. | ||
*/ | ||
const Delete: ResourceOperationKind; | ||
} | ||
export declare type FailureHandlingKind = 'abort' | 'transactional' | 'undo' | 'textOnlyTransactional'; | ||
export declare namespace FailureHandlingKind { | ||
/** | ||
* Applying the workspace change is simply aborted if one of the changes provided | ||
* fails. All operations executed before the failing operation stay executed. | ||
*/ | ||
const Abort: FailureHandlingKind; | ||
/** | ||
* All operations are executed transactional. That means they either all | ||
* succeed or no changes at all are applied to the workspace. | ||
*/ | ||
const Transactional: FailureHandlingKind; | ||
/** | ||
* 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 startegy is abort. | ||
*/ | ||
const TextOnlyTransactional: FailureHandlingKind; | ||
/** | ||
* The client tries to undo the operations already executed. But there is no | ||
* guaruntee that this is succeeding. | ||
*/ | ||
const Undo: FailureHandlingKind; | ||
} | ||
/** | ||
* Workspace specific client capabilities. | ||
@@ -133,2 +175,12 @@ */ | ||
documentChanges?: boolean; | ||
/** | ||
* The resource operations the client supports. Clients should at least | ||
* support 'create', 'rename' and 'delete'. | ||
*/ | ||
resourceOperations?: ResourceOperationKind[]; | ||
/** | ||
* The failure handling strategy of a client if applying the workspace edit | ||
* failes. | ||
*/ | ||
failureHandling?: FailureHandlingKind; | ||
}; | ||
@@ -1561,2 +1613,8 @@ /** | ||
applied: boolean; | ||
/** | ||
* Depending on the client's failure handling strategy `failedChange` might | ||
* contain the index of the change that failed. This property is only available | ||
* if the client signals a `failureHandlingStrategy` in its client capabilities. | ||
*/ | ||
failedChange?: number; | ||
} | ||
@@ -1563,0 +1621,0 @@ /** |
@@ -47,2 +47,41 @@ /* -------------------------------------------------------------------------------------------- | ||
})(UnregistrationRequest = exports.UnregistrationRequest || (exports.UnregistrationRequest = {})); | ||
var ResourceOperationKind; | ||
(function (ResourceOperationKind) { | ||
/** | ||
* Supports creating new resources. | ||
*/ | ||
ResourceOperationKind.Create = 'create'; | ||
/** | ||
* Supports renaming existing resources. | ||
*/ | ||
ResourceOperationKind.Rename = 'rename'; | ||
/** | ||
* Supports deleting existing resources. | ||
*/ | ||
ResourceOperationKind.Delete = 'delete'; | ||
})(ResourceOperationKind = exports.ResourceOperationKind || (exports.ResourceOperationKind = {})); | ||
var FailureHandlingKind; | ||
(function (FailureHandlingKind) { | ||
/** | ||
* Applying the workspace change is simply aborted if one of the changes provided | ||
* fails. All operations executed before the failing operation stay executed. | ||
*/ | ||
FailureHandlingKind.Abort = 'abort'; | ||
/** | ||
* All operations are executed transactional. That means they either all | ||
* succeed or no changes at all are applied to the workspace. | ||
*/ | ||
FailureHandlingKind.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 startegy is abort. | ||
*/ | ||
FailureHandlingKind.TextOnlyTransactional = 'textOnlyTransactional'; | ||
/** | ||
* The client tries to undo the operations already executed. But there is no | ||
* guaruntee that this is succeeding. | ||
*/ | ||
FailureHandlingKind.Undo = 'undo'; | ||
})(FailureHandlingKind = exports.FailureHandlingKind || (exports.FailureHandlingKind = {})); | ||
/** | ||
@@ -49,0 +88,0 @@ * Defines how the host (editor) should sync |
{ | ||
"name": "vscode-languageserver-protocol", | ||
"description": "VSCode Language Server Protocol implementation", | ||
"version": "3.12.0", | ||
"version": "3.13.0-next.1", | ||
"author": "Microsoft Corporation", | ||
@@ -18,3 +18,3 @@ "license": "MIT", | ||
"vscode-jsonrpc": "^3.6.2", | ||
"vscode-languageserver-types": "^3.12.0" | ||
"vscode-languageserver-types": "^3.13.0-next.1" | ||
}, | ||
@@ -21,0 +21,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
118853
2917
2