Skip to content

Commit 3c1c45b

Browse files
committed
chore: add problem icon to problems quick view
1 parent 622292e commit 3c1c45b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/language/CodeInspection.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,8 @@ define(function (require, exports, module) {
543543
const fixID = `${mark.metadata}`;
544544
if(documentFixes.get(fixID)){
545545
$problemView = $(`<div>
546-
<button class="btn btn-mini primary fix-problem-btn" style="margin-right: 5px;">Fix</button>
546+
<i class="${_getIconClassForType(mark.type, mark.isFixable)}" style="margin-right: 3px;"></i>
547+
<button class="btn btn-mini fix-problem-btn" style="margin-right: 5px;">Fix</button>
547548
<a style="cursor:pointer;">${mark.message}</a>
548549
<br/>
549550
</div>`);
@@ -554,6 +555,7 @@ define(function (require, exports, module) {
554555
$hoverMessage.append($problemView);
555556
} else {
556557
$problemView = $(`<div>
558+
<i class="${_getIconClassForType(mark.type, mark.isFixable)}" style="margin-right: 5px;"></i>
557559
<a style="cursor: pointer">${mark.message}</a>
558560
<br/></div>`);
559561
$hoverMessage.append($problemView);
@@ -639,6 +641,7 @@ define(function (require, exports, module) {
639641
const fixID = _registerNewFix(editor, error.fix, resultProvider.provider.name, maxOffset);
640642
if(fixID) {
641643
markOptions.metadata = fixID;
644+
markOptions.isFixable = true;
642645
error.fix.id = fixID;
643646
fixable = true;
644647
}

0 commit comments

Comments
 (0)