From d4a06251c54fc004e189469e493b1261be200300 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 17 Sep 2024 18:28:51 +0100 Subject: feat(lsp): auto-import types with 'import type' (#25662) --- cli/lsp/tsc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/lsp') 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" ); } -- cgit v1.2.3