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

Commented Issue: No code completion in express handler [150]

$
0
0
Code:
```
var http = require('http');
var port = process.env.port || 1337;
var express = require('express');
var app = express();

app.get('/', function(req, res) {
res.send('Hello!');
});

app.listen(8888);
```
Inside the body of the lambda, there's no code completion for either req or res.
Comments: I thought this was covering the built-in handler, not express... Getting this in express is pretty difficult. We need a better understanding of arguments + function.apply (which I'll check in), but then we need to understand: Router.prototype.route = function(method, path, callbacks){ var method = method.toLowerCase() , callbacks = utils.flatten([].slice.call(arguments, 2)); The slicing of arguments is something that we cannot easily support right now.

Viewing all articles
Browse latest Browse all 4630

Trending Articles



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