mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05: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:
parent
986378932f
commit
9b94b32b83
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue