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

Commit 33d2c8a

Browse files
committed
Enable variable substitutions before passing them over to R-A server
1 parent 684fa27 commit 33d2c8a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

editors/code/src/client.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { assert } from './util';
66
import { WorkspaceEdit } from 'vscode';
77
import { Workspace } from './ctx';
88
import { updateConfig } from './config';
9+
import { substituteVariablesInEnv } from './config';
910

1011
export interface Env {
1112
[name: string]: string;
@@ -30,9 +31,9 @@ export async function createClient(serverPath: string, workspace: Workspace, ext
3031
// TODO?: Workspace folders support Uri's (eg: file://test.txt).
3132
// It might be a good idea to test if the uri points to a file.
3233

33-
const newEnv = Object.assign({}, process.env);
34-
Object.assign(newEnv, extraEnv);
35-
34+
const newEnv = substituteVariablesInEnv(Object.assign(
35+
{}, process.env, extraEnv
36+
));
3637
const run: lc.Executable = {
3738
command: serverPath,
3839
options: { env: newEnv },

0 commit comments

Comments
 (0)