浏览代码

HUE-8758 [editor] Use is_sql check in simple ace editor to determine if syntax checking is active

Johan Ahlen 5 年之前
父节点
当前提交
bcdd410468
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/core/src/desktop/js/ko/components/simpleAceEditor/ko.simpleAceEditor.js

+ 1 - 1
desktop/core/src/desktop/js/ko/components/simpleAceEditor/ko.simpleAceEditor.js

@@ -154,7 +154,7 @@ class SimpleAceEditor {
         inFocus: ko.observable()
         inFocus: ko.observable()
       };
       };
 
 
-      if (connector.dialect === 'hive' || connector.dialect === 'impala') {
+      if (connector.is_sql) {
         sqlWorkerHandler.registerWorkers();
         sqlWorkerHandler.registerWorkers();
         const aceLocationHandler = new AceLocationHandler({
         const aceLocationHandler = new AceLocationHandler({
           editor: editor,
           editor: editor,