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

fix: return empty response to textDocument/completion if completion disabled #3144

Merged
merged 3 commits into from
Apr 5, 2025

Conversation

jllv
Copy link
Contributor

@jllv jllv commented Mar 30, 2025

In some cases it could happen that textDocument/completion requests are fulfilled despite Lua.completion.enable being set to false. This was due to a missing check of the actually value of the config before starting the calculation of all completion items.

@jllv
Copy link
Contributor Author

jllv commented Mar 30, 2025

This PR attempts to solve this issue: #3137

@sumneko
Copy link
Collaborator

sumneko commented Apr 5, 2025

Thank you!

@sumneko sumneko merged commit 9ebaa0d into LuaLS:master Apr 5, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants