New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vscode-languageclient

Package Overview
Dependencies
Maintainers
9
Versions
303
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.17 to 0.10.0-pre.18

10

lib/main.js

@@ -235,5 +235,7 @@ /*---------------------------------------------------------

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

@@ -320,3 +322,3 @@ _this.hookConfigurationChanged(connection);

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

@@ -323,0 +325,0 @@ }

7

lib/protocol.d.ts
import { RequestType, NotificationType } from 'vscode-jsonrpc';
export interface HostCapabilities {
}
export declare namespace TextDocumentSync {
const None: number;
const Full: number;
const Incremental: number;
}
export interface ServerCapabilities {
incrementalTextDocumentSync?: boolean;
textDocumentSync?: number;
hoverProvider?: boolean;

@@ -7,0 +12,0 @@ }

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

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

@@ -7,0 +13,0 @@ * The initialize command is send from the client to the worker.

{
"name": "vscode-languageclient",
"description": "VSCode Language client implementation",
"version": "0.10.0-pre.17",
"version": "0.10.0-pre.18",
"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