Skip to content
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: narrow file watching to active modules when go.work is in use #63742

Closed
findleyr opened this issue Oct 25, 2023 · 1 comment
Closed
Assignees
Labels
FrozenDueToAge gopls/metadata Issues related to metadata loading in gopls gopls/performance Issues related to gopls performance (CPU, memory, etc). gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@findleyr
Copy link
Member

Following up on #63536 (comment), we should consider narrowing the watch patterns requested by gopls when a go.work file is in use (or when the view is narrowed to a single module).

For example, with a go.work file we could just watch the go.work file itself, and all main modules. This could significantly improve file watching performance in monorepos.

@findleyr findleyr added gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository. gopls/performance Issues related to gopls performance (CPU, memory, etc). gopls/metadata Issues related to metadata loading in gopls labels Oct 25, 2023
@findleyr findleyr added this to the gopls/v0.15.0 milestone Oct 25, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/550075 mentions this issue: gopls/internal/lsp/cache: reconcile view modes and workspace packages

@findleyr findleyr self-assigned this Dec 15, 2023
@golang golang locked and limited conversation to collaborators Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls/metadata Issues related to metadata loading in gopls gopls/performance Issues related to gopls performance (CPU, memory, etc). gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

2 participants