Skip to content

Conversation

matifali
Copy link
Member

@matifali matifali commented Oct 6, 2025

WIP

matifali and others added 6 commits September 24, 2025 14:59
- 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.
Copy link
Contributor

@Copilot Copilot AI left a 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, and extensions_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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants