coder / modules

A collection of Terraform Modules to extend Coder templates.
https://registry.coder.com
Apache License 2.0
33 stars 34 forks source link

JetBrains-Gatway: Show a version picker and folder picker if they are not provided #192

Open matifali opened 8 months ago

matifali commented 8 months ago

Currently, our JetBrains-Gateway module accepts a list of IDE identifiers and folders as input and we use it to create the URI and a coder_paramter to pick the IDE.

module "jetbrains_gateway" {
  source         = "registry.coder.com/modules/jetbrains-gateway/coder"
  version        = "1.0.8"
  agent_id       = coder_agent.example.id
  agent_name     = "example"
  folder         = "/home/coder/example"
  jetbrains_ides = ["GO", "WS", "IU", "PY", "PS", "CL", "RM", "RD"]
  default        = "PY"
}

After https://github.com/coder/jetbrains-coder/pull/372, we allow showing a version picker if these fields are not provided.

We should update the module to test that.

TODO:

matifali commented 8 months ago

@code-asher, are you interested in doing this? If not, any suggestions?

code-asher commented 8 months ago

Yeah I am down. It might take me some time to get to it though. I will bring it up in our next planning meeting to get it scheduled.

For implementation, I imagine it should actually be pretty easy, we just need these to be optional so users can omit them when they would rather use the picker from the JetBrains plugin.