diff options
Diffstat (limited to 'test-beta/crossfile/definition.lua')
-rw-r--r-- | test-beta/crossfile/definition.lua | 32 |
1 files changed, 29 insertions, 3 deletions
diff --git a/test-beta/crossfile/definition.lua b/test-beta/crossfile/definition.lua index 743325c2..5bc99a19 100644 --- a/test-beta/crossfile/definition.lua +++ b/test-beta/crossfile/definition.lua @@ -1,6 +1,7 @@ -local files = require 'files' -local furi = require 'file-uri' -local core = require 'core.definition' +local files = require 'files' +local furi = require 'file-uri' +local core = require 'core.definition' +local config = require 'config' rawset(_G, 'TEST', true) @@ -558,6 +559,31 @@ TEST { }, } +config.config.intelliSense.searchDepth = 0 + +TEST { + { + path = 'a.lua', + content = [[ + local t = GlobalTable + + t.settings = { + <!test!> = 1 + } + ]], + }, + { + path = 'b.lua', + content = [[ + local b = GlobalTable.settings + + print(b.<?test?>) + ]] + }, +} + +config.config.intelliSense.searchDepth = 5 + TEST { { path = 'a.lua', |