-
Notifications
You must be signed in to change notification settings - Fork 33
Any API to replace tooltip for a completion item? #48
Comments
It seems like it's still possible per documentation: "The returned object will be rendered by IViewElementFactoryService. See its documentation for default supported types. You may export a IViewElementFactory to provide a renderer for a custom type." But I think expectation is that you would be rendering your own custom type, not re-styling rendering of somebody's else types. Seems like Roslyn returns just Microsoft.VisualStudio.Text.Adornments.ContainerElement, so that's what you need to handle with your IViewElementFactory, @wmjordan. But given that it's so common type unfortunately you will be customizing more than completion tooltip, but likely more. Not sure if it's possible to detect specifically completion tooltip. @AmadeuszW might know more. What is your scenario, @wmjordan? What kind of customization would you like to apply to completion tooltips? |
@olegtk, Thank you for your reply and information. I am writing an extension to help C# programmers to better work with their source code. I'd love to do the same thing on VS 2022 as well. |
IViewElementFactory can not achieve the above result. To override the C# completion tooltip, we need the |
Please file a bug via Help/Send Feedback/Report a Problem. It looks like a bug as it was possible before. |
I guess it is by design. I cross posted the issue, but got no reply so far. |
it's not exactly by design, either way it's a take back from previous completion extensibility API so please file a feedback ticket via Help/Send Feedback/Report a Problem or file create an issue on https://github.com/microsoft/VSExtensibility |
https://github.com/microsoft/VSExtensibility appears to be the greenhouse for future extensions API. I guess it is not for this. |
Well, I posted a problem in the VS feedback: |
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?
The text was updated successfully, but these errors were encountered: