diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-05 17:07:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-05 17:07:02 +0800 |
commit | 2434cef378cd2a5748356c427cf843a61e925ad9 (patch) | |
tree | 04f6a4b7897776fe8cb323b81a2ce18d64f6ad49 /server/src/vm/vm.lua | |
parent | a9507cd6a329d2be66035ca2019ded070fc7ad33 (diff) | |
download | lua-language-server-2434cef378cd2a5748356c427cf843a61e925ad9.zip |
hover支持表
Diffstat (limited to 'server/src/vm/vm.lua')
-rw-r--r-- | server/src/vm/vm.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index c147439a..7168d0eb 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -306,6 +306,7 @@ end function mt:call(value, values, source) local lib = value:getLib() local func = value:getFunction() + value:setType('function', 0.5) if not func then return end @@ -972,6 +973,7 @@ function mt:createFunction(source) local value = createValue('function', source) local func = createFunction(source) value:setFunction(func) + value:setType('function', 1.0) if source:getUri() == self.uri then self.funcs[#self.funcs+1] = func end |