mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 14:01:38 +01:00
css/json/html web: adopt LanguageClient API change (#218060)
This commit is contained in:
committed by
GitHub
parent
1b27e602ed
commit
a28cbc207a
@@ -8,12 +8,6 @@ import { LanguageClientOptions } from 'vscode-languageclient';
|
||||
import { startClient, LanguageClientConstructor, SchemaRequestService, AsyncDisposable, languageServerDescription } from '../jsonClient';
|
||||
import { LanguageClient } from 'vscode-languageclient/browser';
|
||||
|
||||
declare const Worker: {
|
||||
new(stringUrl: string): any;
|
||||
};
|
||||
|
||||
declare function fetch(uri: string, options: any): any;
|
||||
|
||||
let client: AsyncDisposable | undefined;
|
||||
|
||||
// this method is called when vs code is activated
|
||||
@@ -24,7 +18,7 @@ export async function activate(context: ExtensionContext) {
|
||||
worker.postMessage({ i10lLocation: l10n.uri?.toString(false) ?? '' });
|
||||
|
||||
const newLanguageClient: LanguageClientConstructor = (id: string, name: string, clientOptions: LanguageClientOptions) => {
|
||||
return new LanguageClient(id, name, clientOptions, worker);
|
||||
return new LanguageClient(id, name, worker, clientOptions);
|
||||
};
|
||||
|
||||
const schemaRequests: SchemaRequestService = {
|
||||
|
||||
Reference in New Issue
Block a user