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

Add command LspStatus to display the status of each language server #134

Merged
merged 2 commits into from
Jun 16, 2018

Conversation

tkonolige
Copy link
Contributor

@tkonolige tkonolige commented Apr 14, 2018

This commit adds the following functions: lsp#get_server_status(server_name) to display the status of a given server, and lsp#server_status() to print the statuses of every server.

Addresses #101

autoload/lsp.vim Outdated
@@ -63,6 +63,34 @@ function! lsp#get_server_capabilities(server_name) abort
return has_key(l:server, 'init_result') ? l:server['init_result']['result']['capabilities'] : {}
endfunction

" Returns the current status of the given server. Can be one of
" "unknown server", "exited", "starting", "failed", "running", "not running"
function! lsp#get_server_status(server_name) abort
Copy link
Owner

Choose a reason for hiding this comment

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

can we only expose one functoin and instead use lsp#get_server_status(...)?

@tkonolige
Copy link
Contributor Author

I've converted this patch to expose a single function. I also added some docs.

@prabirshrestha prabirshrestha merged commit 8d30af9 into prabirshrestha:master Jun 16, 2018
@prabirshrestha
Copy link
Owner

@tkonolige Merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants