Skip to content

Conversation

@Excellencedev
Copy link

Description

This PR implements plugin pre-installation capability for the JetBrains IDE module, addressing issue #208.

Summary

Adds the ability to automatically install JetBrains plugins in workspaces through a new plugins parameter. Plugins are installed at workspace startup using each IDE's native CLI installPlugins command.

Changes

New Features:

  • Added plugins variable to accept a list of JetBrains plugin IDs
  • Added plugin_install_args variable for additional CLI arguments
  • Created install-plugins.sh script that installs plugins using IDE CLI
  • Added coder_script resource that runs plugin installation on workspace startup

Documentation:

  • Updated README with plugin pre-installation examples
  • Added instructions for finding plugin IDs on JetBrains Marketplace
  • Included note about Toolbox compatibility

Tests:

  • Added 4 new Terraform test cases for plugin functionality
  • All 18 tests passing

Example Usage

module "jetbrains" {
  count    = data.coder_workspace.me.start_count
  source   = "registry.coder.com/coder/jetbrains/coder"
  version  = "1.3.0"
  agent_id = coder_agent.example.id
  folder   = "/home/coder/project"
  default  = ["IU", "PY"]

  plugins = [
    "com.intellij.plugins.terminal",
    "org.rust.lang",
    "com.github.copilot",
  ]
}

Compatibility

  • Works with JetBrains Toolbox (v2.7+)
  • Works with standalone IDE installations
  • Handles IDEs not yet installed (installs plugins on first IDE launch)
  • Supports all JetBrains IDEs (IntelliJ, PyCharm, GoLand, etc.)

Testing

Verified with:

  • terraform init -upgrade - Success
  • terraform test -verbose - All 18 tests passed
  • bun run fmt - Formatting applied

DEMO: https://github.com/user-attachments/assets/31a67080-a5c9-4b0e-835a-cc570759b1d1

/fixes #208
/claim #208

@matifali
Copy link
Member

Hi @Excellencedev, the demo should show the plugins already installed in the JetBrains IDE connected to a Coder workspace. Show the Coder, IDE, and installed plugins.

@Excellencedev
Copy link
Author

Hi @Excellencedev, the demo should show the plugins already installed in the JetBrains IDE connected to a Coder workspace. Show the Coder, IDE, and installed plugins.

No problem. Give me a while

@Excellencedev Excellencedev marked this pull request as draft November 27, 2025 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pre-install JetBrains plugins in Workspaces

2 participants