x/tools/gopls: file watchers should be reevaluated after load #60340
Labels
gopls/metadata
Issues related to metadata loading in gopls
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Normally I would just fix this bug, but given our proximity to the v0.12.0 release I'm filing it for later:
When state changes in gopls, we re-evaluate file watchers. Currently, this is done synchronously to the state change processing, via
Server.didModifyFiles->updateWatchedDirectories
.Problems with this:
awaitLoaded
before re-evaluating file watches, asgo list
might surface new directories to watch after e.g. a go.mod change. We can'tawaitLoaded
during change processing.The text was updated successfully, but these errors were encountered: