feat(lsp): add lsp healthcheck

Add healthcheck for language server client, currently only checks
logging status.
This commit is contained in:
Michael Lingelbach
2021-09-07 15:20:15 -07:00
parent 47f99d6644
commit e26802650d
3 changed files with 37 additions and 0 deletions

View File

@@ -88,6 +88,11 @@ function log.set_level(level)
end
end
--- Gets the current log level.
function log.get_level()
return current_log_level
end
--- Checks whether the level is sufficient for logging.
---@param level number log level
---@returns (bool) true if would log, false if not