Clean up language server's output handling (#4855)

Handles verbose logging and printing errors as diagnostics to stderr
when there's no way to communicate them back on a request.
This commit is contained in:
Jon Ross-Perkins
2025-01-30 18:34:03 +00:00
committed by GitHub
parent 7befe2ce9f
commit 16b2cafae1
13 changed files with 200 additions and 18 deletions
@@ -27,9 +27,9 @@ auto LanguageServerSubcommand::Run(DriverEnv& driver_env) -> DriverResult {
return {.success = false};
}
bool success =
LanguageServer::Run(driver_env.input_stream, *driver_env.output_stream,
*driver_env.error_stream, driver_env.consumer);
bool success = LanguageServer::Run(
driver_env.input_stream, *driver_env.output_stream,
*driver_env.error_stream, driver_env.vlog_stream, driver_env.consumer);
return {.success = success};
}