LSP Auto complete with parenthesis #5999
-
Expected (after pressing enter):- Actual:- Any idea? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This behavior comes from the language server - it's sending just the Completing the parentheses in this case would probably be ok but it would only work for functions/methods with no arguments and it might be awkward if you have functions that can accept different numbers of arguments (for example, providing an optional argument in a language like Elixir). Also see #2678 which is different but has some overlapping discussion. |
Beta Was this translation helpful? Give feedback.
This behavior comes from the language server - it's sending just the
toUpperCase
and not the parentheses. This is very consistent behavior across language servers from what I've seen. Language servers typically complete paretheses if snippet support is enabled (#5864) because the server can also complete the function/method arguments with snippets.Completing the parentheses in this case would probably be ok but it would only work for functions/methods with no arguments and it might be awkward if you have functions that can accept different numbers of arguments (for example, providing an optional argument in a language like Elixir).
Also see #2678 which is different but has some overlappi…