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.0-next.5 to 3.15.0-next.6

50

lib/esm/main.d.ts

@@ -1037,3 +1037,4 @@ /**

* The format of the insert text. The format applies to both the `insertText` property
* and the `newText` property of a provided `textEdit`.
* and the `newText` property of a provided `textEdit`. If ommitted defaults to
* `InsertTextFormat.PlainText`.
*/

@@ -1798,3 +1799,6 @@ insertTextFormat?: InsertTextFormat;

/**
* A simple text document. Not to be implemented.
* A simple text document. Not to be implemented. The document keeps the content
* as string.
*
* @deprecated Use the text document from the new vscode-languageserver-textdocument package.
*/

@@ -1861,2 +1865,5 @@ export interface TextDocument {

}
/**
* @deprecated Use the text document from the new vscode-languageserver-textdocument package.
*/
export declare namespace TextDocument {

@@ -1877,3 +1884,3 @@ /**

/**
* Event to signal changes to a simple text document.
* @deprecated No longer used, use TextDocumentChangeEvent<TextDocument> from vscode-languageserver instead.
*/

@@ -1888,19 +1895,4 @@ export interface TextDocumentChangeEvent {

* Represents reasons why a text document is saved.
* @deprecated No longer used, use TextDocumentWillSaveEvent<TextDocument> from vscode-languageserver instead.
*/
export declare namespace TextDocumentSaveReason {
/**
* Manually triggered, e.g. by the user pressing save, by starting debugging,
* or by an API call.
*/
const Manual: 1;
/**
* Automatic after a delay.
*/
const AfterDelay: 2;
/**
* When the editor lost focus.
*/
const FocusOut: 3;
}
export declare type TextDocumentSaveReason = 1 | 2 | 3;
export interface TextDocumentWillSaveEvent {

@@ -1914,22 +1906,4 @@ /**

*/
reason: TextDocumentSaveReason;
reason: 1 | 2 | 3;
}
/**
* An event describing a change to a text document. If range and rangeLength are omitted
* the new text is considered to be the full content of the document.
*/
export interface TextDocumentContentChangeEvent {
/**
* The range of the document that changed.
*/
range?: Range;
/**
* The length of the range that got replaced.
*/
rangeLength?: number;
/**
* The new text of the document.
*/
text: string;
}
export {};

@@ -1280,2 +1280,5 @@ /* --------------------------------------------------------------------------------------------

export var EOL = ['\n', '\r\n', '\r'];
/**
* @deprecated Use the text document from the new vscode-languageserver-textdocument package.
*/
export var TextDocument;

@@ -1360,21 +1363,2 @@ (function (TextDocument) {

})(TextDocument || (TextDocument = {}));
/**
* Represents reasons why a text document is saved.
*/
export var TextDocumentSaveReason;
(function (TextDocumentSaveReason) {
/**
* Manually triggered, e.g. by the user pressing save, by starting debugging,
* or by an API call.
*/
TextDocumentSaveReason.Manual = 1;
/**
* Automatic after a delay.
*/
TextDocumentSaveReason.AfterDelay = 2;
/**
* When the editor lost focus.
*/
TextDocumentSaveReason.FocusOut = 3;
})(TextDocumentSaveReason || (TextDocumentSaveReason = {}));
var FullTextDocument = /** @class */ (function () {

@@ -1386,3 +1370,3 @@ function FullTextDocument(uri, languageId, version, content) {

this._content = content;
this._lineOffsets = null;
this._lineOffsets = undefined;
}

@@ -1421,6 +1405,6 @@ Object.defineProperty(FullTextDocument.prototype, "uri", {

this._version = version;
this._lineOffsets = null;
this._lineOffsets = undefined;
};
FullTextDocument.prototype.getLineOffsets = function () {
if (this._lineOffsets === null) {
if (this._lineOffsets === undefined) {
var lineOffsets = [];

@@ -1427,0 +1411,0 @@ var text = this._content;

@@ -1037,3 +1037,4 @@ /**

* The format of the insert text. The format applies to both the `insertText` property
* and the `newText` property of a provided `textEdit`.
* and the `newText` property of a provided `textEdit`. If ommitted defaults to
* `InsertTextFormat.PlainText`.
*/

@@ -1798,3 +1799,6 @@ insertTextFormat?: InsertTextFormat;

/**
* A simple text document. Not to be implemented.
* A simple text document. Not to be implemented. The document keeps the content
* as string.
*
* @deprecated Use the text document from the new vscode-languageserver-textdocument package.
*/

@@ -1861,2 +1865,5 @@ export interface TextDocument {

}
/**
* @deprecated Use the text document from the new vscode-languageserver-textdocument package.
*/
export declare namespace TextDocument {

@@ -1877,3 +1884,3 @@ /**

/**
* Event to signal changes to a simple text document.
* @deprecated No longer used, use TextDocumentChangeEvent<TextDocument> from vscode-languageserver instead.
*/

@@ -1888,19 +1895,4 @@ export interface TextDocumentChangeEvent {

* Represents reasons why a text document is saved.
* @deprecated No longer used, use TextDocumentWillSaveEvent<TextDocument> from vscode-languageserver instead.
*/
export declare namespace TextDocumentSaveReason {
/**
* Manually triggered, e.g. by the user pressing save, by starting debugging,
* or by an API call.
*/
const Manual: 1;
/**
* Automatic after a delay.
*/
const AfterDelay: 2;
/**
* When the editor lost focus.
*/
const FocusOut: 3;
}
export declare type TextDocumentSaveReason = 1 | 2 | 3;
export interface TextDocumentWillSaveEvent {

@@ -1914,22 +1906,4 @@ /**

*/
reason: TextDocumentSaveReason;
reason: 1 | 2 | 3;
}
/**
* An event describing a change to a text document. If range and rangeLength are omitted
* the new text is considered to be the full content of the document.
*/
export interface TextDocumentContentChangeEvent {
/**
* The range of the document that changed.
*/
range?: Range;
/**
* The length of the range that got replaced.
*/
rangeLength?: number;
/**
* The new text of the document.
*/
text: string;
}
export {};

@@ -1290,2 +1290,5 @@ (function (factory) {

exports.EOL = ['\n', '\r\n', '\r'];
/**
* @deprecated Use the text document from the new vscode-languageserver-textdocument package.
*/
var TextDocument;

@@ -1370,21 +1373,2 @@ (function (TextDocument) {

})(TextDocument = exports.TextDocument || (exports.TextDocument = {}));
/**
* Represents reasons why a text document is saved.
*/
var TextDocumentSaveReason;
(function (TextDocumentSaveReason) {
/**
* Manually triggered, e.g. by the user pressing save, by starting debugging,
* or by an API call.
*/
TextDocumentSaveReason.Manual = 1;
/**
* Automatic after a delay.
*/
TextDocumentSaveReason.AfterDelay = 2;
/**
* When the editor lost focus.
*/
TextDocumentSaveReason.FocusOut = 3;
})(TextDocumentSaveReason = exports.TextDocumentSaveReason || (exports.TextDocumentSaveReason = {}));
var FullTextDocument = /** @class */ (function () {

@@ -1396,3 +1380,3 @@ function FullTextDocument(uri, languageId, version, content) {

this._content = content;
this._lineOffsets = null;
this._lineOffsets = undefined;
}

@@ -1431,6 +1415,6 @@ Object.defineProperty(FullTextDocument.prototype, "uri", {

this._version = version;
this._lineOffsets = null;
this._lineOffsets = undefined;
};
FullTextDocument.prototype.getLineOffsets = function () {
if (this._lineOffsets === null) {
if (this._lineOffsets === undefined) {
var lineOffsets = [];

@@ -1437,0 +1421,0 @@ var text = this._content;

{
"name": "vscode-languageserver-types",
"description": "Types used by the Language server for node",
"version": "3.15.0-next.5",
"version": "3.15.0-next.6",
"author": "Microsoft Corporation",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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