mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 22:02:55 +01:00
var -> let
This commit is contained in:
parent
c196027bdc
commit
e31737a45d
4 changed files with 31 additions and 30 deletions
|
|
@ -26,7 +26,7 @@
|
|||
<button id="getAST">Print AST to console</button>
|
||||
|
||||
<script>
|
||||
var paths = {
|
||||
const paths = {
|
||||
'vs/basic-languages': '../node_modules/monaco-languages/release/dev',
|
||||
'vs/language/typescript/fillers/monaco-editor-core':
|
||||
'../out/amd/fillers/monaco-editor-core-amd',
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
paths['vs/language/typescript'] = prefix + '/out/amd';
|
||||
}
|
||||
}
|
||||
var require = {
|
||||
self.require = {
|
||||
paths: paths
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
<button id="updateCompilerSettingsBtn">Update compiler settings</button>
|
||||
|
||||
<script>
|
||||
var paths = {
|
||||
const paths = {
|
||||
'vs/basic-languages': '../node_modules/monaco-languages/release/dev',
|
||||
'vs/language/typescript/fillers/monaco-editor-core':
|
||||
'../out/amd/fillers/monaco-editor-core-amd',
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
paths['vs/language/typescript'] = prefix + '/out/amd';
|
||||
}
|
||||
}
|
||||
var require = {
|
||||
self.require = {
|
||||
paths: paths
|
||||
};
|
||||
</script>
|
||||
|
|
@ -178,7 +178,7 @@
|
|||
'vs/basic-languages/monaco.contribution',
|
||||
'vs/language/typescript/monaco.contribution'
|
||||
], () => {
|
||||
var editor = monaco.editor.create(document.getElementById('container'), {
|
||||
const editor = monaco.editor.create(document.getElementById('container'), {
|
||||
value: localStorage.getItem('code') || getDefaultCode(),
|
||||
language: 'typescript',
|
||||
lightbulb: { enabled: true }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue