mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
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:
committed by
sharelatex
parent
986378932f
commit
9b94b32b83
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user