Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7198cd0

Browse files
committed
allow using vscode variables in config.serverPath
1 parent ce67dea commit 7198cd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

editors/code/src/bootstrap.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as vscode from "vscode";
22
import * as os from "os";
3-
import { Config } from "./config";
3+
import { Config, substituteVSCodeVariables } from "./config";
44
import { log, isValidExecutable } from "./util";
55
import { PersistentState } from "./persistent_state";
66
import { exec } from "child_process";
@@ -132,7 +132,7 @@ async function getServer(
132132
return undefined;
133133
}
134134
function serverPath(config: Config): string | null {
135-
return process.env.__RA_LSP_SERVER_DEBUG ?? config.serverPath;
135+
return process.env.__RA_LSP_SERVER_DEBUG ?? substituteVSCodeVariables(config.serverPath);
136136
}
137137

138138
async function isNixOs(): Promise<boolean> {

0 commit comments

Comments
 (0)