Skip to content

Unpublish diagnostics when disabled#498

Merged
renkun-ken merged 2 commits intoREditorSupport:masterfrom
renkun-ken:fix-diagnostics
Nov 21, 2021
Merged

Unpublish diagnostics when disabled#498
renkun-ken merged 2 commits intoREditorSupport:masterfrom
renkun-ken:fix-diagnostics

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