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

vscode-languageclient

Package Overview
Dependencies
Maintainers
9
Versions
302
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-languageclient - npm Package Compare versions

Comparing version 0.10.0-pre.21 to 0.10.0-pre.22

4

lib/main.js

@@ -238,3 +238,3 @@ /*---------------------------------------------------------

connection.onDiagnostics(function (params) { return _this.handleDiagnostics(params); });
if (_this._capabilites.textDocumentSync !== protocol_1.TextDocumentSync.None) {
if (_this._capabilites.textDocumentSync !== protocol_1.TextDocumentSyncKind.None) {
vscode_1.workspace.onDidOpenTextDocument(function (t) { return _this.onDidOpenTextDoument(connection, t); }, null, _this._listeners);

@@ -328,3 +328,3 @@ vscode_1.workspace.onDidChangeTextDocument(function (t) { return _this.onDidChangeTextDocument(connection, t); }, null, _this._listeners);

var uri = event.document.uri.toString();
if (this._capabilites.textDocumentSync === protocol_1.TextDocumentSync.Incremental) {
if (this._capabilites.textDocumentSync === protocol_1.TextDocumentSyncKind.Incremental) {
converters_1.asChangeTextDocumentParams(event).forEach(function (param) { return connection.didChangeTextDocument(param); });

@@ -331,0 +331,0 @@ }

import { RequestType, NotificationType } from 'vscode-jsonrpc';
export interface HostCapabilities {
}
export declare namespace TextDocumentSync {
const None: number;
const Full: number;
const Incremental: number;
export declare enum TextDocumentSyncKind {
None = 0,
Full = 1,
Incremental = 2,
}

@@ -19,3 +19,3 @@ export interface ServerCapabilities {

export declare namespace InitializeRequest {
let type: RequestType<InitializeParams, InitializeResult, InitializeError>;
const type: RequestType<InitializeParams, InitializeResult, InitializeError>;
}

@@ -39,3 +39,3 @@ export interface InitializeParams {

export declare namespace ShutdownRequest {
let type: RequestType<ShutdownParams, void, void>;
const type: RequestType<ShutdownParams, void, void>;
}

@@ -49,3 +49,3 @@ export interface ShutdownParams {

export declare namespace ExitNotification {
let type: NotificationType<ExitParams>;
const type: NotificationType<ExitParams>;
}

@@ -61,3 +61,3 @@ export interface ExitParams {

export declare namespace DidChangeConfigurationNotification {
let type: NotificationType<DidChangeConfigurationParams>;
const type: NotificationType<DidChangeConfigurationParams>;
}

@@ -67,7 +67,7 @@ export interface DidChangeConfigurationParams {

}
export declare namespace MessageType {
const Error: number;
const Warning: number;
const Info: number;
const Log: number;
export declare enum MessageType {
Error = 1,
Warning = 2,
Info = 3,
Log = 4,
}

@@ -79,3 +79,3 @@ /**

export declare namespace ShowMessageNotification {
let type: NotificationType<ShowMessageParams>;
const type: NotificationType<ShowMessageParams>;
}

@@ -146,3 +146,3 @@ export interface ShowMessageParams {

export declare namespace DidOpenTextDocumentNotification {
let type: NotificationType<DidOpenTextDocumentParams>;
const type: NotificationType<DidOpenTextDocumentParams>;
}

@@ -156,3 +156,3 @@ export interface DidOpenTextDocumentParams extends TextDocumentIdentifier {

export declare namespace DidChangeTextDocumentNotification {
let type: NotificationType<DidChangeTextDocumentParams>;
const type: NotificationType<DidChangeTextDocumentParams>;
}

@@ -178,3 +178,3 @@ /**

export declare namespace DidCloseTextDocumentNotification {
let type: NotificationType<DidCloseTextDocumentParams>;
const type: NotificationType<DidCloseTextDocumentParams>;
}

@@ -184,3 +184,3 @@ export interface DidCloseTextDocumentParams extends TextDocumentIdentifier {

export declare namespace DidChangeWatchedFilesNotification {
let type: NotificationType<DidChangeWatchedFilesParams>;
const type: NotificationType<DidChangeWatchedFilesParams>;
}

@@ -190,6 +190,6 @@ export interface DidChangeWatchedFilesParams {

}
export declare namespace FileChangeType {
let Created: number;
let Changed: number;
let Deleted: number;
export declare enum FileChangeType {
Created = 1,
Changed = 2,
Deleted = 3,
}

@@ -205,3 +205,3 @@ export interface FileEvent {

export declare namespace PublishDiagnosticsNotification {
let type: NotificationType<PublishDiagnosticsParams>;
const type: NotificationType<PublishDiagnosticsParams>;
}

@@ -218,7 +218,7 @@ export interface PublishDiagnosticsParams {

}
export declare namespace Severity {
let Error: number;
let Warning: number;
let Information: number;
let Hint: number;
export declare enum Severity {
Error = 0,
Warning = 1,
Information = 2,
Hint = 3,
}

@@ -251,4 +251,52 @@ /**

}
export declare enum CompletionItemKind {
Text = 0,
Method = 1,
Function = 2,
Constructor = 3,
Field = 4,
Variable = 5,
Class = 6,
Interface = 7,
Module = 8,
Property = 9,
Unit = 10,
Value = 11,
Enum = 12,
Keyword = 13,
Snippet = 14,
Color = 15,
File = 16,
Reference = 17,
}
export interface CompletionItem {
label: string;
kind?: number;
detail?: string;
documentation?: string;
sortText?: string;
filterText?: string;
insertText?: string;
textEdit?: TextEdit;
}
export declare namespace CompletionItem {
function create(label: string): CompletionItem;
}
export interface TextEdit {
range: Range;
newText: string;
}
export declare namespace TextEdit {
function replace(range: Range, newText: string): TextEdit;
function insert(position: Position, newText: string): TextEdit;
function del(range: Range): TextEdit;
}
export declare namespace CompletionRequest {
const type: RequestType<TextDocumentPosition, CompletionItem[], void>;
}
export declare namespace CompletionResolveRequest {
const type: RequestType<CompletionItem, CompletionItem, void>;
}
export declare namespace HoverRequest {
let type: RequestType<TextDocumentPosition, HoverResult, void>;
const type: RequestType<TextDocumentPosition, HoverResult, void>;
}

@@ -255,0 +303,0 @@ /**

@@ -5,8 +5,8 @@ /*---------------------------------------------------------

'use strict';
var TextDocumentSync;
(function (TextDocumentSync) {
TextDocumentSync.None = 0;
TextDocumentSync.Full = 1;
TextDocumentSync.Incremental = 2;
})(TextDocumentSync = exports.TextDocumentSync || (exports.TextDocumentSync = {}));
(function (TextDocumentSyncKind) {
TextDocumentSyncKind[TextDocumentSyncKind["None"] = 0] = "None";
TextDocumentSyncKind[TextDocumentSyncKind["Full"] = 1] = "Full";
TextDocumentSyncKind[TextDocumentSyncKind["Incremental"] = 2] = "Incremental";
})(exports.TextDocumentSyncKind || (exports.TextDocumentSyncKind = {}));
var TextDocumentSyncKind = exports.TextDocumentSyncKind;
/**

@@ -49,9 +49,9 @@ * The initialize command is send from the client to the worker.

})(DidChangeConfigurationNotification = exports.DidChangeConfigurationNotification || (exports.DidChangeConfigurationNotification = {}));
var MessageType;
(function (MessageType) {
MessageType.Error = 1;
MessageType.Warning = 2;
MessageType.Info = 3;
MessageType.Log = 4;
})(MessageType = exports.MessageType || (exports.MessageType = {}));
MessageType[MessageType["Error"] = 1] = "Error";
MessageType[MessageType["Warning"] = 2] = "Warning";
MessageType[MessageType["Info"] = 3] = "Info";
MessageType[MessageType["Log"] = 4] = "Log";
})(exports.MessageType || (exports.MessageType = {}));
var MessageType = exports.MessageType;
/**

@@ -89,8 +89,8 @@ * The show message event is send from a worker to a client to ask

})(DidChangeWatchedFilesNotification = exports.DidChangeWatchedFilesNotification || (exports.DidChangeWatchedFilesNotification = {}));
var FileChangeType;
(function (FileChangeType) {
FileChangeType.Created = 1;
FileChangeType.Changed = 2;
FileChangeType.Deleted = 3;
})(FileChangeType = exports.FileChangeType || (exports.FileChangeType = {}));
FileChangeType[FileChangeType["Created"] = 1] = "Created";
FileChangeType[FileChangeType["Changed"] = 2] = "Changed";
FileChangeType[FileChangeType["Deleted"] = 3] = "Deleted";
})(exports.FileChangeType || (exports.FileChangeType = {}));
var FileChangeType = exports.FileChangeType;
/**

@@ -104,10 +104,62 @@ * Diagnostics notification are send from the worker to clients to signal

})(PublishDiagnosticsNotification = exports.PublishDiagnosticsNotification || (exports.PublishDiagnosticsNotification = {}));
var Severity;
(function (Severity) {
Severity.Error = 0;
Severity.Warning = 1;
Severity.Information = 2;
Severity.Hint = 3;
})(Severity = exports.Severity || (exports.Severity = {}));
//---- Hover support -------------------------------
Severity[Severity["Error"] = 0] = "Error";
Severity[Severity["Warning"] = 1] = "Warning";
Severity[Severity["Information"] = 2] = "Information";
Severity[Severity["Hint"] = 3] = "Hint";
})(exports.Severity || (exports.Severity = {}));
var Severity = exports.Severity;
//---- Completion Support --------------------------
(function (CompletionItemKind) {
CompletionItemKind[CompletionItemKind["Text"] = 0] = "Text";
CompletionItemKind[CompletionItemKind["Method"] = 1] = "Method";
CompletionItemKind[CompletionItemKind["Function"] = 2] = "Function";
CompletionItemKind[CompletionItemKind["Constructor"] = 3] = "Constructor";
CompletionItemKind[CompletionItemKind["Field"] = 4] = "Field";
CompletionItemKind[CompletionItemKind["Variable"] = 5] = "Variable";
CompletionItemKind[CompletionItemKind["Class"] = 6] = "Class";
CompletionItemKind[CompletionItemKind["Interface"] = 7] = "Interface";
CompletionItemKind[CompletionItemKind["Module"] = 8] = "Module";
CompletionItemKind[CompletionItemKind["Property"] = 9] = "Property";
CompletionItemKind[CompletionItemKind["Unit"] = 10] = "Unit";
CompletionItemKind[CompletionItemKind["Value"] = 11] = "Value";
CompletionItemKind[CompletionItemKind["Enum"] = 12] = "Enum";
CompletionItemKind[CompletionItemKind["Keyword"] = 13] = "Keyword";
CompletionItemKind[CompletionItemKind["Snippet"] = 14] = "Snippet";
CompletionItemKind[CompletionItemKind["Color"] = 15] = "Color";
CompletionItemKind[CompletionItemKind["File"] = 16] = "File";
CompletionItemKind[CompletionItemKind["Reference"] = 17] = "Reference";
})(exports.CompletionItemKind || (exports.CompletionItemKind = {}));
var CompletionItemKind = exports.CompletionItemKind;
var CompletionItem;
(function (CompletionItem) {
function create(label) {
return { label: label };
}
CompletionItem.create = create;
})(CompletionItem = exports.CompletionItem || (exports.CompletionItem = {}));
var TextEdit;
(function (TextEdit) {
function replace(range, newText) {
return { range: range, newText: newText };
}
TextEdit.replace = replace;
function insert(position, newText) {
return { range: { start: position, end: position }, newText: newText };
}
TextEdit.insert = insert;
function del(range) {
return { range: range, newText: '' };
}
TextEdit.del = del;
})(TextEdit = exports.TextEdit || (exports.TextEdit = {}));
var CompletionRequest;
(function (CompletionRequest) {
CompletionRequest.type = { method: 'textDocument/completion' };
})(CompletionRequest = exports.CompletionRequest || (exports.CompletionRequest = {}));
var CompletionResolveRequest;
(function (CompletionResolveRequest) {
CompletionResolveRequest.type = { method: 'completionItem/resolve' };
})(CompletionResolveRequest = exports.CompletionResolveRequest || (exports.CompletionResolveRequest = {}));
//---- Hover Support -------------------------------
var HoverRequest;

@@ -114,0 +166,0 @@ (function (HoverRequest) {

{
"name": "vscode-languageclient",
"description": "VSCode Language client implementation",
"version": "0.10.0-pre.21",
"version": "0.10.0-pre.22",
"author": "Visual Studio Code Team",

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