Add code kind to Quick Fix action

This commit is contained in:
Charlie Marsh 2022-12-31 10:26:47 -05:00
parent 0c215365ae
commit bfdf972a5d

View file

@ -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",