mirror of https://github.com/astral-sh/ruff
## Summary Fixes #10589. Code that violates `F401` or `F841` (in other words, unused variables or imports) should now appear greyed out or 'unused' in an editor. ## Test Plan Put the following test code in a new file within the extension development host window: ```python import math def func(): if False: unused = "<- this should be greyed out" ``` The following test code should have greyed out/unused import and variable names, like so: <img width="294" alt="Screenshot 2024-03-28 at 4 23 18 AM" src="https://github.com/astral-sh/ruff/assets/19577865/e84a6e7a-49e2-4fed-9624-f8f9559e0837"> |
||
|---|---|---|
| .. | ||
| edit | ||
| server | ||
| session | ||
| edit.rs | ||
| format.rs | ||
| lib.rs | ||
| lint.rs | ||
| server.rs | ||
| session.rs | ||