vscode-languageserver-types
Advanced tools
Comparing version 1.0.2 to 1.0.3-next.1
@@ -500,2 +500,7 @@ /** | ||
} | ||
/** | ||
* MarkedString can be used to render human readable text. It is either a markdown string | ||
* or a code-block that provides a language and a code snippet. Note that | ||
* markdown strings will be sanitized - that means html will be escaped. | ||
*/ | ||
export declare type MarkedString = string | { | ||
@@ -505,2 +510,10 @@ language: string; | ||
}; | ||
export declare namespace MarkedString { | ||
/** | ||
* Creates a marked string from plain text. | ||
* | ||
* @param plainText The plain text. | ||
*/ | ||
function fromPlainText(plainText: string): MarkedString; | ||
} | ||
/** | ||
@@ -507,0 +520,0 @@ * The result of a hove request. |
@@ -353,2 +353,14 @@ (function (factory) { | ||
})(CompletionList = exports.CompletionList || (exports.CompletionList = {})); | ||
var MarkedString; | ||
(function (MarkedString) { | ||
/** | ||
* Creates a marked string from plain text. | ||
* | ||
* @param plainText The plain text. | ||
*/ | ||
function fromPlainText(plainText) { | ||
return plainText.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&"); // escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash | ||
} | ||
MarkedString.fromPlainText = fromPlainText; | ||
})(MarkedString = exports.MarkedString || (exports.MarkedString = {})); | ||
/** | ||
@@ -355,0 +367,0 @@ * The ParameterInformation namespace provides helper functions to work with |
{ | ||
"name": "vscode-languageserver-types", | ||
"description": "Types used by the Language server for node", | ||
"version": "1.0.2", | ||
"version": "1.0.3-next.1", | ||
"author": "Microsoft Corporation", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1601
0
54764
2