Skip to content

Pre-install VS Code extensions in desktop VS Code module #207

Description

@matifali

Extend the VS Code desktop module to automatically install the specified extensions and apply settings.

  • Should accept the extension list as a parameter
  • Should accept settings as input
  • Should install the extension for the remote host
  • Extend the existing VSCode Desktop module with this new feature

Note

When a user connects to a Coder workspace for the first time, the extension and settings should be pre-installed and pre-applied.

Activity

  1. added theissue type on Jul 11, 2025
  2. yashksaini-coder commented on Jul 11, 2025

    @yashksaini-coder

    /attempt #207

    My appraoch it to Add an extra extensions parameter that accepts a list of extension IDs. Create a new run.sh script that uses code --install-extension to install each extension during VM provisioning after VS Code setup. Include basic error handling and ensure proper user context for persistent installations.

  3. deleted a comment from algora-pbc on Jul 12, 2025
  4. yashksaini-coder commented on Jul 12, 2025

    @yashksaini-coder

    @matifali I have raised PR, for this issue, #218

  5. matifali commented on Jul 18, 2025

    @matifali
    MemberAuthor

    /bounty 100

  6. 8 remaining items

  7. deleted a comment from Majain004 on Aug 19, 2025
  8. Pranith124 commented on Aug 24, 2025

    @Pranith124

    /attempt #207

  9. m4rrypro commented on Aug 25, 2025

    @m4rrypro
    Contributor

    /attempt 207

  10. bpmct commented on Sep 22, 2025

    @bpmct
    Member

    Hmm... Why is this challenging?

  11. matifali commented on Sep 22, 2025

    @matifali
    MemberAuthor

    Discussed internally, and we want to solve this more systematically for all IDEs based on VSCode.

  12. DevelopmentCats commented on Oct 22, 2025

    @DevelopmentCats
    Collaborator

    /attempt #207

    My appraoch it to Add an extra extensions parameter that accepts a list of extension IDs. Create a new run.sh script that uses code --install-extension to install each extension during VM provisioning after VS Code setup. Include basic error handling and ensure proper user context for persistent installations.

    from what I understand installing extensions in a workspace where you aren't currently connected to it with said IDE, is difficult at least with code-cli to install the extensions during the workspace build.

    this is described here in their documentation: https://code.visualstudio.com/docs/remote/ssh#_managing-extensions

  13. DevelopmentCats commented on Oct 22, 2025

    @DevelopmentCats
    Collaborator

    Also this issue is relevant to this topic microsoft/vscode-remote-release#9454

  14. lsrtech commented on Jun 16, 2026

    @lsrtech

    /attempt #207

    I've submitted PR #926 to address this.

    Approach: Adds extensions, settings, and extensions_dir variables to the vscode-desktop module. On workspace start, a script installs the requested extensions to ~/.vscode-server/extensions/ and merges machine settings into ~/.vscode-server/data/Machine/settings.json.

    This addresses the blocker from the previous attempt (#218): the script auto-detects an existing VS Code CLI and falls back to downloading VS Code Server when none is present, so it works on a fresh workspace. It follows the same per-module pattern already shipped in vscode-web and code-server, and exposes extensions_dir so the same approach can be reused by the Cursor/Windsurf/Kiro wrappers in follow-ups.

  15. linear-code commented on Sep 17, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions