-
Notifications
You must be signed in to change notification settings - Fork 25
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
Watch for changed files #6
Comments
Before we were only handling put for formatting. Now we handle all events related to file synchronization. We also send all open files to LSP server on startup. Helps #6
Before we were only handling put for formatting. Now we handle all events related to file synchronization. We also send all open files to LSP server on startup. Helps #6
Before we were only handling put for formatting. Now we handle all events related to file synchronization. We also send all open files to LSP server on startup. Helps #6
I just ran into this issue. Is the only solution to restart gopls at the moment? |
fyi, I asked on the gopls channel in slack, and apparently file watching is on the roadmap for gopls. |
You can execute |
From the looks of the issue mentioned, this now works in gopls. |
When files are changed outside of acme (e.g. git branch change),
gopls
currently doesn't update its cache. We should implement workspace/didChangeWatchedFiles when gopls supports it (issue golang/go#31553).We may want to have a temporary workaround for
gopls
. Perhaps just watch for all matching (.go) files in the workspaces?The text was updated successfully, but these errors were encountered: