Description
Describe the bug
I noticed that the plugin was not working correctly it stopped responding to autocomplete requests, failed to detect changes in code (create a local variable, it was marked as unused, then started using it and it was not marked as used)
The workspace diagnosis never seems to finish, the info in the bottom bar of vscode seems to be in progress/waiting
I went back and installed the 2.6.7 version and it started working again.
To Reproduce
Steps to reproduce the behavior:
- Open my code with the new version of the plugin installed, and try to work in lua code.
Expected behavior
The plugin worked fine with the old version
Environment (please complete the following information):
- OS: macOS
- Client: VSCode
Additional context
This project contains a few huge 20k lines files that are used to declare the content of the game and they have a liberal reuse of local variables to declare a big number of entities (here in this sample code, tt is a table that gets replaced for a new one on each E:register_t call, but the local variable is reused and the lua-language-server analysis reports all its fields used on all the different templates, I suspect this might be causing some issues for the plugin)
`
tt = E:register_t('aura_metropolis_portal','aura')
tt.main_script.insert = scripts.aura_apply_mod.insert
tt.main_script.update = scripts.aura_apply_mod.update
tt.aura.duration = -1
tt.aura.mod = 'mod_metropolis_portal'
tt.aura.cycle_time = fts(1)
tt.aura.radius = 35
tt.aura.vis_bans = bor(F_FRIEND, F_BOSS)
tt.aura.vis_flags = bor(F_TELEPORT)
-- mod_metropolis_portal
tt = E:register_t('mod_metropolis_portal', 'mod_teleport')
tt.modifier.vis_flags = bor(F_MOD, F_TELEPORT)
tt.max_times_applied = nil
tt.jump_connection = true
tt.delay_start = fts(2)
tt.hold_time = 0
tt.fx_start = 'fx_teleport_metropolis'
tt.fx_end = 'fx_teleport_metropolis'
-- fx_teleport_metropolis
tt = E:register_t('fx_teleport_metropolis','fx')
tt.render.sprites[1].name = 'fx_teleport_metropolis'
tt.render.sprites[1].size_scales = {vv(0.83),vv(1),vv(1.5)}
`
Thanks for any help