Skip to content

Commit

Permalink
add icon for MarkerSeverity.Hint and Info
Browse files Browse the repository at this point in the history
  • Loading branch information
nag5000 committed Dec 27, 2024
1 parent 05acf64 commit 15558e5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useMemo, useState } from 'react'
import type { Message } from 'esbuild-wasm'
import { LucideCheckCircle2, LucideCircleX, LucideTriangleAlert } from 'lucide-react'
import { LucideCheckCircle2, LucideCircleX, LucideInfo, LucideTriangleAlert } from 'lucide-react'
import * as monaco from 'monaco-editor'
import {
DropdownMenu,
Expand Down Expand Up @@ -154,6 +154,10 @@ function Marker({ marker }: { marker: monaco.editor.IMarker }) {
{marker.severity === monaco.MarkerSeverity.Warning && (
<LucideTriangleAlert className="shrink-0 translate-y-px text-yellow-500" size={16} />
)}
{(marker.severity === monaco.MarkerSeverity.Hint ||
marker.severity === monaco.MarkerSeverity.Info) && (
<LucideInfo className="shrink-0 translate-y-px text-blue-500" size={16} />
)}
<span className="text-muted-foreground">
{marker.resource.path.replace(/^\//, '')}:{marker.startLineNumber}:{marker.startColumn}
</span>
Expand Down

0 comments on commit 15558e5

Please sign in to comment.