diff --git a/internal/lsp/general.go b/internal/lsp/general.go index c86dd0442a..dacce21351 100644 --- a/internal/lsp/general.go +++ b/internal/lsp/general.go @@ -171,7 +171,7 @@ func (s *Server) initialized(ctx context.Context, params *protocol.InitializedPa Method: "workspace/didChangeWatchedFiles", RegisterOptions: protocol.DidChangeWatchedFilesRegistrationOptions{ Watchers: []protocol.FileSystemWatcher{{ - GlobPattern: fmt.Sprintf("%s/**.{go,mod,sum}", dir), + GlobPattern: fmt.Sprintf("%s/**/*.{go,mod,sum}", dir), Kind: float64(protocol.WatchChange + protocol.WatchDelete + protocol.WatchCreate), }}, },