Просмотр исходного кода

Merge branch 'sk-ac-ignore-comments' into sk-ac-improvements-integration

Shane Kilkelly 9 лет назад
Родитель
Сommit
c99109751e

+ 2 - 0
services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee

@@ -121,6 +121,8 @@ define [
 			end = change.end
 			range = new Range(end.row, 0, end.row, end.column)
 			lineUpToCursor = @editor.getSession().getTextRange(range)
+			if lineUpToCursor.match(/.*%.*/)
+				return
 			commandFragment = getLastCommandFragment(lineUpToCursor)
 			# Check that this change was made by us, not a collaborator
 			# (Cursor is still one place behind)