Explorar o código

Only load labels from current doc if change is local

Shane Kilkelly %!s(int64=9) %!d(string=hai) anos
pai
achega
51881dbbcc

+ 1 - 0
services/web/public/coffee/ide/editor/directives/aceEditor/labels/LabelsManager.coffee

@@ -27,6 +27,7 @@ define [
 				lineUpToCursor = @editor.getSession().getTextRange(range)
 				commandFragment = getLastCommandFragment(lineUpToCursor)
 				if (
+					!change.remote and
 					change.action in ['remove', 'insert'] and
 					((_.any(change.lines, (line) -> line.match(/\\label\{[^\}\n\\]{0,80}\}/))) or
 					 (commandFragment?.length > 2 and commandFragment.slice(0,7) == '\\label{'))