ruff icon indicating copy to clipboard operation
ruff copied to clipboard

Ruff-specific source actions are not working with `ruff server`

Open snowsignal opened this issue 10 months ago • 0 comments

VS Code configuration like the following will work as expected:

{
    "[python]": {
      "editor.codeActionsOnSave": {
        "source.organizeImports": "explicit",
      },
    }
}

but this configuration:

{
    "[python]": {
      "editor.codeActionsOnSave": {
        "source.organizeImports.ruff": "explicit",
      },
    }
}

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 kind source.{fixAll | organizeImports}.ruff, the code action we return will not get resolved.

snowsignal avatar Apr 04 '24 22:04 snowsignal