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

Auto completion is duplicating the already typed parts of string #12

Closed
rochacbruno opened this issue Apr 8, 2022 · 4 comments · Fixed by #14
Closed

Auto completion is duplicating the already typed parts of string #12

rochacbruno opened this issue Apr 8, 2022 · 4 comments · Fixed by #14
Labels
bug Something isn't working

Comments

@rochacbruno
Copy link

I am using https://github.com/python-lsp/python-lsp-server installed with [all] option.

When I go to a Rune such as os.pa and hit Ctrl+Space I expected the autocomplete to give me os.pa[th] but is is giving me os.pa[path]

Is there any config I need to add?

Screenshot_2022-04-08_09-22-25

Thanks again

@AndCake AndCake added the bug Something isn't working label Apr 8, 2022
@AndCake
Copy link
Owner

AndCake commented Apr 8, 2022

Hey thanks for opening the issue. On first sight it looks like this LSP server doesn't send textEdits along with the response and thus the editing range is missing as well. I will investigate if other data is coming along that I might be able to use instead.

@rochacbruno
Copy link
Author

same on rls

Screenshot_2022-04-08_11-04-41

@AndCake AndCake linked a pull request Apr 8, 2022 that will close this issue
@AndCake
Copy link
Owner

AndCake commented Apr 8, 2022

@rochacbruno I created a fix for the issue above. Can you check if this works for you?

@rochacbruno
Copy link
Author

@AndCake yes it works great! thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants