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

Variable substitution for go.testFlags #928

Closed
hovsater opened this issue Apr 17, 2017 · 5 comments
Closed

Variable substitution for go.testFlags #928

hovsater opened this issue Apr 17, 2017 · 5 comments
Milestone

Comments

@hovsater
Copy link

hovsater commented Apr 17, 2017

It would be nice if go.testFlags would allow variable substation. This could be really useful when passing custom arguments to go test.

I'm currently working in a project where we need to pass -config ${workspaceRoot}/test-config.yml before running the test suite.

I can see that we already support ~ and ${workspaceRoot} in go.gopath and go.toolsGopath. Addressed in #768.

Is this something we'd like to implement? If so, I'd be happy to take a stab at it. 😃

@ramya-rao-a
Copy link
Contributor

While we could do this in the extension, I would ideally like this support in the form of an API from VS Code.

Give me a few days and I'll see if we can get this support from VS Code. If not, then I'll add a comment here and you can give it a try.

Sound ok?

@hovsater
Copy link
Author

@ramya-rao-a sounds good. If it is possible to support this via an API, would we want to update the current implementation for go.gopath and go.toolsGopath to use that as well?

@ramya-rao-a
Copy link
Contributor

yes

@ramya-rao-a
Copy link
Contributor

This feature is now out in the latest update to the Go extension (0.6.81)

@ramya-rao-a ramya-rao-a added this to the 0.6.81 milestone Jun 4, 2018
@fengpf
Copy link

fengpf commented Jun 25, 2018

go 1.10 use cache in go test, how to config go.testFlags

@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants