CudaText-addons / cuda_lsp

LSP Client plugin for CudaText
2 stars 3 forks source link

fixed regression caused by optimization (+ fix for slow servers) #178

Closed veksha closed 1 year ago

veksha commented 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.

also added check: if self._last_complete, just in case.

veksha commented 1 year ago

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.