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

Run the blocking operations in a separate thread #1081

Merged
merged 8 commits into from
May 20, 2024
Merged

Conversation

liuchengxu
Copy link
Owner

This PR fixes a crucial regression of running blocking operations in the async context, leading to the runtime blocked and frozen UI. Specifically, the blocking operations are fetching the context tag and tree-sitter based syntax highlights, now they are run in a dedicated thread.

This PR cherry-picked #1080 as well. Close #1080

@liuchengxu liuchengxu merged commit d587ce7 into master May 20, 2024
17 checks passed
@liuchengxu liuchengxu deleted the update-deps branch May 20, 2024 08:11
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.

1 participant