vsch / idea-multimarkdown

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

Close and Reopen Affected Editors #909

Open jcarlson opened 3 years ago

jcarlson commented 3 years ago

Every time I open a Markdown file, I immediately get this prompt from RubyMine:

Screen Shot 2021-04-05 at 11 01 29 AM

All I did to replicate this issue was File > New File > something.md.

I have tried resetting all settings in the Markdown preference pane. What am I doing wrong?

RubyMine: 2020.03.2 Markdown Navigator Enhanced: 3.0.202.112

vsch commented 2 years ago

I suspect this is caused by Markdown Navigator changing the editor highlighter after the file is opened because the standard lexer highlighter is slow for markdown but the external highlighter does not work for read-only files.

So all files are initially opened with lexer highlighter and then changed if needed. There is limited information about the read-only state when the editor is first created so this convoluted approach was used.

JetBrains must have changed the internal mechanism in newer releases to cause a problem with the implemented approach.