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

lsp: Accept but ignore cancelled requests #642

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

charlieegan3
Copy link
Member

I have not been able to work out why these are sent but they don't seem to impact the running functionality of the server and supporting them seems to be optional.

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#dollarRequests

For now, this updates the server to do nothing when receiving such a request. This avoids some log lines that we don't do anything about.

I would like to come back to this though as it seems like there's more here that we might be missing. So it has been labelled as TODO.

I have not been able to work out why these are sent but they don't seem
to impact the running functionality of the server and supporting them
seems to be optional.

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#dollarRequests

For now, this updates the server to do nothing when receiving such a
request. This avoids some log lines that we don't do anything about.

I would like to come back to this though as it seems like there's more
here that we might be missing. So it has been labelled as TODO.

Signed-off-by: Charlie Egan <charlie@styra.com>
@charlieegan3
Copy link
Member Author

logTrace and setTrace are similar, but I am more optimistic that we can add support for them quickly.

@anderseknert anderseknert merged commit 40ed03f into main Apr 11, 2024
3 checks passed
@anderseknert anderseknert deleted the cancel-requests branch April 11, 2024 10:20
srenatus pushed a commit to srenatus/regal that referenced this pull request Oct 1, 2024
I have not been able to work out why these are sent but they don't seem
to impact the running functionality of the server and supporting them
seems to be optional.

https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#dollarRequests

For now, this updates the server to do nothing when receiving such a
request. This avoids some log lines that we don't do anything about.

I would like to come back to this though as it seems like there's more
here that we might be missing. So it has been labelled as TODO.

Signed-off-by: Charlie Egan <charlie@styra.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants