-
Notifications
You must be signed in to change notification settings - Fork 202
Auto import feature #782
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
Comments
Cool. Some guidance : https://github.com/TypeStrong/atom-typescript/blob/master/docs/quickfix.md |
Great! |
|
I have a PR (#791) submitted that adds a quick fix option for an "import from" statement. |
I got a missing dependency "Cannot find name ", but get no quick fix suggestion. I am on version 7.16.1. Any advice? Thanks for your work - this feature is much needed. |
@amb-it-ion can you share the code snippet. Might be the |
+1 |
2 similar comments
+1 |
+1 |
Please note that the TypeScript team is investigating a QuickFix api similar to Refactor api. Everyone is ofcourse is free to do whatever, this was just info 🌹 |
Sorry, guys but is it working right now? |
+1 |
+1 This is the reason I stay with Webstorm. There is a package that does this for regular js. Could it be ported to work for ts? |
+1 |
please 👍 |
If I understand correctly this PR adds this feature to the TS language service. If that is true I guess it is just a matter of connecting it. |
+1 I"m a noob in atom but maybe https://atom.io/packages/typescript-modules-helper this one could be helpful. |
i need it! |
I need it too!! 😄 |
please please +1 |
Please I need it too, I had switched to VisualCode Studio |
@dogancana, This package does help but it's not good enough. |
Codefix support that lets you do this sort of thing is now in the latest |
Is there anything special I need to do to set this up? I just tried it and it didn't work |
@Drabc There isn't any special setup required, you just need a fairly recent Typescript version. It also might not work because you're trying to auto-import something from node_modules. This only works for imports from files in your project. |
Same, it does work for me but my binding is |
Right, I wasn't clear that |
Using atom 1.18.0 x64 on windows7
what do you mean under install typescript, install atom-typescript package in atom, npm i -g typescript? |
Just for info, 2.1.5 < "fairly recent Typescript version" <= 2.4.2 |
package.json contains angular-cli version of TS(2.2.2) |
this is awesome! btw do we support single quote instead of double quote in the autofix? |
@AndrewBogushevich on mac it works perfectly though, any ideas? |
@kevinlinhaw |
Come on guys WHY ISN'T THERE STILL A PACKAGE FOR THIS?!?! |
@eugensunic, because you haven't built it. |
this would be super nice |
Webstorm have cool feature like auto import entities from indexed files
for example we are typing:

new Foo()
and WS prompt "import Foo from 'foo.ts'?" if we says yes, then it append to headerimport {Foo} from './deep/folder/path/foo'
The text was updated successfully, but these errors were encountered: