Skip to content

Unpublish diagnostics when disabled #498

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

Merged
merged 2 commits into from
Nov 21, 2021

Conversation

renkun-ken
Copy link
Member

@renkun-ken renkun-ken commented Nov 21, 2021

Closes #497

This PR unpublishes diagnostics of all workspace documents when diagnostics is disabled from client settings.

Also, this PR corrects the signature of protocol_set_trace to protocol_set_trace(self, params). This handler turns on/off debug previously, which might cause conflicts with r.lsp.debug since if it is true but the language server trace is not turnoed on, then on the server side the debug will be enabled on startup but then disabled due to setTrace notification says off.

I add a new trace setting parallel with debug as well as logger$trace so that they have no conflicts.

logger$info works if either debug or trace is on, and logger$trace only works if trace is on.

@randy3k
Copy link
Member

randy3k commented Nov 21, 2021

Thank you. LGTM.

@renkun-ken renkun-ken merged commit c587b03 into REditorSupport:master Nov 21, 2021
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.

Disabling linting has no effect
2 participants