vscode-languageserver-types
Advanced tools
Comparing version 1.0.4 to 1.0.5-next.1
@@ -293,2 +293,32 @@ /** | ||
/** | ||
* A snippet string is a template which allows to insert text | ||
* and to control the editor cursor when insertion happens. | ||
* | ||
* A snippet can define tab stops and placeholders with `$1`, `$2` | ||
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to | ||
* the end of the snippet. Placeholders with equal identifiers are linked, | ||
* that is typing in one will update others too. | ||
*/ | ||
export interface SnippetString { | ||
/** | ||
* The snippet string. | ||
*/ | ||
value: string; | ||
} | ||
/** | ||
* The SnippetString namespace provides helper functions to work with | ||
* [SnippetString](#SnippetString) literals. | ||
*/ | ||
export declare namespace SnippetString { | ||
/** | ||
* Creates a new SnippetString literal. | ||
* @param uri The document's uri. | ||
*/ | ||
function create(value: string): SnippetString; | ||
/** | ||
* Checks whether the given literal conforms to the [SnippetString](#SnippetString) interface. | ||
*/ | ||
function is(value: any): value is SnippetString; | ||
} | ||
/** | ||
* A literal to identify a text document in the client. | ||
@@ -448,7 +478,19 @@ */ | ||
*/ | ||
insertText?: string; | ||
insertText?: string | SnippetString; | ||
/** | ||
* A range of text that should be replaced by this completion item. | ||
* | ||
* Defaults to a range from the start of the current word to the | ||
* current position. | ||
* | ||
* *Note:* The range must be a single line and it must | ||
* contain the position at which completion has been requested. | ||
*/ | ||
range?: Range; | ||
/** | ||
* * @deprecated **Deprecated** in favor of `CompletionItem.insertText` and `CompletionItem.range`. | ||
* | ||
* An [edit](#TextEdit) which is applied to a document when selecting | ||
* this completion. When an edit is provided the value of | ||
* [insertText](#CompletionItem.insertText) is ignored. | ||
* [insertText](#CompletionItem.insertText) and [range](#CompletionItem.range) is ignored. | ||
*/ | ||
@@ -455,0 +497,0 @@ textEdit?: TextEdit; |
@@ -249,2 +249,25 @@ (function (factory) { | ||
/** | ||
* The SnippetString namespace provides helper functions to work with | ||
* [SnippetString](#SnippetString) literals. | ||
*/ | ||
var SnippetString; | ||
(function (SnippetString) { | ||
/** | ||
* Creates a new SnippetString literal. | ||
* @param uri The document's uri. | ||
*/ | ||
function create(value) { | ||
return { value: value }; | ||
} | ||
SnippetString.create = create; | ||
/** | ||
* Checks whether the given literal conforms to the [SnippetString](#SnippetString) interface. | ||
*/ | ||
function is(value) { | ||
var candidate = value; | ||
return Is.defined(candidate) && Is.string(candidate.value); | ||
} | ||
SnippetString.is = is; | ||
})(SnippetString = exports.SnippetString || (exports.SnippetString = {})); | ||
/** | ||
* The TextDocumentIdentifier namespace provides helper functions to work with | ||
@@ -251,0 +274,0 @@ * [TextDocumentIdentifier](#TextDocumentIdentifier) literals. |
{ | ||
"name": "vscode-languageserver-types", | ||
"description": "Types used by the Language server for node", | ||
"version": "1.0.4", | ||
"version": "1.0.5-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
59600
1738
2