Skip to content

Commit

Permalink
show the number of hidden frames (Show N more frames)
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Oct 25, 2018
1 parent 1e9717a commit a3e49ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,8 @@ class CallStackRenderer implements IRenderer {
}

private renderShowMore(data: ILabelTemplateData, element: IStackFrame[]): void {
data.label.textContent = nls.localize('showMoreStackFrames', "Show More Stack Frames");
if (element && element.length && element.every(sf => sf.source && sf.source.origin === element[0].source.origin)) {
data.label.textContent = nls.localize('showMoreStackFrames', "Show {0} More Stack Frames", element.length);
if (element.every(sf => sf.source && sf.source.origin === element[0].source.origin)) {
data.label.textContent += ` ${element[0].source.origin}`;
}
}
Expand Down

0 comments on commit a3e49ca

Please sign in to comment.