microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.72k stars 766 forks source link

Pylance not showing full autcomplete for functions and class #1974

Closed one800hotline closed 3 years ago

one800hotline commented 3 years ago

Environment data

Expected behaviour

Expected (in old version of Python and Pylance):

When hitting tab on def when its selected autocompleted a template shown in picture 2

_picture 1 (function - old version)_: autocomplete_function_old_

_picture 2 (function - old version)_: autocomplete_function2_old

Actual behaviour

_picture 3 (new version)_:

autocomplete_function_new

Code Snippet / Additional information

What I simply want is to understand why the old version behavior of autocomplete isnt present in my latest updated version of Pylance and Python since I appriciate that feature greatly.

jakebailey commented 3 years ago

You're upgrading from a pretty old set of extensions. Those are the snippet completions from the Python extension (not Pylance), and have been removed for almost a year now. See https://github.com/microsoft/vscode-python/issues/14781, which includes ways to add them back via your user settings or other extensions.