-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
x/tools/gopls: create a new snapshot on didChangeConfiguration #42814
Comments
I'm not sure if this is the same issue: I expect that settings sent via For example, given this file package main
func main() {
println()
}
It works when I restart the language server, or when I use Tangentially related: my main problem with |
@krobelus: Your topic is actually a separate issue, but I can answer it briefly. For some reason, VS Code doesn't actually send the modified settings in its You shouldn't need section headers for
|
Thanks that's good to know. It looks like gopls accepts the same options in both |
This is a persistent source of bugs. We should fix in the next release. |
Change https://go.dev/cl/524837 mentions this issue: |
In preparation for making snapshots truly idempotent, move certain methods that depend on settings into the snapshot. Nothing should access settings through the View. For golang/go#42814 Change-Id: Ib3ced985dc89515f5a6e6049c7be316342706e54 Reviewed-on: https://go-review.googlesource.com/c/tools/+/524837 Run-TryBot: Robert Findley <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Alan Donovan <[email protected]>
Change https://go.dev/cl/526160 mentions this issue: |
Change https://go.dev/cl/526417 mentions this issue: |
Change https://go.dev/cl/526159 mentions this issue: |
Any change to the working dir must necessarily result in a new view (see minorOptionsChange). Therefore, it should be considered an immutable part of the view, and rename it to goCommandDir, which more closely matches its meaning (and there are various other things that could be considered "working" dirs). Also store the folder on the workspaceInformation, to move toward an immutable foundation that can be safely shared with the snapshot. Updates golang/go#57979 For golang/go#42814 Change-Id: I9a9e3aa18fa85bace827d9c8dd1607e851cfcfb8 Reviewed-on: https://go-review.googlesource.com/c/tools/+/526160 Auto-Submit: Robert Findley <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Alan Donovan <[email protected]> gopls-CI: kokoro <[email protected]>
In order to move toward tracking options by Folder, not view, move them into the Server. This will also help us fix bugs related to configuration lifecycle events. For golang/go#57979 Updates golang/go#42814 Change-Id: Id281cad20697756138a7bdc67f718a7468a04d4a Reviewed-on: https://go-review.googlesource.com/c/tools/+/526417 LUCI-TryBot-Result: Go LUCI <[email protected]> gopls-CI: kokoro <[email protected]> Reviewed-by: Alan Donovan <[email protected]>
It would probably simplify our logic to treat this as an invalidation event, especially since a change in environment leads to metadata invalidations.
The text was updated successfully, but these errors were encountered: