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

Fix path completion when client doesn't support code snippets #497

Merged
merged 5 commits into from
Dec 12, 2023

Conversation

i-aki-y
Copy link
Contributor

@i-aki-y i-aki-y commented Dec 7, 2023

This PR is trying to fix #373.
I fixed to escape os.sep only when a client support snippet, based on discussion in the above issue.

I would appreciate it if you could review this PR.

@ccordoba12 ccordoba12 added this to the v1.9.1 milestone Dec 7, 2023
@ccordoba12 ccordoba12 added the bug Something isn't working label Dec 7, 2023
@ccordoba12 ccordoba12 changed the title Fix path completion add escape char "\" in the insert string. Fix path completion when client doesn't support code snippets Dec 7, 2023
Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @i-aki-y for your contribution! Please run black in test_completion.py to fix the error reported by our code analysis workflow.

The rest looks good to me.

@i-aki-y
Copy link
Contributor Author

i-aki-y commented Dec 8, 2023

@ccordoba12 Thank you for your review. I applied black.

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@i-aki-y, one last, tiny suggestion for you then this should be ready.

pylsp/plugins/jedi_completion.py Outdated Show resolved Hide resolved
Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>
@i-aki-y
Copy link
Contributor Author

i-aki-y commented Dec 11, 2023

@ccordoba12 Thanks. I applied your suggestion!

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now, thanks @i-aki-y!

@ccordoba12 ccordoba12 merged commit 14369f8 into python-lsp:develop Dec 12, 2023
10 checks passed
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 this pull request may close these issues.

file path auto completion add \ in path string
2 participants