Haskell-ide-engine: Completion is not case sensitive

Created on 21 Nov 2018  路  3Comments  路  Source: haskell/haskell-ide-engine

In the screenshot below I have typed the word tok, which has triggered completion, and I want to use one of the fields from the data type.

screenshot from 2018-11-21 21-42-43

In my view, the first two should not be shown at all, and the third (permutation of the word) only if nothing else shows up.

I am not sure how much of this is other company backends in my emacs, and how much is hie.

Except the HIE ones show up with that underscore in the middle, which is the concatenation of the actual completion and the description of it. Probably needs fixing in emacs-lsp too.

enhancement

Most helpful comment

I think it would be useful only to respect the casing for the first char. It is quite useful that auto-completion helps remembering the actual casing of functions.

All 3 comments

And looking more closely, there are duplicates, because of my screwed up re-exporting. But operationally they are the same, so only one of e.g. the tokLexeme suggestions should be provided.

I am going to make completion case sensitive, but add a configuration option for people who prefer the current behaviour.

I think it would be useful only to respect the casing for the first char. It is quite useful that auto-completion helps remembering the actual casing of functions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rvion picture rvion  路  3Comments

mouse07410 picture mouse07410  路  4Comments

alanz picture alanz  路  3Comments

fendor picture fendor  路  4Comments

raxod502 picture raxod502  路  4Comments