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

vscode-languageclient

Package Overview
Dependencies
Maintainers
7
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 10.0.0-next.6 to 10.0.0-next.7

4

lib/browser/main.d.ts

@@ -6,6 +6,6 @@ import { BaseLanguageClient, LanguageClientOptions, MessageTransports } from '../common/api';

export declare class LanguageClient extends BaseLanguageClient {
private readonly options;
constructor(id: string, name: string, clientOptions: LanguageClientOptions, options: ServerOptions);
private readonly serverOptions;
constructor(id: string, name: string, serverOptions: ServerOptions, clientOptions: LanguageClientOptions);
protected createMessageTransports(_encoding: string): Promise<MessageTransports>;
private createMessageTransportsFromWorker;
}

@@ -27,9 +27,9 @@ "use strict";

class LanguageClient extends api_1.BaseLanguageClient {
constructor(id, name, clientOptions, options) {
constructor(id, name, serverOptions, clientOptions) {
super(id, name, clientOptions);
this.options = options;
this.serverOptions = serverOptions;
}
async createMessageTransports(_encoding) {
if (typeof this.options === 'function') {
const result = await this.options();
if (typeof this.serverOptions === 'function') {
const result = await this.serverOptions();
if (result instanceof Worker) {

@@ -43,3 +43,3 @@ return this.createMessageTransportsFromWorker(result);

else {
return this.createMessageTransportsFromWorker(this.options);
return this.createMessageTransportsFromWorker(this.serverOptions);
}

@@ -46,0 +46,0 @@ }

{
"name": "vscode-languageclient",
"description": "VSCode Language client implementation",
"version": "10.0.0-next.6",
"version": "10.0.0-next.7",
"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