CodeiumVisualStudio
CodeiumVisualStudio copied to clipboard
GetCompletion() runs on background thread and doesn't check whether text view is closed
GetCompletion() method is executed on background thread and it makes some non thread safe calls like _textViewAdapter.GetCaretPos(), which will crash VS if the text view is already closed by the time GetCompletion() is executing. Check that text view is not closed and switch to UI thread when making such calls. Thanks!