-
-
Notifications
You must be signed in to change notification settings - Fork 358
Disable automatic insertion of "---@" on Enter #2861
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
Comments
I could also work with something like immediately pressing enter on the lone |
I think a better approach would be to provide ---@ completion options after pressing Enter, rather than directly adding ---@. |
yes, having the auto complete suggest ---@ prefixed options on a blank line
would be great as long as it didnt trigger on every blank line :)
…On Thu, Sep 19, 2024, 7:01 PM CppCXY ***@***.***> wrote:
I think a better approach would be to provide ---@ completion options
after pressing Enter, rather than directly adding ***@***.***
—
Reply to this email directly, view it on GitHub
<#2861 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7X76MRPR2WGSVDNUUB7RU3ZXN6Y7AVCNFSM6AAAAABOQ6MPF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRSGU2TSNRQGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Great idea 👍 However currently the "feature" of adding Another Suggestion:
|
I will provide a setting in the next version. |
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?
Annotations, Completion, Formatting
Expected Behaviour
When I hit Enter at the end of a class/parameter/etc. annotation, I get a new blank line.
Actual Behaviour
When I type an annotation and hit Enter, I get
---@
automatically inserted.Reproduction steps
---@class test
Additional Notes
I know this is an "intentional feature", but I would like a way to disable it. There is no setting that disables this (and only this) - turning "Editor: Auto Indent" to 'brackets' or lower disables this unwanted behavior, but then I lose auto-indent.
See #2786
Log File
No response
The text was updated successfully, but these errors were encountered: