* Fixes#2592: Filter code completion proposals from language server
Implements filtering based on the existing FuzzyMatches used for the
GoToSymbolAction.
Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
* Add empty line at end of file.
* Fixes#2437: Shift remaining ranges when applying multi-edit formatting
A formatting request to a language server may result in a list of
multiple text edits. The ranges of all these text edits are based on the
yet unmodified document. Che applies the edits to the document one by
one. If the inserted text has a different length than the replaced text
then the ranges of the remaining edits become invalid and they must be
shifted appropriately.
This patch shifts the ranges as necessary. To achieve this, it first
converts the ranges based on lines and characters to linear ranges,
which are easier for shifting.
Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
* Simplify the shifting logic
Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
* Reworked: just applying the text edits backwards is enough