Closed ayoub-benali closed 5 years ago
Thanks for reporting. I think word_col
is incorrectly provided to format_completion
by plugin/completion.py
The logic there looks up the start of the current word being completed. In your example sublime tells us that the .
is a word - we should probably only use the start-of-word lookup if the cursor is at a word, see is_at_word
.
Can have a look at a fix for this soon, or feel free to open a PR.
we should probably only use the start-of-word lookup if the cursor is at a word
You mean in the text_edit_text
function ?
No, the needed check was in CompletionHandler's handle_response
method - see the merged PR above.
Not sure when the regression happened but this column check:
here returns always False now. Which leads the completion to fallback to
label
instead of usingtextEdit
. As you can see bellow:Logs with some debug variables:
For me the condition here is incomplete and doesn't handle the case when the completion happens after last word beginning. In this case a
.
I think we are safe to remove the condition.
I can make a PR but wanted first to confirm the issue with @tomv564
prefer_label_over_filter_text
is set to True