Closed
Description
Environment data
- VS Code version: 1.55.0
- Extension version (available under the Extensions sidebar): 2021.3.680753044
- OS and version: Ubuntu 20.04 LTS
- Python version: 3.7, deadsnakes
- Type of virtual environment used: virtualenv
- Value of the
python.languageServer
setting: JediLSP
Expected behaviour
class Thing: pass
Th<tab> # should complete to:
Thing| # cursor after completed word
Actual behaviour
class Thing: pass
Th<tab> # should complete to:
Thing(|) # cursor between completed parens
As far as I can tell this is specific to the JediLSP integration -- changing my language server to Jedi results in the expected completion.
I can maybe see why this is maybe useful if you're planning to construct an instance or calling a function, though there are many other places where callable symbols are used in which you don't want this to happen -- passing them as callbacks and type annotations for example.