Fully enable references autocomplete.

This commit is contained in:
Shane Kilkelly 2016-02-03 11:08:51 +00:00
parent 1f6b43e1b1
commit d0835fd2ba
2 changed files with 0 additions and 5 deletions

View file

@ -53,9 +53,6 @@ define [
references = @$scope.$root._references
ReferencesCompleter =
getCompletions: (editor, session, pos, prefix, callback) ->
if window._ENABLE_REFERENCES_AUTOCOMPLETE != true
return callback(null, [])
range = new Range(pos.row, 0, pos.row, pos.column)
lineUpToCursor = editor.getSession().getTextRange(range)
commandFragment = getLastCommandFragment(lineUpToCursor)

View file

@ -27,8 +27,6 @@ define [
)
_storeReferencesKeys: (newKeys) ->
if window._ENABLE_REFERENCES_AUTOCOMPLETE != true
return
# console.log '>> storing references keys'
oldKeys = @$scope.$root._references.keys
@$scope.$root._references.keys = _.union(oldKeys, newKeys)