Skip to content

Proposal for separating the vscode tools from the vscode API #970

Closed

Description

@egamma

Currently the vscode node module combines the tools and the vscode API into one unit, we want to decouple the API from the used modules.

Support that the vscode tools and its API can evolve separately.

Activity

  1. added
    plan-item
    on Dec 3, 2015
  2. added this to the Dec 2015 milestone on Dec 3, 2015
  3. 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
  4. bpasero commented on Jan 8, 2016

    @bpasero
    Contributor

    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:
    "scripts": {
       "postinstall": "node ./node_modules/vscode/bin/install"
    }
    
    • 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.

  5. felixfbecker commented on Mar 11, 2016

    @felixfbecker
    Contributor

    Benjamin Pasero (@bpasero) Should vscode be a dependency or a devDependency?

  6. bpasero commented on Mar 11, 2016

    @bpasero
    Contributor
  7. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

plan-item

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions