-
Notifications
You must be signed in to change notification settings - Fork 29k
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
Add option to set organizeImports provider #90221
Comments
Extensions can already provide for more scoped code actions kinds, such as We could consider allowing |
Sounds good. That would do the job. |
@mjbvz "editor.codeActionsOnSave": [
"source.organizeImports",
"source.fixAll"
] I gave the initial import order like: import sys
import os after save, vscode changed it to (it deleted import): import os
import os |
@copdips My example was theoretical, I'm not sure it has been implemented by python |
@mjbvz your example |
Hi, this topic is quite old. I've got the same problem with imports like
with the configuration
When I save it, the import list get into line format, then comes back to column. I tried to use the Help! |
Closing due to lack of additional feedback since it was opened. Adding additional scopes to code actions can help unblock the users who running into this in advanced cases |
Currently
source.organizeImports
activates all extensions that provide this functionality.This leads to problems like this: #90220
I wish that similar to
python.formatting.provider
we could also set apython.organizeImports.provider
.This would control which extension is supposed to run the organizeImports action (and which one not).
The text was updated successfully, but these errors were encountered: