Feature: Pre-Install VS Code extensions in desktop VS Code module #218
+405
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
/claim #207
Closes #207
Description
setup.sh
script 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_extensions
variables 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_script
resource 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.md
to 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_extensions
flag. (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-desktop
New version:
v1.0.0
Breaking change: [ ] Yes [X] No
Testing & Validation
bun test
)bun run fmt
)Related Issues
None