Add-on components that enhance and customize the Visual Studio integrated development environment
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.