coder / modules

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

bug(code-server): Inability to set object values in `settings` #296

Open phorcys420 opened 2 months ago

phorcys420 commented 2 months ago

Discord Thread


The type of the settings variable is map(string) and therefore does not allow you to set settings like files.exclude which takes in an object.

You would want to set the value like this, but the type doesn't allow you to do so.

settings = {
    "files.exclude" = {
      "**/.*": true
    },
    "workbench.colorTheme" = "Default Dark Modern"
}

I think all that has to be done is set the variable's type to map(any).

phorcys420 commented 2 months ago

@matifali, could you take a look? it should be a relatively low effort fix, i just won't have time to look into it for a bit