Skip to content

Commit 3114bd3

Browse files
author
Noam Kfir
committed
Try to show absolute path in tooltip for stack frame
1 parent fbe0e02 commit 3114bd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/codeAnalytics/errorFlowStackRenderer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ export class ErrorFlowStackRenderer {
275275
pathParts.push(functionName);
276276
}
277277
const path = pathParts.join(' in ');
278+
const pathTooltip = frame.workspaceUri?.fsPath ?? modulePath;
279+
278280
const selectedClass = frame.selected ? "selected" : "";
279281
const disabledClass = frame.workspaceUri ? "" : "disabled";
280282
const hidden = Settings.hideFramesOutsideWorkspace.value && !frame.workspaceUri ? "hidden" : "";
@@ -292,7 +294,7 @@ export class ErrorFlowStackRenderer {
292294
let pathHtml = `<div class="left-ellipsis" title="${path}">${path}</div>`;
293295
if(executedCodeHtml === ''){
294296
if(frame.workspaceUri){
295-
pathHtml = /*html*/`<vscode-link class="link-cell" data-frame-id="${frame.id}" title="${path}">${path}</vscode-link>`;
297+
pathHtml = /*html*/`<vscode-link class="link-cell" data-frame-id="${frame.id}" title="${pathTooltip}">${path}</vscode-link>`;
296298
}
297299
if (showExceptionIcon){
298300
pathHtml = `<div class="frame-code-path">${exceptionHtml}${pathHtml}</div>`;

0 commit comments

Comments
 (0)