Эх сурвалжийг харах

[notebook] Trigger autocomplete after '/'

Johan Ahlen 10 жил өмнө
parent
commit
22296be

+ 2 - 2
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -1971,11 +1971,11 @@
           if (triggerAutocomplete) {
             window.setTimeout(function () {
               editor.execCommand("startAutocomplete");
-            }, 100);
+            }, 1);
           }
         }
         editor.session.getMode().$id = snippet.getAceMode(); // forces the id again because of Ace command internals
-        if ((editor.session.getMode().$id == "ace/mode/hive" || editor.session.getMode().$id == "ace/mode/impala") && e.args == ".") {
+        if (e.args === '/' || ((editor.session.getMode().$id == "ace/mode/hive" || editor.session.getMode().$id == "ace/mode/impala") && e.args == ".")) {
           editor.execCommand("startAutocomplete");
         }
         // if it's pig and before it's LOAD ' we disable the autocomplete and show a filechooser btn