How to add "undefined variable" os.sleep as exception for Diagnostics? #630
Unanswered
GusarevKirill
asked this question in
Q&A
Replies: 1 comment 3 replies
-
---@param num number
function os.sleep(num) end |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
VS Code, Lua extension.
Hello. My lang is RU therefore sorry for mistakes in my question. If you do not understand me full, then let me know.
So, I have a problem with Diagnostics. Text of warning: Undefined field
sleep
.Lua Diagnostics.(undefined-field).This warning appears when I use a function os.sleep(). This function is availaible on platform OpenComputers (Mod for Minecraft). Because I develop Lua apps for OpenComputers.
I already read a wiki, but I didn't find anything I needed. I read settings for this extension in VS Code and I found a parameters "Diagnostic: Disable" and "Diagnostic: Globals", may be these parameters can help me, but I have no idea how to use these :(((.
So Can I disable this warnings for "os.sleep"? How can I do this?
Thanks for any help. :)
Beta Was this translation helpful? Give feedback.
All reactions