mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 11:31:55 +02:00
Fully enable references autocomplete.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user