Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix E565 when using Tab as accept #284

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephenprater
Copy link

As described in issue #278 - when you are set up in like SuperTab, you get this error (E565) from the LSP util that you're not allowed to modify the buffer.

The TL;DR here (I think) is that you're trying to do a synchronous accept with the results from an asynchronous call. The solution is to enqueue the accept on the event loop so that the text edit happens on the next tick (after whatever already enqueued async calls have already happened) rather than trying to do it on the "main thread"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant