Can the 'read more' link of QuickDoc be customized?

When I invoke QuickDoc (Ctrl+Q) I get offered a link called "read more" which takes me to Msdn.  Is it possible to customize where that takes me?  For example, I'd like to be taken to the documentation on nunit.org when I click on anything imported from nunit.framework.dll.

4 comments
Comment actions Permalink
I would very much like this feature too. Has there ever been any discussion on it?
0
Comment actions Permalink

None that I recall.  Though I haven't checked the bug/issue tracking site.

0
Comment actions Permalink

Yes, you can extend the read more link, at least under some conditions. The quick doc system works via the IQuickDocProvider and IQuickDocPresenter interfaces. There are several implementations, from CSS to C# query variables (in LINQ expressions), to JS functions and resx files, amongst others. The QuickDocManager maintains an ordered list of providers (based on a priority value specified in the provider's QuickDocProvider attribute) and asks each in turn if they can handle navigation. If so, it then asks them for a presenter and the presenter then creates the html displayed in the quick doc window.

The presenter interface includes a ReadMore method that can optionally display external help. A lot of the providers don't implement this. The most interesting one that does is the QuickDocTypeMemberPresenter. I'm not entirely sure when this implementation gets used, but it seems to work for types as well as type members. It uses the HelpSystem class to display "msdn" style help for the current element in the abstract syntax tree (type, method, property, etc).

The HelpSystem class also maintains an ordered list of IShowHelp implementations, which it asks in turn if it can display the help for a particular keyword (the fully qualified element name) and style ("msdn" or "product"). You could write a plugin that implements IShowHelp, parses the keyword and, if it matches a certain namespace (e.g. nunit), open a browser to a particular url.

Hope this helps
Matt

0
Comment actions Permalink

Thanks for the info Matt.  

0

Please sign in to leave a comment.