vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
813 stars 129 forks source link

Slow typing response caused by Lexer syntax highlighter #800

Closed vsch closed 4 years ago

vsch commented 4 years ago

Selecting Annotator for syntax highlighting gives the best typing response.

The plugin always creates editors with Lexer highlighter since it works in all kinds of documents including read only ones which do not invoke an external annotator.

Once an editor is opened and type of document can be checked, the plugin will swap the Lexer highlighter for a dummy Plain Text highlighter which does no highlighting.

Due to a bug in 2.9.9. All files which are opened on project open do not get their Lexer highlighter swapped for plain text highlighter. This means slower typing response in these files.

The only workaround is to close and open the editor tab which will install the right syntax highlighter for the editor.