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

Edited Unassigned: Autocomplete for callbacks [1302]

$
0
0
Given that we are dealing with callbacks constantly in Javascript, it would be nice if the callbacks would autocomplete, certainly in TypeScript as we have type declarations there.

When I type the following code
```
import http = require('http');
http.createServer(
```
I get a tooltip stating
> requestListener?: (request: ServerRequest, response: ServerResponse) => void

Suppose I press the enter key (or possibly Ctrl-space) the editor should autocomplete to the code below, and place the cursor inside the anonymous function.
```
import http = require('http');
http.createServer(function (request: http.ServerRequest, response: http.ServerResponse) {

}
```

Viewing all articles
Browse latest Browse all 4630

Trending Articles