Skip to content

Remove dead code in lsp-sample #1181

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jruales
Copy link

@jruales jruales commented Apr 29, 2025

The validateTextDocument function is stateless so calling it without using its output is a no-op.

This dead code should have been cleaned up with #973.

Speaking of which, this guide should also be updated based on the changes done in #973 as it is still using push diagnostics instead of pull diagnostics.

This other guide should also be updated, since it currently says

Note: The client does not ask the server for diagnostics. The server pushes the diagnostic information to the client.

but that is not completely correct, since pull diagnostics are also a possibility.

@jruales jruales changed the title Remove dead code Remove dead code in lsp-sample Apr 29, 2025
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.

1 participant