-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://go-review.googlesource.com/c/tools/+/176958 changed the TextEdits returned from gopls to not be the trimmed version of the label. This meant that we were effectively appending the entire completion text after the prefix. This wasn't caught in the completion tests because there we were attempting a "naked" completion with no prefix. Fix by fixing the test (which confirmed the bug) then fixing the results returned from gopls. Seemingly, a list of completion items from gopls can specify a start position per item. This does not appear to be supported by Vim (see :help complete-functions)
- Loading branch information
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters