nextflow-io / language-server

The Nextflow language server
Apache License 2.0
9 stars 0 forks source link

Azure Batch pool config #37

Open bentsherman opened 1 month ago

bentsherman commented 1 month ago

This one is tricky because the config allows any number of user-defined pools, and this config defines the valid settings in each "pool" scope. So I'm thinking something like:

  1. define azure batch pool config as an "array" config scope
  2. if a config option doesn't match a scope (e.g. azure.batch.pools.foo, remove the last name and see if it matches an array scope (azure.batch.pools)
  3. use the array scope to provide validation, hover hints, completions

Alternatively, it might be time to refactor the config schema into a proper tree structure, where each node can contain options, scopes, or an array of scopes.