coupergateway/couper-vscode

sync schema with current couper master branch

Closed this issue · 5 comments

malud commented

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

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

  • trim() (in couper 1.11.0, added to vscode in #112) and then
  • contains(), join(), keys(), length(), lookup(), set_intersection(), to_number() (in couper 1.8.0, added to vscode in #72).

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?

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.

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

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