Answered by:
F1 Help (Dynamic Help/Context Sensitive Help) from Custom Language Service...

Question
-
Hello,
I am trying to add Help on F1 in my custom language service. I did look the example from SDK and other documentation on MSDN. I implemented IVsLanguageContextProvider interface in my language service. On running my languageservice from Experimental Hive I do get break in UpdateLanguageContext function on pressing F1. I addthe context
ErrorHandler.ThrowOnFailure(userContext.AddAttribute(VSUSERCONTEXTATTRIBUTEUSAGE.VSUC_Usage_LookupF1, "keyword", line));
Where line is the one selected for getting help. Somhow when it opens the dynamic help window it shows my selected text under Index but in the document explorer it shows standard topic not found message. I tried different ways like calling help service but the result is same. Also I do get event UpdateLanguageContext call twice.
I also set HKCU\<root hive>\Dynamic Help\Display Debug Output in Retail registry value to “YES”,
I will appriciate the help!
Thanks,
AG- Edited by Jane Wang - MSFT Monday, December 16, 2013 5:46 AM "Sensative" should be "Sensitive"
Monday, February 22, 2010 9:02 PM
Answers
-
Hello AG,
Thanks for your post.
What's the content of the line argument? The keyword is better to be a single word instead of the line.
According to the MSDN document: http://msdn.microsoft.com/en-us/library/bb166524.aspx
IVsTextMarkerContextProvider is used to provide kewords for the dynamic help.
Hope it helps.
Hongye Sun [MSFT]
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg @ microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
See what's happening in MSDN forum? Follow us at Twitter.- Marked as answer by Hongye Sun - MSFT Wednesday, March 3, 2010 5:29 AM
Wednesday, February 24, 2010 2:55 AM
All replies
-
Hello AG,
Thanks for your post.
What's the content of the line argument? The keyword is better to be a single word instead of the line.
According to the MSDN document: http://msdn.microsoft.com/en-us/library/bb166524.aspx
IVsTextMarkerContextProvider is used to provide kewords for the dynamic help.
Hope it helps.
Hongye Sun [MSFT]
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg @ microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
See what's happening in MSDN forum? Follow us at Twitter.- Marked as answer by Hongye Sun - MSFT Wednesday, March 3, 2010 5:29 AM
Wednesday, February 24, 2010 2:55 AM -
Hi AG,
Have you tried IVsTextMarkerContextProvider instead? Thanks.
Hongye Sun [MSFT]
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg @ microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
See what's happening in MSDN forum? Follow us at Twitter.Monday, March 1, 2010 4:51 AM