Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Created Issue: Quick Info for expressions can be too long [1143]

$
0
0
```
function f(g) { return ""; }

f(function () { }).length
```
Hover over `length`. The quick tip for it will include the entire text of expression, including the body of the anonymous function. This is true regardless of how long the function body is. Try inserting a bunch of semicolons, each on its own line, inside the body - they will show up in the quick tip. It's actually possible to insert so many that the tip is as big as the editor window.

We should be trimming these down. Function bodies are the most obvious, we should just replace them with `...`. Also, if the entire string just grows longer than some limit, we should trim the whole thing - if it's a dotted expression, preferably in such a way that the last segment (i.e. `.length` in the example above) is visible inasmuch as possible.

Viewing all articles
Browse latest Browse all 4630

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>