Share via

Walkthrough Display QuickInfo tooltips

Seyfullah Tıkıç 0 Reputation points
2026-04-09T08:53:39.22+00:00

Hello,

I try to implement https://dori-uw-1.kuma-moon.com/en-us/visualstudio/extensibility/walkthrough-displaying-quickinfo-tooltips?view=visualstudio&tabs=csharp article in Visual Studio 2022 and 2026.

But these codes are not working and some classes are obsolete.

The mouseover event is being triggered, but the tooltip is not shown.

How can I get a working sample?

Regards

Developer technologies | Visual Studio | Extensions

1 answer

Sort by: Most helpful
  1. Varsha Dundigalla(INFOSYS LIMITED) 4,785 Reputation points Microsoft External Staff
    2026-04-09T11:15:30.6533333+00:00

    Thank you for reaching out.

    From the shared behavior, it is observed that the OnTextViewMouseHover method is being triggered and IQuickInfoBroker.TriggerQuickInfo is being invoked, however the AugmentQuickInfoSession method is not getting triggered.

    As per the Visual Studio SDK behavior, the TriggerQuickInfo call creates a QuickInfo session for the associated text view and returns an IQuickInfoSession. If no valid session can be created for the target buffer or view, the provider pipeline is not activated and the AugmentQuickInfoSession implementation will not be invoked.

    In such scenarios, this usually indicates that the triggered QuickInfo session is not associated with any registered QuickInfo provider for that editor buffer. This can occur due to a mismatch between the exported QuickInfoSourceProvider MEF attributes (such as ContentType or Order) and the actual content type of the target editor buffer.

    To further investigate this behavior, sharing the following implementation details would be helpful:

    • The MEF export attributes used in the QuickInfoSourceProvider class such as ContentType, Name, and Order
    • The content type of the editor where the tooltip is expected to appear
    • Confirmation whether the implementation is using the legacy IQuickInfoSource / IQuickInfoSourceProvider APIs or the newer async QuickInfo APIs

    These details will help determine whether the QuickInfo session is correctly mapped to the registered provider.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.