mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Pass server extraEnv to isValidExecutable
This commit is contained in:
parent
1b678231d7
commit
33f9250d21
2 changed files with 7 additions and 3 deletions
|
@ -20,7 +20,7 @@ export async function bootstrap(
|
|||
|
||||
log.info("Using server binary at", path);
|
||||
|
||||
if (!isValidExecutable(path)) {
|
||||
if (!isValidExecutable(path, config.serverExtraEnv)) {
|
||||
if (config.serverPath) {
|
||||
throw new Error(`Failed to execute ${path} --version. \`config.server.path\` or \`config.serverPath\` has been set explicitly.\
|
||||
Consider removing this config or making a valid server binary available at that path.`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue