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/cmd/gopls: add support for handling deltas in DidChange #31800

myitcv opened this issue May 2, 2019 · 3 comments

x/tools/cmd/gopls: add support for handling deltas in DidChange #31800

myitcv opened this issue May 2, 2019 · 3 comments


Copy link

@myitcv myitcv commented May 2, 2019

This is a tracking issue for adding support for handling deltas in textDocument/didChange.

Currently clients are required to send the entire file contents for each change. This starts to get noticeable for large-ish files.

cc @stamblerre @ianthehat

Copy link

@ianthehat ianthehat commented May 8, 2019

If you set `incrementalSync=true' in the initialize params it will be enabled. We will enable it by default when we have reasonable confidence that it works properly (I have had it enabled for a while now and it seems to be okay)

Copy link
Member Author

@myitcv myitcv commented May 8, 2019

Thanks - I'm still waiting on a change on the Vim side to be able to do this (without workarounds) vim/vim#4191

Copy link

@gopherbot gopherbot commented May 8, 2019

Change mentions this issue: internal/lsp: fix incremental updates and turn them on

muirdm added a commit to muirdm/tools that referenced this issue May 12, 2019
Updates that only add text have a start and end that are the same, we were
erroring on those and failing to apply the changes.

Fixes golang/go#31800

Change-Id: Ia31b90f108742e5532d2da35137c347c26090a6a
Reviewed-by: Rebecca Stambler <>
@golang golang locked and limited conversation to collaborators May 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.