-
For the past month or so, there has been a significant decrease in the usefulness of tools available. 1. Find references 2. Rename 3. Import suggestions 4. Autocomplete 5. New Files 6. Change File Names I have the I'm running on a "python.languageServer": "Pylance",
"python.formatting.provider": "black",
"python.formatting.blackArgs": ["--line-length=100"],
"python.linting.lintOnSave": true,
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.pylintEnabled": false,
"python.linting.ignorePatterns": [".venv/**", "migrations/**", "notebooks/**"],
"python.diagnostics.sourceMapsEnabled": true,
"python.analysis.typeCheckingMode": "off"
"python.analysis.indexing": true,
"python.pylanceLspNotebooksEnabled": false,
"mypy.runUsingActiveInterpreter": true, I have tried running a few keys on/off from the settings.json, but things doesn't seem to workout correcly.. Ideas on what settings I might need to tweak to further debug this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Test 1
# schemas.py
from dataclasses import dataclass
@dataclass
class MySchema:
name: str
age: int # services.py
# Manually add the import (after trying the autocomplete / quickactions didn't work)
from .schemas import MySchema
## When writing this function no autocomplete suggestion to import MySchema from schemas.py
## After writing no quick actions suggestion to import MySchema
def func(param: MySchema):
pass
3/4. Import Suggestions & Autocomplete (:white_check_mark: replicated)
I wonder if any of these are by design, or if there's some sort of problem with my setup, or maybe Pylance is not able to work on any of these cases and it was all Copilot responsability (I was using it on the preview, and stopped using when the billing started), or if it's a bug. |
Beta Was this translation helpful? Give feedback.
-
@lowercase00, I converted this into an issue -- #3363 Unfortunately, I'm unable to reproduce any of these issues, so we'll probably have some followup questions for you. |
Beta Was this translation helpful? Give feedback.
@lowercase00, I converted this into an issue -- #3363
Unfortunately, I'm unable to reproduce any of these issues, so we'll probably have some followup questions for you.