vscode-languageserver-types
Advanced tools
Comparing version 3.15.1 to 3.16.0-next.1
@@ -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; |
{ | ||
"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
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
332638
7188
2