Skip to content

Commit eaf8d68

Browse files
Remove all usages of NonClickableLocation outside of Location
1 parent c4ebee8 commit eaf8d68

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

extensions/ql-vscode/src/view/results/locations/SarifLocation.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { isLineColumnLoc, isWholeFileLoc } from "../../../common/bqrs-utils";
44
import { parseSarifLocation } from "../../../common/sarif-utils";
55
import { basename } from "path";
66
import { useMemo } from "react";
7-
import { NonClickableLocation } from "./NonClickableLocation";
87
import { Location } from "./Location";
98

109
/**
@@ -31,12 +30,7 @@ export function SarifLocation({
3130
[loc, sourceLocationPrefix],
3231
);
3332
if (parsedLoc === undefined || "hint" in parsedLoc) {
34-
return (
35-
<NonClickableLocation
36-
msg={text || "[no location]"}
37-
locationHint={parsedLoc?.hint}
38-
/>
39-
);
33+
return <Location label={text || "[no location]"} title={parsedLoc?.hint} />;
4034
} else if (isWholeFileLoc(parsedLoc)) {
4135
return (
4236
<Location

0 commit comments

Comments
 (0)