on_query_completions fails when used with XML files and when the cursor is placed right in between an opening and closing tags with no spaces in between like:
If there are spaces or new lines in between the opening and closing tags, the completion works properly. For example here:
Steps to reproduce are:
1.- create simple plugin:
def on_query_completions(self, view, prefix, locations):
return ('1.0\tValue', '1.0'), ('2.0\tValue', '2.0'), ('3.0\tValue', '3.0'), ('4.0\tValue', '4.0'), ('5.0\tValue', '5.0')]
2.- Create simple XML file with XML syntax and press control space in between XML tags
Any idea why or how to fix it?