Merge pull request #1751 from overleaf/as-fix-cite-auto-complete

Don't show shortened arguments in cite autocomplete

GitOrigin-RevId: 75e86e1b97adb7632f30960a50ad775511868d5b
This commit is contained in:
Alasdair Smith 2019-05-08 09:57:05 +01:00 committed by sharelatex
parent 986378932f
commit 9b94b32b83

View file

@ -170,8 +170,6 @@ define([
if (previousArgs == null) {
previousArgs = ''
}
const previousArgsCaption =
previousArgs.length > 8 ? '…,' : previousArgs
const result = []
result.push({
caption: `\\${commandName}{}`,
@ -182,8 +180,8 @@ define([
if (references.keys && references.keys.length > 0) {
references.keys.forEach(function(key) {
if (key != null) {
return result.push({
caption: `\\${commandName}{${previousArgsCaption}${key}}`,
result.push({
caption: `\\${commandName}{${previousArgs}${key}}`,
value: `\\${commandName}{${previousArgs}${key}}`,
meta: 'reference',
score: 50