Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
padding: 0.25rem;
}

.CallSite, .IgnoredCallSite {
.CallSite {
display: block;
padding-left: 1rem;
}

.IgnoredCallSite {
opacity: 0.5;
.IgnoredCallSite, .BuiltInCallSite {
display: none;
}

.CallSite + .BuiltInCallSite {
display: block;
}

.Link {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,22 @@ export function CallSiteView({
symbolicatedCallSite !== null ? symbolicatedCallSite.location : callSite;
const ignored =
symbolicatedCallSite !== null ? symbolicatedCallSite.ignored : false;
if (ignored) {
// TODO: Make an option to be able to toggle the display of ignore listed rows.
// Ideally this UI should be higher than a single Stack Trace so that there's not
// multiple buttons in a single inspection taking up space.
return null;
}
// TODO: Make an option to be able to toggle the display of ignore listed rows.
// Ideally this UI should be higher than a single Stack Trace so that there's not
// multiple buttons in a single inspection taking up space.

const isBuiltIn = url === '' || url.startsWith('<anonymous>'); // This looks like a fake anonymous through eval.
return (
<div className={ignored ? styles.IgnoredCallSite : styles.CallSite}>
<div
className={
ignored
? styles.IgnoredCallSite
: isBuiltIn
? styles.BuiltInCallSite
: styles.CallSite
}>
{functionName || virtualFunctionName}
{url !== '' && (
{!isBuiltIn && (
<>
{' @ '}
<span
Expand Down
Loading