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

Highlighting "flickering" while applying formatting #41

Open
jonkri opened this issue May 24, 2020 · 1 comment
Open

Highlighting "flickering" while applying formatting #41

jonkri opened this issue May 24, 2020 · 1 comment

Comments

@jonkri
Copy link

jonkri commented May 24, 2020

Under some circumstances, lines lose their syntax highlighting for a while when formatting is applied.

The attached image illustrates it.

web-beautify

I would like for the text not to temporarily turn to the foreground color.

@SpiderPig
Copy link

This has to do with the way it applies the formatting. It could probably benefit from the way prettier-js and go-mode/gofmt work. They compute the differences and then apply the changes by spot patching the contents without rewriting the entire buffer. It also protects the undo history.

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

No branches or pull requests

2 participants