From b194e1dcc6baff0274051a957d345366dd941977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 15 Jul 2019 15:04:56 +0800 Subject: =?UTF-8?q?=E8=BF=87=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/hover/function.lua | 3 +-- server/test/crossfile/hover.lua | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/server/src/core/hover/function.lua b/server/src/core/hover/function.lua index 6139bd1b..42d6bf6d 100644 --- a/server/src/core/hover/function.lua +++ b/server/src/core/hover/function.lua @@ -194,12 +194,11 @@ local function getComment(func) end end end - comments[#comments+1] = '\n' comments[#comments+1] = func:getComment() if #comments == 0 then return nil end - return table.concat(comments, '\n') + return table.concat(comments, '\n\n') end local function getOverLoads(name, func, object, select) diff --git a/server/test/crossfile/hover.lua b/server/test/crossfile/hover.lua index f104fa38..7f6b7a23 100644 --- a/server/test/crossfile/hover.lua +++ b/server/test/crossfile/hover.lua @@ -327,5 +327,9 @@ TEST { hover = { label = 'function f(x: string, y: string)', name = 'f', + description = [[ ++ `x`*(string)*: aaaa + ++ `y`*(string)*: bbbb]] } } -- cgit v1.2.3