Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vscode-languageserver-protocol

Package Overview
Dependencies
Maintainers
11
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-languageserver-protocol - npm Package Compare versions

Comparing version 3.12.0 to 3.13.0-next.1

58

lib/protocol.d.ts

@@ -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

4

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc