Closed gesslar closed 3 months ago
Could you @gesslar perhaps please provide a minimized example?
I believe there is a larger chance to actually resolve this issue if reducing the code only to the few lines to illustrate the problem you are having. With half-a-thousand open tickets, monotonously increasing, one wonders what the purpose of filing an obviously non-actionable ticket on this project is.
If, as you say, nothing can be done. Then nothing can be done. Good day.
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Type Checking
Expected Behaviour
I am expecting it to not warn me about a casting issue when there is none.
Actual Behaviour
I am getting a casting warning on a variable that should not be an issue.
Reproduction steps
While it is true that
getSelection()
can returnnil
, I do accommodate for it with my or statementThis is where it is squiggling
Additional Notes
Here is everything that is relevant that should help.
Log File
No response