-
Notifications
You must be signed in to change notification settings - Fork 76
[WIP]: Add extension install logic to vscode-desktop-core #452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add logic for handling VS Code and non-MS IDEs in scripts. - Introduce Terraform variables for extension details. - Implement validation for protocol selection. - Include tests to validate extension install paths and mutual exclusions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds extension installation functionality to the vscode-desktop-core Terraform module, enabling automatic installation of IDE extensions via either extension IDs (normal operation) or direct URLs (airgapped environments).
Key changes:
- Adds new variables for managing extensions:
extensions,extensions_urls, andextensions_dir - Implements a bash script (
run.sh) that downloads and installs extensions from marketplace URLs - Adds validation to prevent simultaneous use of both extension installation methods
- Updates minimum Coder provider version to 2.11
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| main.tf | Adds extension-related variables, default extensions directories mapping, coder_script resource for extension installation, and protocol validation |
| run.sh | New bash script implementing extension download/installation logic with marketplace URL generation for different IDE types |
| main.test.ts | Adds comprehensive test coverage for extension installation script generation and marketplace logic |
| vscode-desktop-core.tftest.hcl | Adds Terraform tests for extensions directory defaults, custom overrides, and validation scenarios |
…thods, and add module dir with logging paths for troubleshooting
…process with detailed output for troubleshooting
WIP