Nowadays a tooltip will display at the right side of selected item in the AutoCompletion list.
In VS 2017, we can create a class implementing IUIElementProvider<Completion, ICompletionSession> to override The RoslynToolTipProvider, like the below code shows.
[Export(typeof(IUIElementProvider<Completion, ICompletionSession>))]
[Name(nameof(CSharpCompletionTooltip))]
//Roslyn is the default Tooltip Provider. We must override it if we wish to use custom tooltips
[Order(Before = "RoslynToolTipProvider")]
[ContentType("CSharp")]
internal sealed class CSharpCompletionTooltipProvider : IUIElementProvider<Completion, ICompletionSession>
In VS 2022, the logic is changed.
It seems that no extension point is provided to override the completion tooltip any more.
What can we do if we are to change the appearance and content of a completion tooltip?
Nowadays a tooltip will display at the right side of selected item in the AutoCompletion list.
In VS 2017, we can create a class implementing
IUIElementProvider<Completion, ICompletionSession>to override The RoslynToolTipProvider, like the below code shows.In VS 2022, the logic is changed.
It seems that no extension point is provided to override the completion tooltip any more.
What can we do if we are to change the appearance and content of a completion tooltip?