summaryrefslogtreecommitdiff
path: root/script/parser/compile.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-17 16:38:44 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-17 16:38:44 +0800
commitbfb576d3eba9f12bb582a9f7e942c5eac387fe2b (patch)
treed5e3790aeca21994d4b9558453f40657383fcf63 /script/parser/compile.lua
parent3bdd74aa30a6175f1bbf973559241f99eb563dfe (diff)
downloadlua-language-server-bfb576d3eba9f12bb582a9f7e942c5eac387fe2b.zip
use `state` instead of `uri` for converter
The state may have changed when responding, so we need to use the state when requesting. Try not to get the state on the spot.
Diffstat (limited to 'script/parser/compile.lua')
-rw-r--r--script/parser/compile.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/parser/compile.lua b/script/parser/compile.lua
index 45678976..12d80f7e 100644
--- a/script/parser/compile.lua
+++ b/script/parser/compile.lua
@@ -3818,6 +3818,7 @@ local function initState(lua, version, options)
Index = 1
---@class parser.state
---@field uri uri
+ ---@field lines integer[]
local state = {
version = version,
lua = lua,