Uploaded image for project: 'Docs for Red Hat Developers'
  1. Docs for Red Hat Developers
  2. RHDEVDOCS-5420

Document how to use a .code-workspace file for workspaces with VS Code

XMLWordPrintable

    • 1
    • Documentation (Ref Guide, User Guide, etc.)
    • ---
    • ---

      Based on https://github.com/eclipse/che/issues/22218

      Aim for 3.8 and backport to 3.7 (i.e., the 7.67.x branch on GitHub)

      Include the new section in the following page: https://www.eclipse.org/che/docs/stable/end-user-guide/microsoft-visual-studio-code-open-source-ide/

      https://github.com/eclipse-che/che-docs/blob/main/modules/end-user-guide/pages/microsoft-visual-studio-code-open-source-ide.adoc

      Here's an initial draft you can use, plus add any additional info from Mario, to the docs:

      = Support for `.code-workspaces` files in workspaces with Microsoft Visual Studio Code - Open Source
      
      You can further configure your workspaces by using a `.code-workspace` file in addition to the devfile.
      
      .Procedure
      
      . Include a `__<filename>__.code-workspaces` file in the Git repository to be cloned into {prod-short} workspaces that run with Microsoft Visual Studio Code - Open Source.
      . Specify the `__<filename>__.code-workspace` file in the Git repository's devfile by using the `VSCODE_DEFAULT_WORKSPACE` environment variable. For example:
      +
      [source,yaml]
      ----
      schemaVersion: 2.2.0
      (...)
      components:
      - name: dev-tools
        container:
          (...)
          env:
          - name: VSCODE_DEFAULT_WORKSPACE
            value: "/projects/che-demo-app/che-demo.code-workspace"
      ----
      

       

              rhn-support-mleonov Max Leonov
              rhn-support-mleonov Max Leonov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: