You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Limit completions to top 20
We are overwhelming the LSP client by sending 100s of completions after the
first character. Instead, let's send 20 at a time and refresh for more when the
user types another word
* Simplify (thanks Neil!)
* Magic constant explained and increased to 40
* Add test
* Turn maxCompletions into config
* Fix some inaccuracies in tests
* document haskell.maxCompletions
* Fix another test
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -298,6 +298,7 @@ Here is a list of the additional settings currently supported by `haskell-langua
298
298
- Completion snippets (`haskell.completionSnippetsOn`, default true): whether to support completion snippets
299
299
- Liquid Haskell (`haskell.liquidOn`, default false): whether to enable Liquid Haskell support (currently unused until the Liquid Haskell support is functional again)
300
300
- Hlint (`haskell.hlintOn`, default true): whether to enable Hlint support
301
+
- Max completions (`haskell.maxCompletions`, default 40): maximum number of completions sent to the LSP client.
301
302
302
303
Settings like this are typically provided by the language-specific LSP client support for your editor, for example in Emacs by `lsp-haskell`.
0 commit comments