Explorar el Código

HUE-7648 [editor] Only mark missing identifiers when there are suggestions

Johan Ahlen hace 8 años
padre
commit
1406843cae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

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

@@ -3907,7 +3907,7 @@
               })
             }
 
-            if (token.parseLocation) {
+            if (token.parseLocation && weightedExpected.length > 0) {
               var AceRange = ace.require('ace/range').Range;
               var range = new AceRange(token.parseLocation.location.first_line - 1, token.parseLocation.location.first_column - 1, token.parseLocation.location.last_line - 1, token.parseLocation.location.last_column - 1);
               self.addAnchoredMarker(range,  token, 'hue-ace-syntax-warning');