Skip to content
Snippets Groups Projects
Commit fdab3eae authored by 最萌小汐's avatar 最萌小汐
Browse files

resolve #645 only search first file by `require`

parent 95ea1633
Branches
Tags
No related merge requests found
......@@ -9,6 +9,7 @@
* `CHG` hover: improve showing multi defines
* `CHG` hover: improve showing multi comments at enums
* `CHG` hint: `Lua.hint.paramName` now supports `Disable`, `Literal` and `All`
* `CHG` only search first file by `require`
* `CHG` no longer ignore file names case in Windows
* `CHG` watching library changes
* `FIX` runtime errors
......
......@@ -753,6 +753,7 @@ function m.searchRefsByID(status, suri, expect, mode)
local ruri = uris[i]
if uri ~= ruri then
searchID(ruri, 'mainreturn', field, uri)
break
end
end
end
......
......@@ -834,18 +834,24 @@ TEST {
{
path = 'a.lua',
content = [[
---@type Class
local m
m.<!xx!> = 1
]]
return {
<!x!> = 1,
}
]],
},
{
path = 'f/a.lua',
content = [[
return {
x = 1,
}
]]
},
{
path = 'b.lua',
content = [[
---@class Class
local m
print(m.<?xx?>)
local t = require 'a'
print(t.<?x?>)
]]
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment