summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/lsp/tsc.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs
index 53a35c484..d62744e03 100644
--- a/cli/lsp/tsc.rs
+++ b/cli/lsp/tsc.rs
@@ -303,6 +303,10 @@ impl TsServer {
new_project_version: String,
config_changed: bool,
) {
+ let modified_scripts = modified_scripts
+ .iter()
+ .map(|(spec, change)| (self.specifier_map.denormalize(spec), change))
+ .collect::<Vec<_>>();
let req = TscRequest {
method: "$projectChanged",
args: json!([modified_scripts, new_project_version, config_changed,]),