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

[Inconsistent Behavior] Editor does not auto-suggest to add missing import #15470

Closed
nfx opened this issue Feb 21, 2021 · 4 comments
Closed

[Inconsistent Behavior] Editor does not auto-suggest to add missing import #15470

nfx opened this issue Feb 21, 2021 · 4 comments
Assignees
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@nfx
Copy link

nfx commented Feb 21, 2021

Issue Type: Bug

When i type requests.get('https://httpbin.org/headers'), i expect a red line and action-hint to suggest me importing requests module to top of the file. This is default behavior for VSCode for GoLang and Python extension for IntelliJ. It must be consistent across all VSCode extensions as a product-wide feature.

Extension version: 2021.2.582707922
VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:45:54.515Z)
OS version: Darwin x64 19.6.0

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30256636
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt600cf:30251589

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Feb 21, 2021
@karthiknadig
Copy link
Member

@nfx Which language server are you using?

@karthiknadig karthiknadig self-assigned this Feb 22, 2021
@karthiknadig karthiknadig added info-needed Issue requires more information from poster triage bug Issue identified by VS Code Team member as probable bug labels Feb 22, 2021
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Feb 22, 2021
@karthiknadig karthiknadig added the area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. label Feb 22, 2021
@nfx
Copy link
Author

nfx commented Feb 24, 2021

@karrtikr in this case - Python. I’m switching between Scala, Python and GoLang few times a day. Some things just have to be written in a respective language.

For GoLang I only use VSCode, because it’s the only usable free option out there, but for Python development experience on IntelliJ CE is by far more convenient than with VScode. At least now :)

I’m used to “smart hints” like “introduce a variable/method/class” and I’d really like to see them in VSCode :)

@karthiknadig
Copy link
Member

@nfx Can you check what you have for the python.languageServer setting? This so I can move this bug to the appropriate repo.

@karthiknadig
Copy link
Member

karthiknadig commented Apr 6, 2021

Filed pappasam/jedi-language-server#126 on JediLS and pylance supports auto imports. Please switch to pylance if you need this feature.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants