Fix: OpenVSX urls with versionRaw

What does this MR do and why?

Fix: OpenVSX urls with versionRaw

  • This fixes an issue with OpenVSX to support installing extensions like hashicorp.terraform.
  • See this issue.

History:

  • Out of the box, VSCode provides a {version} parameter for resource_url_template. This {version} can sometimes include a targetPlatform (e.g. web) which actually causes Open VSX to 404.
  • In this MR, we patched our VSCode fork to incldue a {versionRaw} that doesn't include this targetPlatform, which Open VSX is happy with.
  • This MR updates the main project's settings to use {versionRaw} in the resource_url_template.

Screenshots or screen recordings

Before After
Screenshot_2025-03-12_at_6.15.16_PM Screenshot_2025-03-12_at_6.12.21_PM

How to set up and validate locally

  1. Enable the feature flags vscode_web_ide and web_ide_extensions_marketplace.
  2. Visit the Web IDE for a project.
  3. Open the extensions tab. If extension marketplace is disabled, try to follow the instructions on the tab to disable it. This might require enabling the feature in user prefrences.
  4. Search for the extension hashicorp.terraform.
  5. Click Install.
  6. EXPECTATION: The extension should install successfully.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Paul Slaughter

Merge request reports

Loading