mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 23:25:14 +00:00
Add a "fix message" to every autofix-able check (#1489)
This commit is contained in:
parent
1e3cf87f67
commit
01c74e0629
25 changed files with 594 additions and 166 deletions
|
@ -56,7 +56,9 @@ export default function SourceEditor({
|
|||
.filter((check) => position.startLineNumber === check.location.row)
|
||||
.filter((check) => check.fix)
|
||||
.map((check) => ({
|
||||
title: `Fix ${check.code}`,
|
||||
title: check.fix
|
||||
? check.fix.message ?? `Fix ${check.code}`
|
||||
: "Autofix",
|
||||
id: `fix-${check.code}`,
|
||||
kind: "quickfix",
|
||||
edit: check.fix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue