Merge pull request #3153 from node-red/update-monaco

Update monaco to 0.28.1
This commit is contained in:
Nick O'Leary
2021-10-01 15:59:16 +01:00
committed by GitHub
65 changed files with 16036 additions and 391 deletions

View File

@@ -653,6 +653,8 @@ RED.editor.codeEditor.monaco = (function() {
noSyntaxValidation: false,
diagnosticCodesToIgnore: [
1108, //return not inside function
1375, //'await' expressions are only allowed at the top level of a file when that file is a module
1378, //Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher
//2304, //Cannot find name - this one is heavy handed and prevents user seeing stupid errors. Would provide better ACE feature parity (i.e. no need for declaration of vars) but misses lots of errors. Lets be bold & leave it out!
2307, //Cannot find module 'xxx' or its corresponding type declarations
2322, //Type 'unknown' is not assignable to type 'string'