mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Style fixes
This commit is contained in:
parent
332799d914
commit
8a23bec2cd
4 changed files with 31 additions and 20 deletions
|
@ -2,7 +2,7 @@ import * as vscode from 'vscode';
|
|||
import * as lc from 'vscode-languageclient';
|
||||
|
||||
import { Config } from './config';
|
||||
import { createClient, configToOptions } from './client';
|
||||
import { createClient, configToServerOptions } from './client';
|
||||
import { isRustEditor, RustEditor } from './util';
|
||||
|
||||
export class Ctx {
|
||||
|
@ -20,7 +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)]);
|
||||
client.onRequest('workspace/configuration', _ => [configToServerOptions(config)]);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue