madskristensen / MarkdownEditor2022

A Visual Studio extension
Apache License 2.0
167 stars 35 forks source link

Spellcheck #108

Open SerratedSharp opened 9 months ago

SerratedSharp commented 9 months ago

Should spellcheck be working in markdown files? I have 17.9.0 Preview 2.0 and spellcheck hints appear in C# code, but nor *.md files. Neither with the native editor or the "Markdown Editor v2" editor. Is there something special to enable spellchecking in markdown files?

mwileczka commented 8 months ago

I wouldn't mind helping to add this feature if it's not already supposed to be working.

madskristensen commented 8 months ago

I can look into how to tag up the markdown file for spell checking. I'm afraid we would need to take a dependency on VS2022 v17.6 or higher to do that

mwileczka commented 8 months ago

So in the latest VS that includes a spell checker, if the extension is disabled/not installed, the spell checker works on MD files. When the extension is enabled, it stops working, I'm guessing because the extension is completely replacing the default editor. I tried looking through the extension API help for how to integrate but found nothing, but I easily could have missed it. Sounds like MS did a really poor job on integrating the checker since it only works for c and c# anyways right now. I'm guessing they didn't make it public yet. I might investigate how to integrate another checker. Otherwise I'm stuck using another application. Everything else works great though 👍

madskristensen commented 8 months ago

There are public APIs for it, but they are only in the VSSDK 17.6 or newer AFAIK. There may be another way though. I'll try to find out