-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add import on file drag/drop #50170
Comments
Related is #50187, but I guess is not the same. I suppose this needs a custom TSServer command? |
Some things to discuss/test for:
|
|
Followups from today's sync:
|
Suggestion
From microsoft/vscode#5240
🔍 Search Terms
⭐ Suggestion
When I drag and drop a file from VS Code's explorer into the top of my TypeScript code, it should insert an import statement
For example if I have the workspace:
And I drop
other.ts
intoindex.ts
, it should insert:Other cases
I should be able to drag and drop multiple files to create multiple imports
Possible: If I drop the file into somewhere else in the file, we should instead insert an import expression
The added import path should take into account TypeScript's path resolution logic
This also should apply when copy and pasting a file into the editor
The text was updated successfully, but these errors were encountered: