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

Code completions suggestions are doubled up #64

Open
mmdanggg2 opened this issue Aug 19, 2024 · 3 comments
Open

Code completions suggestions are doubled up #64

mmdanggg2 opened this issue Aug 19, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@mmdanggg2
Copy link

mmdanggg2 commented Aug 19, 2024

What happened?

When getting code suggestions it is showing both suggestions from PyCharm and from Pyright:
image
The Pyright function suggestions also do not include the calling brackets as I would expect.
It would be nice to have an option to disable one or the other.

Steps to reproduce

Open the code suggestions dialog, see that there are two entries for each member

Relevant log output or stack trace

No response

Operating system

Linux

@mmdanggg2 mmdanggg2 added the bug Something isn't working label Aug 19, 2024
@InSyncWithFoo
Copy link
Owner

InSyncWithFoo commented Aug 19, 2024

This is not a bug, but rather a limitation. The LSP4IJ plugin, which is what powering the LSP experience under the hood, doesn't expose many things for me to work on.

For example, most of the methods defined in the class handling autocompletions are private ones: If I were to override something I would (likely) have to copy a significant chunk of their code over, or use reflection to get "unauthorized" access and risk breaking all users' workflows if those methods are changed. Neither is a good choice.

I do agree with this, just that I'm unable to find a suitable solution right now.

@InSyncWithFoo InSyncWithFoo added enhancement New feature or request and removed bug Something isn't working labels Aug 19, 2024
@angelozerr
Copy link

@InSyncWithFoo it seems you need an API again for this usecase. Please create an issue for that.

Can you manage this usecase with lsp jetbrains?

@InSyncWithFoo
Copy link
Owner

Filed an issue at @redhat-developer/lsp4ij#472.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants