Monaco even more updates

This commit is contained in:
2022-01-12 20:46:53 +00:00
parent 12bf4e7dea
commit c3d132f427
4 changed files with 29 additions and 22 deletions

View File

@@ -554,12 +554,11 @@ export default {
await fetchReportData(vm);
//---------------
//setup the editor and models
//https://github.com/microsoft/monaco-editor/issues/2147
monaco.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
noSemanticValidation: false,
noSyntaxValidation: false,
noSuggestionDiagnostics: false,
diagnosticCodesToIgnore: [2393]
diagnosticCodesToIgnore: [2393] //this hides a weird error about ayPrepareData being declared more than once which I think is more related to it being barebones in there
});
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({
target: monaco.languages.typescript.ScriptTarget.ES6,
@@ -578,7 +577,7 @@ export default {
"filename/facts.d.ts"
);
//Created editor models for each type of report element that can be edited
//Create editor models for each type of report element that can be edited
vm.editData.template.model = monaco.editor.createModel(
vm.obj.template,