From 9880df496f37be44ad03f7bca964b552b0ecf7b4 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 4 Feb 2016 10:49:01 +0000 Subject: [PATCH] Display ellipsis instead of previous args if they are too long. --- .../aceEditor/auto-complete/AutoCompleteManager.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee index 171c1ff538..f23ba8879c 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor/auto-complete/AutoCompleteManager.coffee @@ -56,6 +56,7 @@ define [ currentArg = citeMatch[3] if previousArgs == undefined previousArgs = "" + previousArgsCaption = if previousArgs.length > 8 then "…," else previousArgs result = [] result.push { caption: "\\#{commandName}{", @@ -66,8 +67,8 @@ define [ if references.keys and references.keys.length > 0 references.keys.forEach (key) -> result.push({ - caption: "\\#{commandName}{#{previousArgs}#{key}", - snippet: "\\#{commandName}{#{previousArgs}#{key}", + caption: "\\#{commandName}{#{previousArgsCaption}#{key}", + value: "\\#{commandName}{#{previousArgs}#{key}", meta: "reference", score: 10000 })