You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal for separating the vscode tools from the vscode API #970
changed the title [-]Proposal for separating the vscode tools form the vscode API[/-][+]Proposal for separating the vscode tools from the vscode API[/+]on Dec 13, 2015
Here is the proposal that you can already try out by installing the generator from the next branch:
npm install --g generator-code@next
an extension is now generated with a npm post install script that will download the correct version of vscode.d.ts depending on the engine field of the extension
the logic to find the right version to download is by applying a semver check and taking the smallest vscode version that qualifies the engine version
you can specify to depend on vscode: "*" and this will pull down the vscode.d.ts as we have it on master
To not break existing extensions, we publish the vscode module as version 0.2.0.
In order for existing extensions to adopt this change:
change dependency of vscode to 0.2.0
add the following scripts section to package.json:
adjust the engine field for vscode depending on API needs
run npm install to pull down the correct vscode.d.ts version
Note: If you leave the engine field for vscode the way it was (^0.10.1), you will end up with an old vscode.d.ts that does not have our latest documentation. Therefor it is recommended to change the engine field to ^0.10.6.
Activity
[-]Proposal for separating the vscode tools form the vscode API[/-][+]Proposal for separating the vscode tools from the vscode API[/+]bpasero commentedon Jan 8, 2016
Here is the proposal that you can already try out by installing the generator from the next branch:
npm install --g generator-code@nextvscode: "*"and this will pull down the vscode.d.ts as we have it on masterTo not break existing extensions, we publish the
vscodemodule as version0.2.0.In order for existing extensions to adopt this change:
vscodeto0.2.0package.json:enginefield for vscode depending on API needsnpm installto pull down the correct vscode.d.ts versionNote: If you leave the
enginefield for vscode the way it was (^0.10.1), you will end up with an old vscode.d.ts that does not have our latest documentation. Therefor it is recommended to change the engine field to^0.10.6.felixfbecker commentedon Mar 11, 2016
Benjamin Pasero (@bpasero) Should
vscodebe a dependency or adevDependency?bpasero commentedon Mar 11, 2016
Felix Becker (@felixfbecker) devDependencies