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

fixed 1743, go.gopath and go.toolsGopath now expand ${env:XXX} #1991

Closed
wants to merge 2 commits into from

Conversation

sejas
Copy link

@sejas sejas commented Oct 11, 2018

I replicated the changes of @sphawk and I also deleted the flag m

Following the conversation #1743

src/util.ts Outdated
@@ -443,7 +449,7 @@ export function getCurrentGoPath(workspaceUri?: vscode.Uri): string {
}
}

const configGopath = config['gopath'] ? resolvePath(config['gopath'], currentRoot) : '';
const configGopath = config["gopath"] ? resolvePath(substituteEnv(config["gopath"]), currentRoot) : ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The introduction of double quotes and the missing semicolon in this line is causing linting errors.

src/util.ts Show resolved Hide resolved
@msftclas
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

❌ sejas sign now
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some tests for the new substituteEnv function?

You can add a new file util.test.ts under https://github.com/Microsoft/vscode-go/tree/master/test/unit

Also, please sign the CLA. Else, I cannot merge the PR.

@ramya-rao-a
Copy link
Contributor

@sejas,

Since @sphawk made the reqd changes and added tests as well, I have merged #1743 instead.

Feel free to pick up any other issue labeled good-first-issue or help-wanted

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants