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
7 changes: 6 additions & 1 deletion src/analyticsProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ export enum Impact
LOW = "Low",
}

export interface IErrorFlowStack{
exceptionType: string;
frames: IErrorFlowFrame[];
}

export interface IErrorFlowFrame{
moduleName: string;
functionName: string;
Expand All @@ -24,7 +29,7 @@ export interface IErrorFlowResponse
stackTrace: string;
exceptionMessage: string;
exceptionType: string;
frames: IErrorFlowFrame[];
frameStacks: IErrorFlowStack[];
}

export interface IErrorFlowSummary
Expand Down
6 changes: 5 additions & 1 deletion src/views/errorFlowStackView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,13 @@ class ErrorFlowDetailsViewProvider implements vscode.WebviewViewProvider, vscode

private getHtml(errorFlow: IErrorFlowResponse | undefined, originCodeObjectId: string | undefined) : string
{
const framesHtml = errorFlow?.frames.reverse()

const framesHtml = errorFlow?.frameStacks.flatMap(f=> f.frames).reverse()
.map(f => this.getFrameItemHtml(f, originCodeObjectId!))
.join('') ?? '';
// const framesHtml = errorFlow?.frameStacks[0].frames.reverse()
// .map(f => this.getFrameItemHtml(f, originCodeObjectId!))
// .join('') ?? '';
const checked = Settings.hideFramesOutsideWorkspace ? "checked" : "";

return /*html*/ `
Expand Down