mirror of https://github.com/astral-sh/ruff
Add code kind to Quick Fix action
This commit is contained in:
parent
0c215365ae
commit
bfdf972a5d
|
|
@ -57,7 +57,7 @@ export default function SourceEditor({
|
||||||
.filter((check) => check.fix)
|
.filter((check) => check.fix)
|
||||||
.map((check) => ({
|
.map((check) => ({
|
||||||
title: check.fix
|
title: check.fix
|
||||||
? check.fix.message ?? `Fix ${check.code}`
|
? `${check.code}: ${check.fix.message}` ?? `Fix ${check.code}`
|
||||||
: "Autofix",
|
: "Autofix",
|
||||||
id: `fix-${check.code}`,
|
id: `fix-${check.code}`,
|
||||||
kind: "quickfix",
|
kind: "quickfix",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue