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

vscode-languageserver-types

Package Overview
Dependencies
Maintainers
7
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 1.0.4 to 1.0.5-next.1

46

lib/main.d.ts

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

2

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

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