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

'completionTextEdit' option causes clangd to insert "#include" statement twice #545

Open
girishji opened this issue Aug 6, 2024 · 1 comment

Comments

@girishji
Copy link
Contributor

girishji commented Aug 6, 2024

Text changes are applied twice, once when completion item is accepted and second time when CompleteDone event is fired (calls LspCompleteDone()). This is the case for clangd server.

To reproduce, simply open a foo.c file and try to complete print, as follow:

int main() {
    prin  -> select 'printf', then <c-y>
}

you get this:
Screenshot 2024-08-06 at 10 35 44 AM

@girishji
Copy link
Contributor Author

girishji commented Aug 6, 2024

girishji/vimcomplete#72

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

No branches or pull requests

1 participant