modules icon indicating copy to clipboard operation
modules copied to clipboard

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

Open matifali opened this issue 1 year ago • 2 comments

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:

  • [ ] Update module
  • [ ] Test each case manually to ensure new and old behavior works.

matifali avatar Mar 14 '24 18:03 matifali

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

matifali avatar Mar 14 '24 21:03 matifali

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.

code-asher avatar Mar 15 '24 20:03 code-asher