starlark-lsp icon indicating copy to clipboard operation
starlark-lsp copied to clipboard

Autocomplete for dicts

Open vexvec opened this issue 3 years ago • 4 comments

Autocomplete for dicts would be very good. This would ease the configuration with structured data.

vexvec avatar Sep 23 '22 12:09 vexvec

Can you write an example you'd like to see work?

nicksieger avatar Sep 23 '22 15:09 nicksieger

Sure

var1 = {
  "metadata" = " aaa"
}

I'd like do access metadata if I write var1[. Similar to the dot notation typescript provides for nested interfaces / maps.

vexvec avatar Sep 23 '22 16:09 vexvec

@nicksieger is it likely that this feature will be implemented in the near future. It would really ease the configuration.

vexvec avatar Oct 11 '22 12:10 vexvec

I agree it would be a nice-to-have. Without some support 👍 it would be hard to prioritize working on this soon though, thanks for understanding. If you want to attempt a PR yourself I would definitely take a look!

nicksieger avatar Oct 11 '22 16:10 nicksieger