Fixing plugin install system and handle Prettier

This commit is contained in:
mattpass
2020-06-26 18:24:56 +01:00
parent 2a008d16d4
commit cba6d02b3c
4 changed files with 57 additions and 16 deletions

View File

@@ -280,7 +280,8 @@ parent.ICEcoder.switchMode = function(mode) {
}
} else if (cM && fileName) {
<?php include(dirname(__FILE__) . "/assets/js/language-modes-partial.js");?>
parent.ICEcoder.selectedTabFileExt = fileExt;
parent.ICEcoder.selectedTabLangMode = mode;
if (mode != cM.getOption("mode")) {
cM.setOption("mode", mode);
cM.setOption("lint", ("js" === fileExt || "json" === fileExt) && parent.ICEcoder.codeAssist ? true : false);