ruff icon indicating copy to clipboard operation
ruff copied to clipboard

Workspace edits from `ruff server` commands occasionally fail in VS Code when operating on an yet-to-be-created file

Open snowsignal opened this issue 9 months ago • 0 comments

Steps to reproduce:

  1. Disable VS Code auto-save.
  2. Add ALL to the select setting in the extension
  3. Create a new .py file, but don't save it yet.
  4. Add this code to the file:
import foo

def bar():
    unused = 4

  1. Using the command palette (Ctrl/Cmd+Shift+P), repeatedly run ruff.applyAutofix.
  2. The second time you run applyAutofix, you should see an error about a workspace edit that couldn't be applied.

snowsignal avatar May 02 '24 17:05 snowsignal