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

Commented Feature: Allow setting non-js files as the startup file. [1008]

$
0
0
The express-generator utility creates a JavaScript file with no extension that is supposed to be used to launch the project:

Contents of `bin\www`:
```
#!/usr/bin/env node
var debug = require('debug')(Test');
var app = require('../app');

app.set('port', process.env.PORT || 3000);

var server = app.listen(app.get('port'), function() {
debug('Express server listening on port ' + server.address().port);
});
```

Because it does not have a .js extension, the UI does not allow selecting as the startup file.

We should allow selecting either any file, any extensionless file, or any file containing a node shebang line, as the startup file.
Comments: Note that users can open any file using our language service and regardless of its extension, if they use "Open With..." (through right-click) and select Node.js editor.

Viewing all articles
Browse latest Browse all 4630

Trending Articles



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