mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-09 11:35:47 +00:00
Fully enable references autocomplete.
This commit is contained in:
parent
1f6b43e1b1
commit
d0835fd2ba
2 changed files with 0 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue