Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Use getToolsEnvVars instead which resolves variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Aug 13, 2018
1 parent 2cc9952 commit 3efca28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/goDebugConfiguration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

import vscode = require('vscode');
import { getCurrentGoPath } from './util';
import { getCurrentGoPath, getToolsEnvVars } from './util';

export class GoDebugConfigurationProvider implements vscode.DebugConfigurationProvider {

Expand Down Expand Up @@ -47,7 +47,7 @@ export class GoDebugConfigurationProvider implements vscode.DebugConfigurationPr
}

const goConfig = vscode.workspace.getConfiguration('go', folder ? folder.uri : null);
const goToolsEnvVars = goConfig.get('toolsEnvVars') || {};
const goToolsEnvVars = getToolsEnvVars();
Object.keys(goToolsEnvVars).forEach(key => {
if (!debugConfiguration['env'].hasOwnProperty(key)) {
debugConfiguration['env'][key] = goToolsEnvVars[key];
Expand Down

0 comments on commit 3efca28

Please sign in to comment.