generated from redhat-developer/new-project-template
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 638 - This is a more comprehensive change to avoid adding dupli…
…cate completions. The real issue is that WordCompletionContributor is invoked automatically by TextMateCompletionContributor, and very often LSP languages are hosted in TextMate-based editors. Now we try to disable WordCompletionContributor by setting a process-level user data value temporarily while collecting completions from other contributors, and the original value is reliably restored (though since the process is transient, that's probably not necessary). If we're able to disable WordCompletionContributor, we just run all remaining completion contributors; if not, we run all remaining completion contributors filtering added completions to exclude duplicate lookup strings. That allow the behavior to degrade gracefully while still yielding an improved signal-to-noise ratio on added completions.
- Loading branch information
Showing
1 changed file
with
38 additions
and
14 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