local config = require 'config' TEST { { path = 'a.lua', content = [[ local = require 'lib' ]], }, { path = 'lib.lua', content = [[ return () end!> ]], }, } TEST { { path = 'a.lua', content = [[ local m = {} function m.<~func~>() end return m ]], }, { path = 'b.lua', content = [[ local t = require 'a' t.() ]], }, } TEST { { path = 'a.lua', content = [[ return <~function () end~> ]], }, { path = 'b.lua', content = [[ local t = require 'a' ]], }, { path = 'b.lua', content = [[ local t = require 'a' ]], }, { path = 'b.lua', content = [[ local t = require 'a' ]], }, { path = 'b.lua', content = [[ local = require 'a' ]], }, } config.set('Lua.IntelliSense.traceBeSetted', true) TEST { { path = 'a.lua', content = [[ local function <~f~>() end return { = , } ]] }, { path = 'b.lua', content = [[ local t = require 'a' local = t. () return { = , } ]] } } TEST { { path = 'a.lua', content = [[ local function () end return { = , } ]] }, { path = 'c.lua', content = [[ local t = require 'a' local = t. () return { = , } ]] }, { path = 'b.lua', content = [[ local t = require 'a' local = t. <~f~>() return { = , } ]] } } TEST { { path = 'a.lua', content = [[ local function <~f~>() end return { = , } ]] }, { path = 'b1.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b2.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b3.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b4.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b5.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b6.lua', content = [[ local t = require 'a' t.() ]] }, { path = 'b7.lua', content = [[ local t = require 'a' t.() ]] }, } TEST { { path = 'a.lua', content = [[ local <~t~> = require 'b' return ]] }, { path = 'b.lua', content = [[ local = require 'a' return ]] }, } config.set('Lua.IntelliSense.traceBeSetted', false)