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

window/showMessage: the display level can be set for 'window/showMess… #145

Merged
merged 1 commit into from
Feb 24, 2020

Conversation

h-michael
Copy link
Contributor

related with #127

  • add message_level
  • remove log_level = lsp.protocol.MessageType.Warning from each server configs. These are not needed because they are already set in default_config.

if params and params.type <= config.message_level then
-- TODO(ashkan) remove this after things have settled.
assert(lsp.callbacks, "Update to Nvim HEAD. This is an incompatible interface.")
lsp.callbacks[method](err, method, params, client_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what kind of strings will method be? should we validate it ? if lsp.callbacks[method] is potentially nil, we should show a meaningful error message .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fix it.

@h-michael h-michael merged commit 276084b into neovim:master Feb 24, 2020
@h-michael h-michael deleted the showMessage-level branch February 24, 2020 03:33
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.

None yet

2 participants