-
Notifications
You must be signed in to change notification settings - Fork 767
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
Quick fix "Add import" not working when file or path (directory) is excluded in pyrightconfig.json #6535
Comments
@bschnurr Nope I haven't Not in |
can you check the "python language server" logs. see https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue |
@bschnurr There you go
|
thanks. i was hoping to see some kind of error related to "apply_edit" |
" code quick fix action is not working", you mean the code action is not appearing? or fails to edit the code? |
The quick fix |
@bschnurr Any way I could force that in some way? i.e. any sequence of clicks, commands etc. that I could perform that might help here, so that some more log messages are printed. |
Type: Bug
Behaviour
At least the "Add Import" code quick fix action is not working if the current file is loacted in a directory excluded in the Pyright pyrightconfig.json configuration file of the current project. I suspect that NONE of the Intellisense functions are working with files excluded using pyrightconfig.json.
Steps to reproduce:
CTRL+.
to show the Quick fix dialog. There will be no "Add 'import os'"CTRL+.
(sometimesCTRL+.
must be pressed multiple times) at the red squiggle and select "Add 'import os'"Extension version: 2024.16.0
VS Code version: Code 1.94.0 (d78a74bcdfad14d5d3b1b782f87255d802b57511, 2024-10-02T13:08:12.626Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.0-122-generic
python.languageServer
setting: DefaultUser Settings
Installed Extensions
The text was updated successfully, but these errors were encountered: