mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Separate persistent mutable state from config
That way, we clearly see which things are not change, and we also clearly see which things are persistent.
This commit is contained in:
parent
2e9b6320e6
commit
ae662617a2
7 changed files with 80 additions and 65 deletions
|
@ -5,7 +5,7 @@ import { spawnSync } from 'child_process';
|
|||
|
||||
export function serverVersion(ctx: Ctx): Cmd {
|
||||
return async () => {
|
||||
const binaryPath = await ensureServerBinary(ctx.config);
|
||||
const binaryPath = await ensureServerBinary(ctx.config, ctx.state);
|
||||
|
||||
if (binaryPath == null) {
|
||||
throw new Error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue