e573f64f48
This eliminates the step of converting CandidateSuggestion to legacy completion item and then into LSP completion item. Also makes use of the SuggestionCollector to sort and truncate suggestions. The utility functions/methods are in completion_utils.dart, these are based on the code in mapping.dart, modified to use CandidateSuggestions. Change-Id: I1e44a5318575eeb3b89803e20a082f98b7bedd41 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/392082 Commit-Queue: Keerti Parthasarathy <keertip@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>