koxudaxi / ruff-pycharm-plugin

PyCharm plugin for ruff. This plugin provides reformat code using ruff.
MIT License
196 stars 9 forks source link

Live config reload #296

Closed gurland closed 8 months ago

gurland commented 10 months ago

Is your feature request related to a problem? Please describe. I think the live update of the configurations on change would simplify overall configuration of ruff.

Describe the solution you'd like I want the plugin to be able to track changes to a .ruff.toml file (or any other supported file) and restart ruff-lsp.

Describe alternatives you've considered Currently I just restart PyCharm to update any changes.

Additional context I use Pycharm 2023.2

koxudaxi commented 10 months ago

Thank you for requesting the feature. We can watch the changes in specific files. But, I don't know if we can restart lsp server without restarting PyCharm. I will take time to investigate.

skewty commented 9 months ago

Please also ensure pyproject.toml is watched as that is where many (most?) projects stick their ruff config.

koxudaxi commented 9 months ago

I have created the issue for the feature request. I can't find the feature in the PyCharm. https://youtrack.jetbrains.com/issue/IDEA-339730/Request-the-addition-of-LSP-server-restart-functionality

koxudaxi commented 9 months ago

@gurland @skewty I have published version v0.0.27. The version will restart lsp server with the new config automatically f you do the below action.

koxudaxi commented 9 months ago

@gurland I found a mistake that I didn't think about .ruff.toml :sweat: I will fix the next release.

koxudaxi commented 8 months ago

@gurland I released the fixed version as v0.0.28

gurland commented 8 months ago

@koxudaxi thank you for the dedication!