Hi,
is there a way to overwrite the description of the quick info?
In my case I want to hide the file path of the source file. Some files are generated and the names may be irritating.
Best regards, Tobias Lingemann.
Hi,
is there a way to overwrite the description of the quick info?
In my case I want to hide the file path of the source file. Some files are generated and the names may be irritating.
Hi Tobias,
Yes, to alter the quick info, you can do these steps:
Hi,
thanks for the help, but I just realized this only changes the tooltip when I move the mouse in the editor.
How can I change the tooltip for intelli prompt sessions as well? I already have a class that inherits from PythonCompletionProvider, but I cannot find the corresponding text block. The session has a list of all items, but I don't want to go over all of them each time.
I also tried to override PythonParameterInfoProvider, but it looks like this is used for something else.
Hello,
Completion providers have an OnSessionOpening method that you can override and examine the session.Items. Each item is an ICompletionItem implementation that has a DescriptionProvider property on it. The IContentProvider returned by that property builds the description tip content when one is needed. Maybe wrap our default with a custom IContentProvider that removes the filenames.
Parameter info providers (used for invocation help) also have an OnSessionOpening method that you can override and can examine the session.Items. Each item is an ISignatureItem implementation that has a ContentProvider property on it, that is the same concept as the ICompletionItem.DescriptionProvider.
Please log in to a validated account to post comments.