-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
function snippet seems broken by PR #3005 in non released latest master (after v3.13.5) #3021
Comments
After some investigation, seems now a completion entry needs to specify lua-language-server/script/core/completion/completion.lua Lines 1349 to 1354 in cb964c6
|
Hmm, my PR assumed that all snippets properly set |
Would you please open another PR to fix this? 😂 @andrewbraxton |
The PR LuaLS#3005 assumed that all snippets were setting `insertTextFormat` to 2 and leaving plaintext completions nil, but that was not the case. Function completions need to be marked as snippets too. fixes LuaLS#3021
How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
MacOS
What is the issue affecting?
Completion
Expected Behaviour
Actual Behaviour
but now it becomes something like this
Reproduction steps
Additional Notes
I just checked out latest master (
cb964c6
as of the time being) and found this issue.After doing git bisect, it points to the following commit which is #3005 by @andrewbraxton
Maybe the change works for neovim, but it's definitely broken for
doc.type.function
snippet in vscode 😕(for others snippet like
repeat .. until
it works normally)Log File
No response
The text was updated successfully, but these errors were encountered: