summaryrefslogtreecommitdiff
path: root/cli/tools
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools')
-rw-r--r--cli/tools/check.rs7
-rw-r--r--cli/tools/test/fmt.rs4
2 files changed, 9 insertions, 2 deletions
diff --git a/cli/tools/check.rs b/cli/tools/check.rs
index 87ec88a4a..c154ada7a 100644
--- a/cli/tools/check.rs
+++ b/cli/tools/check.rs
@@ -27,6 +27,7 @@ use crate::graph_util::ModuleGraphBuilder;
use crate::npm::CliNpmResolver;
use crate::tsc;
use crate::tsc::Diagnostics;
+use crate::util::path::to_percent_decoded_str;
use crate::version;
/// Options for performing a check of a module graph. Note that the decision to
@@ -154,7 +155,11 @@ impl TypeChecker {
for root in &graph.roots {
let root_str = root.as_str();
- log::info!("{} {}", colors::green("Check"), root_str);
+ log::info!(
+ "{} {}",
+ colors::green("Check"),
+ to_percent_decoded_str(root_str)
+ );
}
let check_js = ts_config.get_check_js();
diff --git a/cli/tools/test/fmt.rs b/cli/tools/test/fmt.rs
index 77cc3d1ad..d66c72239 100644
--- a/cli/tools/test/fmt.rs
+++ b/cli/tools/test/fmt.rs
@@ -8,6 +8,8 @@ use phf::phf_map;
use std::borrow::Cow;
use std::ops::AddAssign;
+use crate::util::path::to_percent_decoded_str;
+
use super::*;
pub fn to_relative_path_or_remote_url(cwd: &Url, path_or_url: &str) -> String {
@@ -19,7 +21,7 @@ pub fn to_relative_path_or_remote_url(cwd: &Url, path_or_url: &str) -> String {
if !r.starts_with("../") {
r = format!("./{r}");
}
- return r;
+ return to_percent_decoded_str(&r);
}
}
path_or_url.to_string()