Scaffold: Don't warn about \u2028/\u2029 in tests

This commit is contained in:
Abe Jellinek 2025-04-22 15:06:29 -04:00
parent e80615eab8
commit 56b4c15de9

View file

@ -136,7 +136,11 @@ var Scaffold = new function () {
_editors.codeGlobal = monaco;
_editors.code = editor;
}),
testsWin.loadMonaco({ language: 'json' }).then(({ monaco, editor }) => {
testsWin.loadMonaco({
language: 'json',
// Tests might contain \u2028/\u2029 - don't pop up a warning
unusualLineTerminators: 'off',
}).then(({ monaco, editor }) => {
_editors.testsGlobal = monaco;
_editors.tests = editor;
}),