Closed fredyw closed 8 years ago
I don't agree with this change either. Similarly because of same reason I mentioned in other PR: the default value of a preference becomes set as the saved preference value once the user opens the preference dialog and presses ok. Which means if GOROOT env variable changes, the preference value will not reflect this change because the default value will not be recalculated (unless the user explicitly presses "Restore Defaults")
I'd rather implement this in a way similar to GOPATH, use a checkbox to use env value.
Retrieve the GOROOT value in Go preferences from the GOROOT environment variable.