From a9dd4427333d410bebf8e0923d5907b2a31efb50 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 20 Mar 2020 00:42:18 +0200 Subject: Send the config from the client --- editors/code/src/ctx.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editors/code/src/ctx.ts') diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index 84c170ea8..934638c6d 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts @@ -2,7 +2,7 @@ import * as vscode from 'vscode'; import * as lc from 'vscode-languageclient'; import { Config } from './config'; -import { createClient } from './client'; +import { createClient, configToOptions } from './client'; import { isRustEditor, RustEditor } from './util'; export class Ctx { @@ -20,6 +20,7 @@ export class Ctx { const res = new Ctx(config, extCtx, client, serverPath); res.pushCleanup(client.start()); await client.onReady(); + client.onRequest('workspace/configuration', _ => [configToOptions(config)]); return res; } -- cgit v1.2.3