0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

feat(lsp): add additional logging information (#10890)

This commit is contained in:
Kitson Kelly 2021-06-09 10:00:26 +10:00 committed by GitHub
parent 50063749e2
commit 6b826033a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -361,9 +361,13 @@ impl Inner {
import_map_str
))
}?;
let import_map_path = import_map_url
.to_file_path()
.map_err(|_| anyhow!("Bad file path."))?;
let import_map_path = import_map_url.to_file_path().map_err(|_| {
anyhow!("Cannot convert \"{}\" into a file path.", import_map_url)
})?;
info!(
" Resolved import map: \"{}\"",
import_map_path.to_string_lossy()
);
let import_map_json =
fs::read_to_string(import_map_path).await.map_err(|err| {
anyhow!(
@ -460,6 +464,7 @@ impl Inner {
config_str
))
}?;
info!(" Resolved configuration file: \"{}\"", config_url);
let config_file = {
let buffer = config_url
@ -527,6 +532,9 @@ impl Inner {
env!("TARGET")
);
info!(" version: {}", version);
if let Ok(path) = std::env::current_exe() {
info!(" executable: {}", path.to_string_lossy());
}
let server_info = ServerInfo {
name: "deno-language-server".to_string(),