summaryrefslogtreecommitdiff
path: root/server-beta/src/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-15 15:25:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-15 15:25:56 +0800
commit6de8c401f4345863e0800a7262ca66c49b0a281c (patch)
treea911a7813fe5aacec89c3cca9c8b79346b6ab219 /server-beta/src/core
parent932064c8d94e3eea98dd8fce046286f561d72ec5 (diff)
downloadlua-language-server-6de8c401f4345863e0800a7262ca66c49b0a281c.zip
直接用 special 就行了,不再递归分析特殊API
Diffstat (limited to 'server-beta/src/core')
-rw-r--r--server-beta/src/core/definition.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server-beta/src/core/definition.lua b/server-beta/src/core/definition.lua
index 9e69d27f..3fa7c3bf 100644
--- a/server-beta/src/core/definition.lua
+++ b/server-beta/src/core/definition.lua
@@ -58,7 +58,7 @@ local function checkRequire(source, offset, callback)
if type(literal) ~= 'string' then
return
end
- local name = searcher.getSpecialName(func)
+ local name = func.special
if name == 'require' then
local result = workspace.findUrisByRequirePath(literal, true)
for _, uri in ipairs(result) do