👋 I'm trying to add a source.organizeImports.ruff action to the Ruff extension. The goal is to enable users who have the isort extension installed to opt-in to sorting imports with Ruff instead, like this:
{
"[python]": {
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.organizeImports.ruff": true
}
}
}
However, when the isort extension is installed, this configuration causes the isort extension to crash repeatedly, and impedes the Ruff extension's import sorting somehow. (If I uninstall the isort extension, the Ruff extension works as expected.)
(This started with an issue in the Ruff extension repo: astral-sh/ruff-vscode#76. The use of provider-scoped source.organizeImports was inspired by what I've seen with the ESLint extension, and in this issue: microsoft/vscode#90221.)
👋 I'm trying to add a
source.organizeImports.ruffaction to the Ruff extension. The goal is to enable users who have theisortextension installed to opt-in to sorting imports with Ruff instead, like this:{ "[python]": { "editor.formatOnSave": false, "editor.codeActionsOnSave": { "source.organizeImports.ruff": true } } }However, when the
isortextension is installed, this configuration causes theisortextension to crash repeatedly, and impedes the Ruff extension's import sorting somehow. (If I uninstall theisortextension, the Ruff extension works as expected.)(This started with an issue in the Ruff extension repo: astral-sh/ruff-vscode#76. The use of provider-scoped
source.organizeImportswas inspired by what I've seen with the ESLint extension, and in this issue: microsoft/vscode#90221.)