Repository navigation
Feature: Pre-Install VS Code extensions in desktop VS Code module - #218
yashksaini-coder wants to merge 10 commits into
Conversation
|
@matifali can you please review the PR |
| fi | ||
| done | ||
|
|
||
| # Try to install VS Code Desktop (which provides the CLI) |
There was a problem hiding this comment.
@yashksaini-coder Another option is to not install the code CLI at all and direct download and place extensions VSIX files in the --extensions-dir directory.
We can take that as input to the moudle with a sane default.
Additionally, downloading extensions directly would work with Other VSCode-based IDEs, such as Cursor, WindSurf, and Kiro.
WDYT?
matifali
left a comment
There was a problem hiding this comment.
Install the CLI instead of full VSCode
https://code.visualstudio.com/download
|
@matifali understood let me work on this |
|
Hey @yashksaini-coder - can you please submit a video of this working in a coder deployment once those fixes are made? |
I'm on windows and have performing testing on my code. Haven't been able to deploy properly |

/claim #207
Closes #207
Description
setup.shscript to install extensions & settings managementThis pull request introduces functionality to automate the setup of Visual Studio Code (VS Code) workspaces, including the installation of extensions and configuration of workspace settings. It adds new Terraform variables and resources, a setup script, and corresponding tests to ensure proper behavior.
Terraform Module Enhancements:
extensions,settings, andinstall_extensionsvariables to allow users to specify VS Code extensions, workspace settings, and control automatic installation behavior. Validation ensures proper formatting for extensions. (registry/coder/modules/vscode-desktop/main.tf, registry/coder/modules/vscode-desktop/main.tfR41-R85)coder_scriptresource that dynamically creates a setup script to install extensions and configure settings when applicable. (registry/coder/modules/vscode-desktop/main.tf, registry/coder/modules/vscode-desktop/main.tfR41-R85)Setup Script:
setup.sh) to handle the installation of extensions, configuration of workspace settings, and creation of extension recommendations. The script includes robust error handling, logging, and validation mechanisms. (registry/coder/modules/vscode-desktop/setup.sh, registry/coder/modules/vscode-desktop/setup.shR1-R267)Documentation Updates:
README.mdto include examples for auto-installing extensions, configuring settings, and disabling automatic installation. (registry/coder/modules/vscode-desktop/README.md, registry/coder/modules/vscode-desktop/README.mdR38-R77)Testing:
install_extensionsflag. (registry/coder/modules/vscode-desktop/main.test.ts, registry/coder/modules/vscode-desktop/main.test.tsR89-R143)Type of Change
Module Information
Path:
registry/coder/modules/vscode-desktopNew version:
v1.0.0Breaking change: [ ] Yes [X] No
Testing & Validation
bun test)bun run fmt)Related Issues
None