kestra-io / vscode-kestra

VSCode extension to bring Kestra's autocompletion to your IDE
Apache License 2.0
10 stars 0 forks source link

Allow the Kestra API schema in VSCode to be applied only to selected folder(s) e.g. the "_flow" folder (rather than to all YAML files) #18

Closed zd-dalibor closed 5 months ago

zd-dalibor commented 5 months ago

I try to fallow this note in the documentation to limit kestra:/flow-schema.json only to _flows folder in my workspace.

image

But nothing is working. I need to deinstall this extension because in my workspace I also have other types of json and yaml files.

Could someone geve some better explanation how to properly configure vscode and limit kestra:/flow-schema.json to be applied only to specific yaml files or specific folders and not to whole workspace.

anna-geller commented 5 months ago

thanks so much for reporting it, we will look into this soon

anna-geller commented 5 months ago

@brian-mulier-p, can you estimate whether this can be easily done or is a more complex issue?

brian-mulier-p commented 5 months ago

Looks easy but not sure when I'll be able to have a look

Skraye commented 5 months ago

Hi, you can now add a configuration in your settings.json that allows you to provide a regex to match for the schema to be apply: kestra.schema.match-path

For example, the following configuration :

"kestra.schema.match-path": "_flow"

will only match files that have "_flow" in their path

anna-geller commented 5 months ago

FYI: I extended the documentation a bit https://github.com/kestra-io/vscode-kestra/commit/fba7711b440b25ffe96d3a815c196f13b4664359