Closed veksha closed 1 year ago
after recent optimization, msg.completion_list['isIncomplete'] is no longer a bool class, but str. thats why we need msg.completion_list['isIncomplete'] == 'true' to convert it to bool.
msg.completion_list['isIncomplete']
msg.completion_list['isIncomplete'] == 'true'
also added check: if self._last_complete, just in case.
if self._last_complete
added another commit:
this fixes bad behaviour of slow lsp servers (nim lsp) , when caret is already moved to new pos and autocompletion dlg appears with old results.
after recent optimization,
msg.completion_list['isIncomplete']
is no longer a bool class, but str. thats why we needmsg.completion_list['isIncomplete'] == 'true'
to convert it to bool.also added check:
if self._last_complete
, just in case.