-
-
Notifications
You must be signed in to change notification settings - Fork 389
How to prevent inserting a space after the type? #2786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think you've enabled |
Hi @July541 , Thanks for your information. If I understand correctly, with I was wondering, is it possible for the server to return a string without spaces (Just "Int" for example) while enabling the snippet feature. I'm curious, why HLS need to return an extra space? |
+1 for not inserting spaces by default. |
An extra space left because there is no argument for The only thing I can think of is entering multiple parameters in succession, but it also annoying for the last param, I'll delete the space before going to the next line. Agree to remove the space while no arguments. |
@July541 Thanks for your explanation.
Recently, I will use formatting tools to handle the unused spaces.
Indeed, this would be a small enhancement when input these type keywords without arguments. |
This just seems like a bug, tbh? Maybe something around here https://github.com/haskell/haskell-language-server/blob/master/ghcide/src/Development/IDE/Plugin/Completions/Logic.hs#L262 |
Discussed in #2785
Originally posted by Eason0210 March 16, 2022
I use Emacs + eglot + company + yasnippet, when I insert the name of a type( Int Double or Float), HLS will insert a space after it.
Any one known how to disable this feature?
For example: I input
length' :: [Int]
, and I will getlength' :: [Int ]
The same issue also happened on vscode
From the EGLOT event log, you can see HLS return is
"Int "
Emacs 29.0.50
Mac OS 12.3
HLS: 1.6.1.0
The text was updated successfully, but these errors were encountered: