Home

Duplicated parts of namespace or class names in ToolTip in v5.0.7

I've overridden my 5.0.6 so I don't know this is new to this build, but I think I would have noticed.

I don't yet have the exact scenario, but I see it in C# with just

"Test".Dump();

Hovering over Dump shows "(extension) string LINQPad.LINQPad.Extensions.Dump()" on the first line of the tooltip.

In VB.NET:

My.Application.Info.DirectoryPath.Dump

Hovering over Application and Info show duplicate parts in the "As clause" and Dump shows the same duplication as in C#.

BTW, in VB.NET Subs are currently shown with "As Void". Again I think I would have noticed this if it was in previous builds, but it is less likely I would have hovered to try it.

Comments

  • Thanks - I've fixed this for C# in 5.0.8 and a VB fix is on the way.
  • As I see it, it is not completely fixed in C# for 5.0.8:

    var q=Util.CurrentQuery;

    Util.CompileAsync(null);

    Util.GetWebProxy();

    These all duplicate something still.
  • This seems to be fixed for both VB and C# in 5.0.9.
  • This is working almost too well :-) Can there be (or is there) some way of finding out what Namespace a type displayed in at tooltip is in? The current display is definitely best when you know where the types are from, but quite frustrating when you don't :-(

    Something as "simple" as showing the full Namespace "path" for all types in tooltips when Ctrl and Shift are down would do for me.


    And a related question: Is it documented anywhere what the default Namespace Imports are?

    From my own testing they seem to be:

    LINQPad
    System
    System.Collections
    System.Collections.Generic
    System.Data
    System.Data.Linq
    System.Data.Linq.SqlClient
    System.Data.SqlClient
    System.Diagnostics
    System.IO
    System.Linq
    System.Linq.Expressions
    System.Reflection
    System.Text
    System.Text.RegularExpressions
    System.Threading
    System.Transactions
    System.Xml
    System.Xml.Linq
    System.Xml.XPath

Sign In or Register to comment.