coupergateway / couper-vscode

VSCode extension with syntax highlighting and auto-completion for couper config file
https://marketplace.visualstudio.com/items?itemName=couper.couperconf
MIT License
5 stars 0 forks source link

sync schema with current couper master branch #135

Closed malud closed 6 months ago

malud commented 8 months ago

Ensure that we are up-to-date with the recent implementation. E.g. TLS block or newly added functions.

johakoch commented 7 months ago

Which functions are missing? I searched the couper changelog for added functions. The last added to couper were

johakoch commented 7 months ago

The tls blocks have different atributes or nested blocks depending on the parent block:

I don't think there's currently a way in the extension code to describe this. @afflerbach Do you have an idea?

afflerbach commented 7 months ago

Different nested blocks should be doable with a solution like the dynamic parents lookup for beta_rate_limit. For dynamic attribute completion, there's need for some similar function based logic somewhere around here.

johakoch commented 7 months ago

@malud Can you please allow me to push to this repo?

johakoch commented 7 months ago

@afflerbach Looks like passing a function to parents also works for attributes :-)