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

Server capabilities should depend on client capabilities. #59

Open
danixeee opened this issue Mar 22, 2019 · 4 comments
Open

Server capabilities should depend on client capabilities. #59

danixeee opened this issue Mar 22, 2019 · 4 comments
Labels
enhancement New feature or request refactor Internal code and/or logic changes

Comments

@danixeee
Copy link
Contributor

The goal is to refactor current implementation of how server capabilities are calculated.
Client capabilities (InitializeRequest) should be considered when creating server capabilities.

https://github.com/openlawlibrary/pygls/blob/master/pygls/types.py#L879

@danixeee danixeee added enhancement New feature or request refactor Internal code and/or logic changes labels Mar 22, 2019
@tombh
Copy link
Collaborator

tombh commented Dec 3, 2022

Is this still relevant now that v1 is released? Because all types live in lsprotocol, do it fix the issue or if not, could it?

@alcarney
Copy link
Collaborator

alcarney commented Dec 5, 2022

It's potentially relevant, while lsprotocol provides all the types now it's still on pygls to correctly fill out an instance of ServerCapabilities as this tells the client which methods etc a server supports.

While the ServerCapabilitiesBuilder does look at some client capabilities, I don't know if it does in all cases etc.

@alcarney
Copy link
Collaborator

alcarney commented Dec 5, 2022

Oh! and we also need to make sure we support any additional fields that were added to the spec since this was last looked at

@tombh
Copy link
Collaborator

tombh commented Dec 5, 2022

Ok great, I'll look into fixing this soon then.

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

No branches or pull requests

3 participants