Skip to content

Conversation

blink-so[bot]
Copy link
Contributor

@blink-so blink-so bot commented Aug 27, 2025

This PR updates all references to the jetbrains-gateway module to use the new coder/jetbrains module with a simplified configuration format.

Summary of Changes

Module Updates

  • Module name: Changed from jetbrains_gateway to jetbrains
  • Module source: Updated from registry.coder.com/modules/jetbrains-gateway/coder to registry.coder.com/modules/coder/jetbrains/coder
  • Version constraint: Set to "~> 1.0" for automatic minor updates while preventing breaking changes
  • Configuration: Simplified to only include essential parameters (count, source, version, agent_id, folder)

New Module Format

module "jetbrains" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/modules/coder/jetbrains/coder"
  version  = "~> 1.0"
  agent_id = coder_agent.example.id
  folder   = "/home/coder"
}

Files Updated

Coder Templates (10 files):

  • registry/coder/templates/aws-linux/main.tf
  • registry/coder/templates/azure-linux/main.tf
  • registry/coder/templates/digitalocean-linux/main.tf
  • registry/coder/templates/docker-devcontainer/main.tf (folder: /workspaces)
  • registry/coder/templates/docker/main.tf
  • registry/coder/templates/gcp-devcontainer/main.tf (folder: /workspaces)
  • registry/coder/templates/gcp-linux/main.tf
  • registry/coder/templates/gcp-vm-container/main.tf
  • registry/coder/templates/kubernetes-devcontainer/main.tf
  • registry/coder/templates/kubernetes-envbox/main.tf

Coder-Labs Templates (1 file):

  • registry/coder-labs/templates/tasks-docker/main.tf (folder: /home/coder/projects)

Folder Path Preservation

  • Most templates use /home/coder
  • Devcontainer templates (docker-devcontainer, gcp-devcontainer) use /workspaces
  • Coder-labs tasks-docker template uses /home/coder/projects
  • Original folder paths preserved from previous configuration

Testing

All changes maintain the same functionality while pointing to the new module location. The simplified configuration reduces complexity while providing the same JetBrains IDE integration capabilities.

blink-so bot and others added 5 commits August 27, 2025 18:45
Replace all references to registry.coder.com/modules/jetbrains-gateway/coder
with registry.coder.com/modules/coder/jetbrains/coder in:
- Coder template examples
- Coder-labs template examples

Co-authored-by: AtifUpdate <[email protected]>
Replace jetbrains_gateway module blocks with simplified jetbrains module:
- Change module name from 'jetbrains_gateway' to 'jetbrains'
- Use simplified configuration with only required parameters
- Set version to 1.0.3
- Remove complex IDE selection and configuration options

Co-authored-by: AtifUpdate <[email protected]>
- Restore /workspaces for devcontainer templates
- Restore /home/coder/projects for coder-labs tasks-docker
- Keep /home/coder for other templates

Co-authored-by: AtifUpdate <[email protected]>
Restore agent_name parameter that existed in original jetbrains_gateway modules:
- "dev" for aws-linux template
- "main" for all other templates

Co-authored-by: AtifUpdate <[email protected]>
@matifali matifali marked this pull request as ready for review August 27, 2025 19:30
@matifali matifali self-assigned this Aug 27, 2025
@matifali
Copy link
Member

@DevelopmentCats can you help merge this? I don't know why the CI falong on some unrelated changes.

@DevelopmentCats
Copy link
Contributor

@DevelopmentCats can you help merge this? I don't know why the CI falong on some unrelated changes.

Yeah I fixed this in the AGENTS.md PR.

Some changes were made to the formatting and it caught a formatting issue after the previous PR for Cursor, Kiro, and Windsurf was merged with passing tests yesterday. I will merge that once it's approved and then this will pass

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.

2 participants