Open jhonabreul opened 5 months ago
@pappasam The point of @jhonabreul's question is that we see the JLS complete enums with parentheses as well as classes and it annoys people that they have to manually delete the added() on each enum used.
Edited the issue. It would be really nice to be able to enable parentheses autocompletion for functions and maybe classes (not enums) in VSCode+Python extension+Jedi Language Server
FYI: Jedi's own parentheses completion does not complete classes whatsoever. So I feel like jedi-language-server has it's own logic there.
I expect a merge request to make this test smarter would be welcomed
I expect a merge request to make this test smarter would be welcomed
I'm definitely open to an enhancement here, PR welcome!
Is there a way to enable function parentheses autocompletion when selecting Jedi as Language Server in the VSCode Python extension?
With Pylance, this can be achieved by setting this![pylance](https://github.com/pappasam/jedi-language-server/assets/25215064/cf978b95-b42b-4d0e-8d61-18cbba293257)
"python.autocomplete.addBrackets": true
, as you can see below:It would be good that we could configure this behavior for the Jedi Language Server. Even more, one could argue that when autocompleting class names the parentheses could be also added assuming class instantiation. For enums it does not make sense, though.