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
The problem here is that when we create the source code action, the kind is always set to source.{fixAll | organizeImports}. Since the client is expected a code action of kind source.{fixAll | organizeImports}.ruff, the code action we return will not get resolved.
The text was updated successfully, but these errors were encountered:
## Summary
Fixes#10780.
The server now send code actions to the client with a Ruff-specific
kind, `source.*.ruff`. The kind filtering logic has also been reworked
to support this.
## Test Plan
Add this to your `settings.json` in VS Code:
```json
{
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports.ruff": "explicit",
},
}
}
```
Imports should be automatically organized when you manually save with
`Ctrl/Cmd+S`.
VS Code configuration like the following will work as expected:
but this configuration:
does not work.
The problem here is that when we create the source code action, the kind is always set to
source.{fixAll | organizeImports}
. Since the client is expected a code action of kindsource.{fixAll | organizeImports}.ruff
, the code action we return will not get resolved.The text was updated successfully, but these errors were encountered: