Ask a questionAsk a question
 

AnswerTooltips in squiggle tag

  • Thursday, July 23, 2009 2:09 AMMichael Feingold Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    What should I feed to the squiggleTag constructor as a tooltip. The type of the appropriate parameter is object. Itried to stick a string there - nothing happened. The squiggle line is there but no tooltip.
    Also the only type of squiggle I am getting is a red one. What a valid strings for the squggle type? I tried "error", "warning", "ga" - for "garbage" all look the same

Answers

  • Thursday, July 23, 2009 4:26 AMNoah RichardsMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    You can use the strings on StandardErrorTypeService for the default provided types.  If you want to define your own, you can provide an EditorFormatDefinition, and create a squiggle with a matching name.  The squiggle visual manager uses the foreground brush/color property for the squiggle brush.

    As for the tooltip, I've heard other reports about issues around it.  I'll try playing around with it to see if it is indeed broken in Beta 1, but I'm guessing that it probably is.  We likely didn't notice it because the squiggle tooltip content you see in Visual Studio doesn't actually come from squiggles; it comes from quick info, which is part of intellisense.

    -Noah

All Replies

  • Thursday, July 23, 2009 4:26 AMNoah RichardsMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    You can use the strings on StandardErrorTypeService for the default provided types.  If you want to define your own, you can provide an EditorFormatDefinition, and create a squiggle with a matching name.  The squiggle visual manager uses the foreground brush/color property for the squiggle brush.

    As for the tooltip, I've heard other reports about issues around it.  I'll try playing around with it to see if it is indeed broken in Beta 1, but I'm guessing that it probably is.  We likely didn't notice it because the squiggle tooltip content you see in Visual Studio doesn't actually come from squiggles; it comes from quick info, which is part of intellisense.

    -Noah
  • Wednesday, November 25, 2009 9:41 PMa280Z28 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    The squiggle tags are missing an IntelliSense controller (IIntellisenseController) to tell Visual Studio when to show their tooltips. I made a post on my blog on how to implement the controller - it's so general that you could install it as its own MEF component and it would work for all taggers, or you could limit the ContentType from "text" to your own content type. In the future, I hope to create an MEF extension that provides a variety of additional services and features (including this one) so developers don't have to worry about problems like this. :)

    http://blog.280z28.org/archives/2009/11/61/

    Sam
    • Proposed As Answer bya280Z28 Wednesday, November 25, 2009 9:52 PM
    •