Is there a list of VScode versions together with the version of Node it comes with (in the extension host?)
The reason is, in package.json
we must specify the engines.vscode
value and also in devDependencies
I have a reference to @types/node
and @types/vscode
. I want these all to match up, so that when I am developing an extension I don't use node APIs which won't be available when running in the editor.
I can find the version of node that my VSCode is running (via Help|About) but if I want to support earlier versions of VScode that info isn't obvious.
[edit] to address the comment from rioV8
As I understand it, engines.vscode
determines the version or range of versions of the editor that will be able to install the extension. The entries in devDependencies (since they are only type definitions) affect the typescript compiler while I am developing.
Even now, if I target the latest version of vscode, it does not include the latest verson of node, so if I just use npm to install @types/node it will allow me to develop with use APIs which will subsequently fail when the extension is launched. In this case it's easy to use Help | About and get the version of node.
However, it would be good to set engine.vscode to the earliest version that would support my extension. In that case I also need to select the corresponding node version, and I don't know how to find that info.
As an example, my current vscode is 1.51.1 which comes with node 12.14.1. If I wanted to target 1.45, which version of node comes with that?
engines.vscode
is mainly used to be sure the VSC API used in the extension is available – Bluefarb