Commit 44219f29 authored by Jérome Perrin's avatar Jérome Perrin

monaco_editor: configure typescript for Latest target

This affects the diagnostics and completions when editing javascript
code in the editor.
parent 3543f16f
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
}); });
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({ monaco.languages.typescript.javascriptDefaults.setCompilerOptions({
target: monaco.languages.typescript.ScriptTarget.ES6, target: monaco.languages.typescript.ScriptTarget.Latest,
allowNonTsExtensions: true, allowNonTsExtensions: true,
checkJs: true, checkJs: true,
allowJs: true, allowJs: true,
......
...@@ -194,7 +194,7 @@ $script.onload = function() { ...@@ -194,7 +194,7 @@ $script.onload = function() {
noSyntaxValidation: false noSyntaxValidation: false
}); });
monaco.languages.typescript.javascriptDefaults.setCompilerOptions({ monaco.languages.typescript.javascriptDefaults.setCompilerOptions({
target: monaco.languages.typescript.ScriptTarget.ES6, target: monaco.languages.typescript.ScriptTarget.Latest,
allowNonTsExtensions: true, allowNonTsExtensions: true,
checkJs: true, checkJs: true,
allowJs: true, allowJs: true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment