Skip to content

Document how to use OSS build as a daily driver #3029

Closed

Description

Need to document how to get an OSS build into working condition as a daily driver.

Having this process documented in a central location would also be useful for package maintainers. (For example, if Ubuntu were to decide to start shipping vscode.)

Compared to the 0.10.8 (January) release of vscode, the oss build also includes vscode-api-tests, but it's removed in the release version, which makes sense.

The release version also includes jrieken.vscode-omnisharp, but the oss build doesn't. (Not really sure why. Probably an oversight?).

Aside from that, the only other difference I can find with the extensions is that the node-debug and mono-debug "extensions" in the oss build are just stub packages (node-debug-placeholder and mono-debug-placeholder).

As noted in issue #60, comment 6, the release ships with a different product.json. Some of the differences are cosmetic, others fill in service endpoints. Here are the most notable differences:

  • The extensionsGallery property is set in the release build. Notable because it controls whether the "Install Extensions" item shows up in the command palette, and downstream packagers should set this to something appropriate if they want to enable extension downloads from within the product.
  • The dataFolderName is changed. Notable because it controls where (some of) the user configuration and extensions are stored. If the VSCODE_DEV environment variable is set, it will use the directory name obtained by appending "-dev" to the dataFolderName value. (The vscode launch scripts for the oss build set VSCODE_DEV by default.)
  • crash reporting and telemetry are enabled in the release build.

This isn't an exhaustive listing, but it's not meant to be. However, some document that includes this information needs to exist, and going ahead and mentioning it in this comment is a starting point.

Activity

  1. Tyriar commented on May 13, 2016

    @Tyriar
    Contributor

    Andre Weinand (@weinand) any comment on why the debuggers don't work in oss?

  2. weinand commented on May 13, 2016

    @weinand
    Contributor

    Daniel Imms (@Tyriar) the 'debuggers' just work fine in oss for 'normal' programs. This is not a debugger issue.

    Deleted user (@ghost) The issue with the use case from above is that electron needs to be launched in a way that it behaves like VS Code and not like a generic Electron app. For this it is necessary to pass the VS Code workspace path as a first argument to the runtime. Here is a modified launch config for that case:

    2016-05-13 23-18-02

    Additional remarks:

    • VS Code 1.0 has only one builtin debugger: node-debug. Mono-debug is a regular extension that exists on the Marketplace for historical reasons. For debugging of C# programs please use the C# extension.
    • It is not necessary to remove the fake node-debug from the VS Code workspace. You can just install the node-debug extension from a recent VS Code drop into your extension folder: ~/.vscode-oss-dev/extensions or git clone the vscode-node-debug project into that location and build it there. Those extension will override VS Code's internal extensions.

    Benjamin Pasero (@bpasero) would it be possible to detect the use case from above and automatically pass the VS Code workspace path as the first argument? This would simplify the setup for extension developers who wants to selfhost on VS Code because they would not have to tweak their launch configs.

  3. added
    debug
    debt
    on Apr 6, 2017
  4. added a commit that references this issue on Jun 14, 2017
  5. removed
    debug
    on Aug 18, 2017
  6. added
    under-discussion
    on Aug 23, 2017
  7. Tyriar commented on Aug 27, 2017

    @Tyriar
    Contributor

    Closing this off, the requesters are all 👻

  8. removed
    debt
    on Aug 27, 2017
  9. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    under-discussion

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions