Visual Studio 2017 comes bundled with node v5.4.1 (based on installs I've checked). This seems to be the default node version used for running npm, gulp and grunt tasks in the Task Runner Explorer, as well as typescript language service plugins.
This PR allows the plugin to run on node v5.
I've replaced methods that don't exist yet (Array.prototype.includes)
Unsupported syntax is covered by building to ES5
I've tried to trim down the typings as best as I can too, though they may not be perfect
I've tested this on Node 6 with Gentoo Linux and Node 5 and 8 on Windows 10 (with #5 in place).
Visual Studio 2017 comes bundled with node v5.4.1 (based on installs I've checked). This seems to be the default node version used for running npm, gulp and grunt tasks in the Task Runner Explorer, as well as typescript language service plugins.
This PR allows the plugin to run on node v5.
Array.prototype.includes
)I've tested this on Node 6 with Gentoo Linux and Node 5 and 8 on Windows 10 (with #5 in place).