x/tools/cmd/gopls: add implementation for textDocument/didSave #31796
Labels
Documentation
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Per discussions with @ianthehat, if we add an implementation for
textDocument/didSave
we can implement logic within that method to invalidate thegopls
cache when new imports are added to a package. i.e. we can check whether the imports in the file that was just saved are a subset of the current package cache and invalidate if not.This will remove a category of "failures" with respect to completions returning no results.
The text was updated successfully, but these errors were encountered: