File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -265,8 +265,16 @@ export class ErrorFlowStackRenderer {
265265
266266 private static getFrameItemHtml ( frame : FrameViewModel )
267267 {
268- const functionName = frame . functionName ?. trim ( ) . length > 0 ? ` in ${ frame . functionName } ` : '' ;
269- const path = frame . modulePhysicalPath + functionName ;
268+ const pathParts = [ ] ;
269+ const modulePath = frame . modulePhysicalPath ;
270+ if ( modulePath ) {
271+ pathParts . push ( modulePath ) ;
272+ }
273+ const functionName = frame . functionName ?. trim ( ) ;
274+ if ( functionName . length > 0 ) {
275+ pathParts . push ( functionName ) ;
276+ }
277+ const path = pathParts . join ( ' in ' ) ;
270278 const selectedClass = frame . selected ? "selected" : "" ;
271279 const disabledClass = frame . workspaceUri ? "" : "disabled" ;
272280 const hidden = Settings . hideFramesOutsideWorkspace . value && ! frame . workspaceUri ? "hidden" : "" ;
You can’t perform that action at this time.
0 commit comments