We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From microsoft/vscode#5240
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:
index.ts sub/ other.ts
And I drop other.ts into index.ts, it should insert:
other.ts
index.ts
import $1 from './sub/other'; // here $1 is where the cursor should be after the drop
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:
Related is #50187, but I guess is not the same. I suppose this needs a custom TSServer command?
Sorry, something went wrong.
No branches or pull requests
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: