diff options
Diffstat (limited to 'script/core/completion')
-rw-r--r-- | script/core/completion/postfix.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/core/completion/postfix.lua b/script/core/completion/postfix.lua index 98bd0639..c5988ef6 100644 --- a/script/core/completion/postfix.lua +++ b/script/core/completion/postfix.lua @@ -297,11 +297,14 @@ local function checkPostFix(state, word, wordPosition, position, symbol, results for i, action in ipairs(actions) do if matchKey(word, action.key) then action.data[1](state, source, function (newText) + local descText = newText:gsub('%$%{%d+:([^}]+)%}', function (val) + return val + end):gsub('%$%{?%d+%}?', '') results[#results+1] = { label = action.key, kind = define.CompletionItemKind.Event, description = markdown() - : add('lua', newText) + : add('lua', descText) : string(), textEdit = { start = wordPosition + #symbol, |