-
Notifications
You must be signed in to change notification settings - Fork 797
settings: a top-level "gopls" block is unrecognized #987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Option 1. The current implementation (available in Nightly) defines each That allows the settings UI to recognize and render them nicely. But also this exposes too many gopls settings through the UI (~30 gopls entries currently). The settings written in the established style (i.e. defining in a Option 2. Another option is to define all gopls settings as a single top-level configuration property ( The settings UI doesn't display individual gopls settings any more and users have to edit from their settings.json files. But enough intellisense and diagnostics feature is available in the settings.json editor. (We can make Overall, Option2 doesn't seem too bad -
Should we change to option 2? |
Just my 2c: I like that Option 1 is very convenient to find: I just hit But I'd love to also get auto-complete when one of the options has to be done through "edit json" which feels more like option 2. For example, I don't get auto complete on |
@marwan-at-work Option 2 doesn't help with json editing of
We discussed this in our team meeting today. Once we clean up the existing go extension settings and sort out gopls settings, I think we will be in a better state to promote stable gopls settings to top-level go extension settings ( There are still a handful number of experimental settings that may change, and I think some stable settings work better in VSCode Settings UI if they are renamed/reorganized. Go extension has many other settings unrelated to gopls. E.g.,
On the other hand, we still want users to experiment with the features that are not yet promoted to the top-level (i.e. |
Bad news: Mix of I tried with the following mixed setting in the current master (Option 1).
If a user exclusively uses one of those styles, that works fine. The current use of |
Assuming most users shouldn't need to configure gopls to behave different from the default behavior, asking users to use the JSON editor instead of the settings UI isn't too bad. Actually, this makes the settings UI less cluttered and helps users focus on the required settings. Updates #987 Change-Id: I3bd117b2db13e5408430ee1185a5b1cc97c4d1ab Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/274694 Run-TryBot: Hyang-Ah Hana Kim <[email protected]> Trust: Hyang-Ah Hana Kim <[email protected]> Trust: Suzy Mueller <[email protected]> Reviewed-by: Suzy Mueller <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]>
We took option 2, and the top-level "gopls" block is now recognized. |
For the settings UI, it's better to have the
"gopls"
settings always be prefixed withgopls.
, but it would still be nice if users who already have"gopls"
blocks could have their settings recognized.The text was updated successfully, but these errors were encountered: