Skip to content

Commit

Permalink
Use property shorthand
Browse files Browse the repository at this point in the history
  • Loading branch information
sisoe24 committed Oct 10, 2024
1 parent 19552ac commit 78d81e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/launch_executable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function resolveEnvVariables(text: string):string {
}

const placeholders: { [key: string]: string } = {
workspaceFolder: workspaceFolder,
workspaceFolder,
workspaceFolderBasename: path.basename(workspaceFolder),
userHome: os.homedir(),
};
Expand Down Expand Up @@ -155,9 +155,7 @@ function execCommand(execPath: ExecutablePath): void {
}

const env = stringifyEnv(getConfig("environmentVariables"));
console.log(env);
const command = resolveEnvVariables(`${env} ${execPath.buildExecutableCommand()}`.trim());
console.log(command);
const terminal = vscode.window.createTerminal(terminalName);

terminal.sendText(command);
Expand Down

0 comments on commit 78d81e8

Please sign in to comment.