vscode-languageclient
Advanced tools
Comparing version 10.0.0-next.6 to 10.0.0-next.7
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
673409