mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 22:54:28 -05:00
Add a "fix message" to every autofix-able check (#1489)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user