x/tools/gopls: don't recreate the view when a go.mod file is created #40340
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
This caused golang/vscode-go#363, because a
go.mod
was being created during that test, and the completion request was reaching the server at the time that the view was shutting down.We either need to handle such a situation more gracefully, or we shouldn't shut down a view on
go.mod
creation. That would mean putting a mutex around a lot of the view's fields that we treat as immutable.The text was updated successfully, but these errors were encountered: