summaryrefslogtreecommitdiff
path: root/cli/lsp
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-09-17 18:28:51 +0100
committerGitHub <noreply@github.com>2024-09-17 18:28:51 +0100
commitd4a06251c54fc004e189469e493b1261be200300 (patch)
treefd1778c0dc7dae678fbe13389e1f33fddbcd2d71 /cli/lsp
parentb4faf609484726d827b43140b4ce2bc8e58163df (diff)
feat(lsp): auto-import types with 'import type' (#25662)
Diffstat (limited to 'cli/lsp')
-rw-r--r--cli/lsp/tsc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs
index 0decef396..6d3e1317b 100644
--- a/cli/lsp/tsc.rs
+++ b/cli/lsp/tsc.rs
@@ -6154,7 +6154,7 @@ mod tests {
let change = changes.text_changes.first().unwrap();
assert_eq!(
change.new_text,
- "import { someLongVariable } from './b.ts'\n"
+ "import type { someLongVariable } from './b.ts'\n"
);
}