Skip to content

Commit

Permalink
Use theme color for decorations
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyTy committed May 21, 2024
1 parent 586f718 commit d5f0b8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extension/hexa-linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,11 @@ class HexaLinter {
diagnostic.source = 'hexa'
info.diagnostics.push(diagnostic)

// TODO option to disable this
const line = parsed.line
const position = new Position(line, 1024)
info.decorations.push({
renderOptions: { after: { contentText: msg.details, color: '#BB0000' } },
renderOptions: { after: { contentText: msg.details, color: 'var(--vscode-list-errorForeground)' } },
range: new Range(position, position)
})
}
Expand Down

0 comments on commit d5f0b8a

Please sign in to comment.