Skip to content

Commit 8a2cab3

Browse files
committed
Revert "fix #3.1.1"
This reverts commit 7657fef.
1 parent 7657fef commit 8a2cab3

File tree

3 files changed

+0
-27
lines changed

3 files changed

+0
-27
lines changed

changelog.md

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# changelog
22

3-
## 3.1.1
4-
* `FIX` [#1051](https://github.com/sumneko/lua-language-server/issues/1051)
5-
63
## 3.1.0
74
`2022-4-17`
85
* `NEW` support find definition in method

script/vm/field.lua

-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
local vm = require 'vm.vm'
33
local util = require 'utility'
44
local guide = require 'parser.guide'
5-
local localID = require 'vm.local-id'
65

76
local searchByNodeSwitch = util.switch()
87
: case 'global'
@@ -16,15 +15,6 @@ local searchByNodeSwitch = util.switch()
1615
pushResult(source)
1716
end)
1817

19-
local function searchByLocalID(source, pushResult)
20-
local fields = localID.getFields(source)
21-
if fields then
22-
for _, field in ipairs(fields) do
23-
pushResult(field)
24-
end
25-
end
26-
end
27-
2818
local function searchByNode(source, pushResult)
2919
local uri = guide.getUri(source)
3020
vm.compileByParentNode(source, nil, true, function (field)
@@ -45,7 +35,6 @@ function vm.getFields(source)
4535
end
4636
end
4737

48-
searchByLocalID(source, pushResult)
4938
searchByNode(source, pushResult)
5039

5140
return results

test/completion/common.lua

-13
Original file line numberDiff line numberDiff line change
@@ -3311,16 +3311,3 @@ TEST [[
33113311
end
33123312
assert(count == 1)
33133313
end)
3314-
3315-
TEST [[
3316-
local x
3317-
x.y.z = xxx
3318-
3319-
x.y.<??>
3320-
]]
3321-
{
3322-
{
3323-
label = 'z',
3324-
kind = define.CompletionItemKind.Field,
3325-
}
3326-
}

0 commit comments

Comments
 (0)