tweag / nickel

Better configuration for less
https://nickel-lang.org/
MIT License
2.38k stars 89 forks source link

Support completion while in the middle of a complex record #1613

Open thufschmitt opened 1 year ago

thufschmitt commented 1 year ago

Is your feature request related to a problem? Please describe.

Follow-up to #1514: when working on an AST of the form:

{
  x = foo.
  foo = { blahblah = 1 },
}

Nls isn't able to complete after foo.

Describe the solution you'd like

Provide completion despite the invalid syntax tree

Describe alternatives you've considered

ø

thufschmitt commented 3 months ago

I came across that again in a slightly different case:

{
  foo.<CURSOR>
} | { foo.bar }

Interestingly,

{
  foo.b<CURSOR>
} | { foo.bar }

works, probably because the second one is syntactically valid.