diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-23 11:41:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-23 11:41:41 +0800 |
commit | fdab3eaed0f5e3e85252d5126e1f1927b633c80d (patch) | |
tree | ec5fd69b3e6c0c535bbc77780c34711fc9e8301b /test/crossfile | |
parent | 95ea163397963b52278b9eb70f2adfebe5490014 (diff) | |
download | lua-language-server-fdab3eaed0f5e3e85252d5126e1f1927b633c80d.zip |
resolve #645 only search first file by `require`
Diffstat (limited to 'test/crossfile')
-rw-r--r-- | test/crossfile/definition.lua | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua index 74923183..66e9b269 100644 --- a/test/crossfile/definition.lua +++ b/test/crossfile/definition.lua @@ -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?>) ]] } } |