Update ACE Editor to version 1.2.0
Previously, we were at an ACE editor published between 1.1.8 and 1.1.9. This caused multiple issues and was especially a problem for the upcoming pair programming feature. Further, updating ace is a long-time priority, see https://github.com/openHPI/codeocean/issues/250. Now, we are not yet updating to the latest version, but rather to the next minor version. This already contains breaking changes, and we are currently interested to keep the number of changes as low as possible. Further updating ACE might be still a future task. The new ACE version 1.2.0 is taken from this tag: https://github.com/ajaxorg/ace-builds/releases/tag/v1.2.0. We are using the src build (not minified, not in the noconflict version), since the same was used before as well. Further, we need to change our migration for storing editor events. Since the table is not yet used (in production), we also update the enum.
This commit is contained in:
100
vendor/assets/javascripts/ace/snippets/tcl.js
vendored
Executable file → Normal file
100
vendor/assets/javascripts/ace/snippets/tcl.js
vendored
Executable file → Normal file
@ -1 +1,99 @@
|
||||
define("ace/snippets/tcl",["require","exports","module"],function(e,t,n){"use strict";t.snippetText="# #!/usr/bin/env tclsh\nsnippet #!\n #!/usr/bin/env tclsh\n \n# Process\nsnippet pro\n proc ${1:function_name} {${2:args}} {\n ${3:#body ...}\n }\n#xif\nsnippet xif\n ${1:expr}? ${2:true} : ${3:false}\n# Conditional\nsnippet if\n if {${1}} {\n ${2:# body...}\n }\n# Conditional if..else\nsnippet ife\n if {${1}} {\n ${2:# body...}\n } else {\n ${3:# else...}\n }\n# Conditional if..elsif..else\nsnippet ifee\n if {${1}} {\n ${2:# body...}\n } elseif {${3}} {\n ${4:# elsif...}\n } else {\n ${5:# else...}\n }\n# If catch then\nsnippet ifc\n if { [catch {${1:#do something...}} ${2:err}] } {\n ${3:# handle failure...}\n }\n# Catch\nsnippet catch\n catch {${1}} ${2:err} ${3:options}\n# While Loop\nsnippet wh\n while {${1}} {\n ${2:# body...}\n }\n# For Loop\nsnippet for\n for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {\n ${4:# body...}\n }\n# Foreach Loop\nsnippet fore\n foreach ${1:x} {${2:#list}} {\n ${3:# body...}\n }\n# after ms script...\nsnippet af\n after ${1:ms} ${2:#do something}\n# after cancel id\nsnippet afc\n after cancel ${1:id or script}\n# after idle\nsnippet afi\n after idle ${1:script}\n# after info id\nsnippet afin\n after info ${1:id}\n# Expr\nsnippet exp\n expr {${1:#expression here}}\n# Switch\nsnippet sw\n switch ${1:var} {\n ${3:pattern 1} {\n ${4:#do something}\n }\n default {\n ${2:#do something}\n }\n }\n# Case\nsnippet ca\n ${1:pattern} {\n ${2:#do something}\n }${3}\n# Namespace eval\nsnippet ns\n namespace eval ${1:path} {${2:#script...}}\n# Namespace current\nsnippet nsc\n namespace current\n",t.scope="tcl"})
|
||||
define("ace/snippets/tcl",["require","exports","module"], function(require, exports, module) {
|
||||
"use strict";
|
||||
|
||||
exports.snippetText = "# #!/usr/bin/env tclsh\n\
|
||||
snippet #!\n\
|
||||
#!/usr/bin/env tclsh\n\
|
||||
\n\
|
||||
# Process\n\
|
||||
snippet pro\n\
|
||||
proc ${1:function_name} {${2:args}} {\n\
|
||||
${3:#body ...}\n\
|
||||
}\n\
|
||||
#xif\n\
|
||||
snippet xif\n\
|
||||
${1:expr}? ${2:true} : ${3:false}\n\
|
||||
# Conditional\n\
|
||||
snippet if\n\
|
||||
if {${1}} {\n\
|
||||
${2:# body...}\n\
|
||||
}\n\
|
||||
# Conditional if..else\n\
|
||||
snippet ife\n\
|
||||
if {${1}} {\n\
|
||||
${2:# body...}\n\
|
||||
} else {\n\
|
||||
${3:# else...}\n\
|
||||
}\n\
|
||||
# Conditional if..elsif..else\n\
|
||||
snippet ifee\n\
|
||||
if {${1}} {\n\
|
||||
${2:# body...}\n\
|
||||
} elseif {${3}} {\n\
|
||||
${4:# elsif...}\n\
|
||||
} else {\n\
|
||||
${5:# else...}\n\
|
||||
}\n\
|
||||
# If catch then\n\
|
||||
snippet ifc\n\
|
||||
if { [catch {${1:#do something...}} ${2:err}] } {\n\
|
||||
${3:# handle failure...}\n\
|
||||
}\n\
|
||||
# Catch\n\
|
||||
snippet catch\n\
|
||||
catch {${1}} ${2:err} ${3:options}\n\
|
||||
# While Loop\n\
|
||||
snippet wh\n\
|
||||
while {${1}} {\n\
|
||||
${2:# body...}\n\
|
||||
}\n\
|
||||
# For Loop\n\
|
||||
snippet for\n\
|
||||
for {set ${2:var} 0} {$$2 < ${1:count}} {${3:incr} $2} {\n\
|
||||
${4:# body...}\n\
|
||||
}\n\
|
||||
# Foreach Loop\n\
|
||||
snippet fore\n\
|
||||
foreach ${1:x} {${2:#list}} {\n\
|
||||
${3:# body...}\n\
|
||||
}\n\
|
||||
# after ms script...\n\
|
||||
snippet af\n\
|
||||
after ${1:ms} ${2:#do something}\n\
|
||||
# after cancel id\n\
|
||||
snippet afc\n\
|
||||
after cancel ${1:id or script}\n\
|
||||
# after idle\n\
|
||||
snippet afi\n\
|
||||
after idle ${1:script}\n\
|
||||
# after info id\n\
|
||||
snippet afin\n\
|
||||
after info ${1:id}\n\
|
||||
# Expr\n\
|
||||
snippet exp\n\
|
||||
expr {${1:#expression here}}\n\
|
||||
# Switch\n\
|
||||
snippet sw\n\
|
||||
switch ${1:var} {\n\
|
||||
${3:pattern 1} {\n\
|
||||
${4:#do something}\n\
|
||||
}\n\
|
||||
default {\n\
|
||||
${2:#do something}\n\
|
||||
}\n\
|
||||
}\n\
|
||||
# Case\n\
|
||||
snippet ca\n\
|
||||
${1:pattern} {\n\
|
||||
${2:#do something}\n\
|
||||
}${3}\n\
|
||||
# Namespace eval\n\
|
||||
snippet ns\n\
|
||||
namespace eval ${1:path} {${2:#script...}}\n\
|
||||
# Namespace current\n\
|
||||
snippet nsc\n\
|
||||
namespace current\n\
|
||||
";
|
||||
exports.scope = "tcl";
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user