-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
support argument placeholder #1317
Conversation
You need to add the option to Also the default should be true to match the current behaviour. |
PTAL |
This isn't working correctly. Below is the result of completion of
This is what should be inserted into the editor:
So the only combination working as expected is when both are true. |
Ooops, I have make changes to make result right, but I have one question, when enable_snippets = true, enable_argument_placeholders = false, if we output If we output |
Correct, with snippets but not argument placeholders it should be I haven't check the behaviour of the latest commit, as I'm still at work and should not even being looking at this right now :), |
cfd1f98
to
17af372
Compare
I've added a commit which ensures the placement of the cursor is correct when argument placeholders are disabled but snippets are enabled. This PR is looking good to merge however it won't be merged until #1311 is to prevent more conflicts building up on that PR, don't worry though it should only be a couple of days. |
Correctly handles cursor placement after a completion when placeholders are disabled but snippets are not.
17af372
to
00e6180
Compare
* support argument placeholder * default to true * fix review * completion: handle cursor placement Correctly handles cursor placement after a completion when placeholders are disabled but snippets are not. --------- Co-authored-by: Lee Cannon <[email protected]>
* support argument placeholder * default to true * fix review * completion: handle cursor placement Correctly handles cursor placement after a completion when placeholders are disabled but snippets are not. --------- Co-authored-by: Lee Cannon <[email protected]>
Close #685