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

Edited Issue: require completion doesn't work properly if triggered on partially typed module name [1553]

$
0
0
Type:
```
require('htt
```
Use Esc to dismiss the completion list for modules, then immediately re-trigger it by pressing Ctrl+Space.

The new list has two problems. First, it shows all package names, not just those that start with "htt". Furthermore, if you actually select some package from the list (e.g. "http"), it appends the name to what's already typed, producing:
```
require('htthttp'
```
The expected behavior in this case is to replace the name with the new selection.

For comparison, observe how this works for regular completion. E.g. type:
```
console.to
```
Dismiss the completion list and re-trigger it. You will only see members with `to` in the name, and selecting one from the list will replace "to" with the selection.

Viewing all articles
Browse latest Browse all 4630

Trending Articles



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