CTRL-hover not showing type of property (10.0.4)

Using version 10.0.4, and am finding that CTRL-hover sometimes does not show the type of a property.

Using this code snippet:


var someVar =
{
   a : {text: 'at' , value: 'av'},
   b : {text: 'bt' , value: 'bv'}
}

function someFunc():string
{
   return someVar.b.value;
}


If you CTRL-hover over 'value' in the function return statement, it does not show that 'value' is a string. It does show that it is a property, but without type.

If you take that snippet and paste it into the Playground at the TypeScript web site, hovering over 'value' will show that it is a property of type string.

Bob Wirka

2 comments
Comment actions Permalink

hit Ctrl+Q on this property to see inferred type

0
Comment actions Permalink

Yes, that will show it as a string.

Would be nice to see it on the hover...

Thank you,

Bob Wirka

0

Please sign in to leave a comment.