Merge pull request #176309 from microsoft/aamunger/scrollErrors

make error outputs scrollable with output scroll setting
This commit is contained in:
Aaron Munger 2023-03-06 14:53:17 -08:00 committed by GitHub
commit a2eda2261a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,7 @@ function renderError(
stack.style.margin = '8px 0';
const element = document.createElement('span');
insertOutput(outputInfo.id, [err.stack ?? ''], ctx.settings.lineLimit, false, element, true);
insertOutput(outputInfo.id, [err.stack ?? ''], ctx.settings.lineLimit, ctx.settings.outputScrolling, element, true);
stack.appendChild(element);
container.appendChild(stack);
} else {