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

vscode-languageserver-types

Package Overview
Dependencies
Maintainers
8
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-languageserver-types - npm Package Compare versions

Comparing version 3.15.1 to 3.16.0-next.1

42

lib/esm/main.js

@@ -317,2 +317,18 @@ /* --------------------------------------------------------------------------------------------

/**
* The DiagnosticCode namespace provides functions to deal with complex diagnostic codes.
*
* @since 3.16.0 - Proposed state
*/
export var DiagnosticCode;
(function (DiagnosticCode) {
/**
* Checks whether the given liternal conforms to the [DiagnosticCode](#DiagnosticCode) interface.
*/
function is(value) {
var candidate = value;
return candidate !== undefined && candidate !== null && (Is.number(candidate.value) || Is.string(candidate.value)) && Is.string(candidate.target);
}
DiagnosticCode.is = is;
})(DiagnosticCode || (DiagnosticCode = {}));
/**
* The Diagnostic namespace provides helper functions to work with

@@ -832,2 +848,25 @@ * [Diagnostic](#Diagnostic) literals.

/**
* The InsertReplaceEdit namespace provides functions to deal with insert / replace edits.
*
* @since 3.16.0 - Proposed state
*/
export var InsertReplaceEdit;
(function (InsertReplaceEdit) {
/**
* Creates a new insert / replace edit
*/
function create(newText, insert, replace) {
return { newText: newText, insert: insert, replace: replace };
}
InsertReplaceEdit.create = create;
/**
* Checks whether the given liternal conforms to the [InsertReplaceEdit](#InsertReplaceEdit) interface.
*/
function is(value) {
var candidate = value;
return candidate && Is.string(candidate.newText) && Range.is(candidate.insert) && Range.is(candidate.replace);
}
InsertReplaceEdit.is = is;
})(InsertReplaceEdit || (InsertReplaceEdit = {}));
/**
* The CompletionItem namespace provides functions to deal with

@@ -1079,3 +1118,4 @@ * completion items.

(candidate.deprecated === void 0 || Is.boolean(candidate.deprecated)) &&
(candidate.children === void 0 || Array.isArray(candidate.children));
(candidate.children === void 0 || Array.isArray(candidate.children)) &&
(candidate.tags === void 0 || Array.isArray(candidate.tags));
}

@@ -1082,0 +1122,0 @@ DocumentSymbol.is = is;

2

package.json
{
"name": "vscode-languageserver-types",
"description": "Types used by the Language server for node",
"version": "3.15.1",
"version": "3.16.0-next.1",
"author": "Microsoft Corporation",

@@ -6,0 +6,0 @@ "license": "MIT",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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