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

Improve client/server instance injection #515

Open
alcarney opened this issue Nov 26, 2024 · 1 comment
Open

Improve client/server instance injection #515

alcarney opened this issue Nov 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@alcarney
Copy link
Collaborator

There are some situations where pygls does not correctly detect when it should inject the client/server instance into a feature handler

See swyddfa/lsp-devtools#195 (comment)

@alcarney alcarney added the bug Something isn't working label Nov 26, 2024
@eliericha
Copy link

I see the issue at https://github.com/openlawlibrary/pygls/blob/main/pygls/feature_manager.py#L64

The code checks for an exact match between the client type and the parameter annotation when it should use issubclass() somehow.

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

No branches or pull requests

2 participants