Skip to content

Commit 2f6ddb6

Browse files
author
Noam Kfir
committed
Only show module physical path without "in" when the function name is empty when rendering an error frame
1 parent 289450e commit 2f6ddb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/codeAnalytics/errorFlowStackRenderer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ export class ErrorFlowStackRenderer {
265265

266266
private static getFrameItemHtml(frame: FrameViewModel)
267267
{
268-
const path = `${frame.modulePhysicalPath} in ${frame.functionName}`;
268+
const functionName = frame.functionName?.trim().length > 0 ? ` in ${frame.functionName}` : '';
269+
const path = frame.modulePhysicalPath + functionName;
269270
const selectedClass = frame.selected ? "selected" : "";
270271
const disabledClass = frame.workspaceUri ? "" : "disabled";
271272
const hidden = Settings.hideFramesOutsideWorkspace.value && !frame.workspaceUri ? "hidden" : "";

0 commit comments

Comments
 (0)