}
return;
};
+ if (serverPath(config) !== null) return;
const now = Date.now();
if (config.package.releaseTag === NIGHTLY_TAG) {
}
async function getServer(config: Config, state: PersistentState): Promise<string | undefined> {
- const explicitPath = process.env.__RA_LSP_SERVER_DEBUG ?? config.serverPath;
+ const explicitPath = serverPath(config);
if (explicitPath) {
if (explicitPath.startsWith("~/")) {
return os.homedir() + explicitPath.slice("~".length);
return dest;
}
+function serverPath(config: Config): string | null {
+ return process.env.__RA_LSP_SERVER_DEBUG ?? config.serverPath;
+}
+
async function isNixOs(): Promise<boolean> {
try {
const contents = await fs.readFile("/etc/os-release");