-
Notifications
You must be signed in to change notification settings - Fork 113
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
editor.acceptSuggestionOnCommitCharacter
has no effect
#347
Comments
This is a bug in vscode-languageclient: microsoft/vscode-languageserver-node#673 As you can see, it has been fixed, but we need to release a new version of vscode-clangd that picks up a version of vscode-languageclient that contains the fix. There is already a pull request to make this dependency bump (for a different reason), we just need to get it merged: #341 (@sam-mccall / @kadircet, kind reminder) |
Understood, thanks for your reply. 😄 Just keep this issue open for tracking purpose until fix released. |
Looks like vscode-clangd picked up the fix to vscode-languageclient, but other users complained (#356, #357) and in response vscode-clangd was updated in #358 to use an empty list of commit characters, effectively negating the fix. I wonder if the list of commit characters is configurable on the user side. |
Definitely open to re-adding them if we can find a default behavior that's reasonable to most people, or an optional behavior that's really useful. Can i ask precisely what behaviour you want here?
|
The input sequence is: Additionally: access array element (e.g. |
(@xvyvx I'm very sorry, i accidentally edited your last reply instead of quoting it! I think I managed to restore it)
Yeah, this basically isn't possible in vscode or LSP without turning off snippets (i.e. completion of signatures). Potentially we could expose this option and turn on commit characters when it's on... The second question above isn't answered: if fo( becomes foo(), how do you type fo()? |
@sam-mccall Oh, that’s my mistake, I mean input
yes, it’s seems that clangd vscode extension conflict with vscode commit character insertion behavior ( clangd extension will provide |
With
With
|
editor.acceptSuggestionOnCommitCharacter
has no effect when it is enabled( just commitCommitCharacter
itself, not selected completion item withCommitCharacter
. For example when I select a item from completion list and then input;
, it commit;
only).By searching relate questions, i found this, so i think clangd has support
acceptSuggestionOnCommitCharacter
feature, is it just a bug on client side? or maybe I misunderstood it?The text was updated successfully, but these errors were encountered: