summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-19 01:08:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-19 01:08:17 +0800
commit8a2cab337274c92913c2f60c57e756c10ac72d72 (patch)
treecdc24cf324003cdde0e8174e3b9a83c36e915fa6 /script
parent7657fefe4ab5b6ba7dcb7df7e766c115afa25787 (diff)
downloadlua-language-server-8a2cab337274c92913c2f60c57e756c10ac72d72.zip
Revert "fix #3.1.1"
This reverts commit 7657fefe4ab5b6ba7dcb7df7e766c115afa25787.
Diffstat (limited to 'script')
-rw-r--r--script/vm/field.lua11
1 files changed, 0 insertions, 11 deletions
diff --git a/script/vm/field.lua b/script/vm/field.lua
index 614dc89b..ba7cd4c1 100644
--- a/script/vm/field.lua
+++ b/script/vm/field.lua
@@ -2,7 +2,6 @@
local vm = require 'vm.vm'
local util = require 'utility'
local guide = require 'parser.guide'
-local localID = require 'vm.local-id'
local searchByNodeSwitch = util.switch()
: case 'global'
@@ -16,15 +15,6 @@ local searchByNodeSwitch = util.switch()
pushResult(source)
end)
-local function searchByLocalID(source, pushResult)
- local fields = localID.getFields(source)
- if fields then
- for _, field in ipairs(fields) do
- pushResult(field)
- end
- end
-end
-
local function searchByNode(source, pushResult)
local uri = guide.getUri(source)
vm.compileByParentNode(source, nil, true, function (field)
@@ -45,7 +35,6 @@ function vm.getFields(source)
end
end
- searchByLocalID(source, pushResult)
searchByNode(source, pushResult)
return results