CodeiumVisualStudio icon indicating copy to clipboard operation
CodeiumVisualStudio copied to clipboard

GetCompletion() runs on background thread and doesn't check whether text view is closed

Open olegtk opened this issue 1 year ago • 0 comments

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!

olegtk avatar Jun 10 '24 21:06 olegtk