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

HUE-8666 [autocomplete] Fix timing issue with "... ? from table" completion

Johan Ahlen 7 жил өмнө
parent
commit
85ff344

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

@@ -5858,10 +5858,12 @@
             if (questionMarkMatch && $('.ace_autocomplete:visible').length === 0) {
               editor.moveCursorTo(editor.getCursorPosition().row, editor.getCursorPosition().column - (questionMarkMatch[1].length - 1));
               editor.removeTextBeforeCursor(1);
+              huePubSub.publish('editor.refresh.statement.locations', snippet);
               window.setTimeout(function () {
                 editor.execCommand("startAutocomplete");
               }, 1);
             } else if (/\.$/.test(textBeforeCursor)) {
+              huePubSub.publish('editor.refresh.statement.locations', snippet);
               window.setTimeout(function () {
                 editor.execCommand("startAutocomplete");
               }, 1);