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(highlights): wait for doc changes before updating highlights #2112

Merged

Conversation

xiyaowong
Copy link
Collaborator

fix #2111

We should still wait for the document synchronization to complete before calculating the highlights. Otherwise, there is a possibility of computing incorrect highlights due to inconsistent content. Previously, this logic was mistakenly deleted.

@xiyaowong
Copy link
Collaborator Author

@jruebsam Can you confirm if this PR addresses your issue? (VSCode Extension -> Install from VSIX) https://github.com/vscode-neovim/vscode-neovim/actions/runs/9527929291/artifacts/1604736345

@jruebsam
Copy link

jruebsam commented Jun 15, 2024

@jruebsam Can you confirm if this PR addresses your issue? (VSCode Extension -> Install from VSIX) https://github.com/vscode-neovim/vscode-neovim/actions/runs/9527929291/artifacts/1604736345

@xiyaowong This indeed seems to fix the issue.

Copy link
Collaborator

@ollien ollien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I noticed a quirk that seemed related to this but I didn't have time to isolate it.

@xiyaowong xiyaowong merged commit 0835225 into vscode-neovim:master Jun 15, 2024
8 checks passed
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.

bug: Render issue when deleting line
3 participants