-
Hi, I've used Darker disguised as Black in VS Code for a while but am running into some issues adapting to the changes mentioned in #516. I have the Python and Black Formatting extensions installed in VS Code as well as the following user settings .JSON:
The first time I press save, the changes by Darker are written to disk but do not show up in the IDE. The second time I press save, I get a conflict in which I can only choose to overwrite with the IDE version. Unfortunately this makes Darker unusable inside VS Code. Any idea how I can fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@kedhammar It might be worth making this an issue, so that there is a proper fix from darker. Also, pasting my workaround from the other discussion post. As a workaround, it is possible to use "Run on Save" or "emeraldwalk" extension from the VSCode Marketplace to automatically trigger darker. Steps:
|
Beta Was this translation helpful? Give feedback.
-
I'm collecting VSCode related issues in #527. |
Beta Was this translation helpful? Give feedback.
@kedhammar It might be worth making this an issue, so that there is a proper fix from darker. Also, pasting my workaround from the other discussion post.
As a workaround, it is possible to use "Run on Save" or "emeraldwalk" extension from the VSCode Marketplace to automatically trigger darker.
Steps: