Paste with imports should not add imports when pasting into a stringΒ #59464
Open
Description
opened on Jul 29, 2024
π Search Terms
- Paste with imports
π Version & Regression Information
5.6.0-dev.20240729
β― Playground Link
No response
π» Code
For a project
// abc.ts
export const abc =123;
console.log(abc);
Copy and paste abc
into a file:
const str = "|"
Where |
is the cursor position
π Actual behavior
An import is added:
import { abc } from "./abc";
const a = 'abc'
π Expected behavior
No import added
Additional information about the issue
No response
Activity