Skip to content

Commit 633eec6

Browse files
authored
Handle string.replace with variable case (microsoft#167480)
Handle string.replace case For microsoft#167239
1 parent afd71d8 commit 633eec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ async function webviewPreloads(ctx: PreloadContext) {
16411641

16421642
const error = document.createElement('div');
16431643
error.className = 'no-renderer-error';
1644-
const errorText = (document.documentElement.style.getPropertyValue('--notebook-cell-renderer-not-found-error') || '').replace('$0', info.mime);
1644+
const errorText = (document.documentElement.style.getPropertyValue('--notebook-cell-renderer-not-found-error') || '').replace('$0', () => info.mime);
16451645
error.innerText = errorText;
16461646

16471647
const cellText = document.createElement('div');

0 commit comments

Comments
 (0)