microsoft / VSSDK-Extensibility-Samples

Samples for building your own Visual Studio extensions
http://aka.ms/extendvs
MIT License
1.22k stars 453 forks source link

SpellChecker sample no longer works in Visual Studio 2022 #293

Open RichieHindle opened 3 weeks ago

RichieHindle commented 3 weeks ago

The SpellChecker sample no longer works in Visual Studio 2022 (17.11.5 at the time of writing).

In DoUpdate(), the call to _classifier.GetClassificationSpans() always returns an empty collection, so no comments are found.

I publish a commercial Visual Studio extension that uses similar code, and that no longer works either. How can this code be modified to work with the current VS 2022? Thanks!

RichieHindle commented 3 weeks ago

Notes: