nwolverson / purescript-language-server

MIT License
184 stars 41 forks source link

Autocomplete doesn't work when lines start with an "import" substring #149

Closed natefaubion closed 3 years ago

natefaubion commented 3 years ago

For example:

importFoo :: ...

Autocomplete doesn't work here because it thinks this line is an import declaration.

wclr commented 3 years ago

Is this bug is in LS, I wonder where it comes from?

nwolverson commented 3 years ago

@wclr Please refrain from commenting if you have nothing to add.

nwolverson commented 3 years ago

This completion is simply a hack, and for example won't behave correctly with line breaks, in particular, but I don't see a point in fiddling any more than this until such point a proper parser is involved.