You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extension version (available under the Extensions sidebar): 2020.11.2
OS and version: macOS Big Sur
Python version (& distribution if applicable, e.g. Anaconda): 3.8
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Value of the python.languageServer setting: pylance
Expected behaviour
If I type: import pandas as pd into VSCode and hit enter, I should see this line in the editor, plus a new line/carriage return.
Actual behaviour
I end up with import pandas as import pdb; pdb.set_trace() because of overzealous code completion. The engine ought to know that the as expression is setting up an alias and not attempt to drop in a completely unrelated snippet.
Steps to reproduce:
Open a blank Python file
Type import pandas as pd and hit the return key
The text was updated successfully, but these errors were encountered:
Environment data
python.languageServer
setting: pylanceExpected behaviour
If I type:
import pandas as pd
into VSCode and hit enter, I should see this line in the editor, plus a new line/carriage return.Actual behaviour
I end up with
import pandas as import pdb; pdb.set_trace()
because of overzealous code completion. The engine ought to know that theas
expression is setting up an alias and not attempt to drop in a completely unrelated snippet.Steps to reproduce:
import pandas as pd
and hit the return keyThe text was updated successfully, but these errors were encountered: