golang / vscode-go

Go extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=golang.Go
Other
3.87k stars 750 forks source link

survey: decouple survey configuration with the extension #2891

Open hyangah opened 1 year ago

hyangah commented 1 year ago

Currently the extension embeds configurations (survey url, period, sampling rate) for surveys in the code. That means we need to release a new extension when we need to change the config. For example, we had to release v0.39.1 just to update the config for the upcoming Go developer survey, which was unfortunate.

We want to decouple the config from the extension code.

A simple straw man approach would be to make the extension periodically fetch the latest config from a server. But we want to avoid contacting another external server or using potentially unverified configuration to affect the extension's behavior.

We are proposing to utilize the Go's module system instead, and publish the configuration as a module (tentatively, golang.org/x/vscode-go/config).

findleyr commented 1 year ago

@hyangah sounds great to me. Will we add the vanity module path, or simply use the github path? I think per discussion with @rsc either would be fine.

gopherbot commented 10 months ago

Change https://go.dev/cl/549243 mentions this issue: vscgo: a little helper program