Skip to content

fix(vscode-web): add open_in parameter#937

Merged
matifali merged 3 commits into
coder:mainfrom
Edd88-pixel:fix/vscode-web-open-in
Jul 1, 2026
Merged

fix(vscode-web): add open_in parameter#937
matifali merged 3 commits into
coder:mainfrom
Edd88-pixel:fix/vscode-web-open-in

Conversation

@Edd88-pixel

Copy link
Copy Markdown
Contributor

Description

Add an open_in input to the vscode-web module and pass it through to coder_app.vscode-web.

The input accepts tab or slim-window and defaults to slim-window, preserving the existing behavior while allowing users to open VS Code Web in a normal browser tab.

Type of Change

  • Bug fix
  • New module
  • New template
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/coder/modules/vscode-web
New version: v1.6.0
Breaking change: [ ] Yes [x] No

Testing & Validation

  • Terraform tests pass (terraform test -verbose: 3 passed, 0 failed)
  • Terraform configuration validates (terraform validate)
  • Terraform and README formatting checks pass
  • Minor version bump validated with .github/scripts/version-bump.sh --ci minor origin/main
  • Container-backed TypeScript tests completed locally (3 non-container tests passed; 4 existing container tests could not start because the local Docker Linux engine was unavailable and are left to CI)

Related Issues

Fixes #929

@matifali matifali left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks

@matifali matifali requested a review from DevelopmentCats June 29, 2026 16:28
@Edd88-pixel

Copy link
Copy Markdown
Contributor Author

@DevelopmentCats Please, can you review this?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new open_in input to the registry/coder/modules/vscode-web Terraform module so consumers can choose whether the VS Code Web app opens in a normal browser tab or the existing slim-window mode, aligning with coder_app.open_in behavior and addressing issue #929.

Changes:

  • Introduces variable "open_in" with validation (tab | slim-window) and default slim-window.
  • Passes open_in through to resource "coder_app" "vscode-web".
  • Adds Terraform tests to verify default/custom values and validation failures; updates README examples to reference module version 1.6.0.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
registry/coder/modules/vscode-web/main.tf Adds open_in input + validation and wires it into the coder_app resource.
registry/coder/modules/vscode-web/vscode-web.tftest.hcl Adds plan-time tests covering default/custom/invalid open_in values.
registry/coder/modules/vscode-web/README.md Bumps referenced module version in examples to 1.6.0.

Comment thread registry/coder/modules/vscode-web/main.tf
@matifali matifali enabled auto-merge (squash) July 1, 2026 09:25
@matifali matifali merged commit 9a68964 into coder:main Jul 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(vscode-web): module should take open_in parameter

3 participants