Skip to content
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

Pylance not showing full autcomplete for functions and class #1974

Closed
one800hotline opened this issue Oct 24, 2021 · 1 comment
Closed

Pylance not showing full autcomplete for functions and class #1974

one800hotline opened this issue Oct 24, 2021 · 1 comment

Comments

@one800hotline
Copy link

one800hotline commented Oct 24, 2021

Environment data

  • Language Server version: old version: Pylance language server 2020.12.1. new version: Pylance language server 2021.10.2 (pyright 1d97208c)
  • OS and version: Windows x64 NT 10.0.19041
  • VSCode: 1.61.2
  • Python extension (v2021.10.1365161279. old version: v2020.12.424452561)
  • Python version (& distribution if applicable, e.g. Anaconda): (Mini)Conda (4.8.3) with virtual environment and Python 3.8.6

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
Copy link
Member

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 microsoft/vscode-python#14781, which includes ways to add them back via your user settings or other extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants