Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global Function isnt recognize earlier inside other functions #1857

Closed
daniellumertz opened this issue Jan 30, 2023 · 0 comments
Closed

Global Function isnt recognize earlier inside other functions #1857

daniellumertz opened this issue Jan 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@daniellumertz
Copy link

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

From version 3.6.4
image

Actual Behaviour

image
The current behavior will only mark functions that were previously declared. The older behavior was better in certain scenarios like declaring many functions before calling any of them. In this common scenario it will be better if the coder can still clearly see what is declared as a function at some place at the code and organize the functions order as the project needs.

Reproduction steps

  1. Add a function Foo calling function Bar
  2. Add function Bar

Additional Notes

Would be great if there was an option for that, so can choose between both behaviors.

Log File

No response

@sumneko sumneko added the bug Something isn't working label Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants