Feature request: Interpolate variables from workspace settings into extension settings #1440
mingp
started this conversation in
Discussions
Replies: 1 comment 3 replies
-
With Go modules, setting
For other settings, if variable replacement is necessary, please open issues. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to write a VS Code workspace (
.code-workspace
) file that can be shared with my teammates and makes as few assumptions as possible. In order for the workspace config to be independent of where someone has checked out the repository, I use${fileDirname}
in the workspace config file to produce consistent file paths. This works in, for example, thefolders
config entry.It appears that attempting to use variables in the Go extension settings, for example for
go.gopath
andgo.goroot
, does not work. Furthermore, it appears that the uninterpolated string is used directly as the value in question, which is not correct, and which expectedly fails.It would be helpful for sharing workspace files if the Go extension's setting values interpolated variables just like the
folders
config. For example, I should be able to setgo.gopath
as~/path/to/myproject/bin/go
andgo.goroot
as~/path/to/myproject/go
.This would be greatly beneficial. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions