diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-08-05 17:40:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-08-05 17:40:55 +0800 |
commit | 819ca34144213cc2a65faf91915d50d9b42f47f6 (patch) | |
tree | 18a110f91b78f4d6bd5c754431e539a956447498 /script/vm/doc.lua | |
parent | 9bbe7a925f0aa3a7cff981933dd48e5fe0533452 (diff) | |
download | lua-language-server-819ca34144213cc2a65faf91915d50d9b42f47f6.zip |
`main` is treated as async
Diffstat (limited to 'script/vm/doc.lua')
-rw-r--r-- | script/vm/doc.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/doc.lua b/script/vm/doc.lua index c3b924d2..293cf5c3 100644 --- a/script/vm/doc.lua +++ b/script/vm/doc.lua @@ -164,6 +164,9 @@ local function isAsync(value) value._async = false return false end + if value.type == 'main' then + return true + end return value.async == true end |