-
Notifications
You must be signed in to change notification settings - Fork 236
autocomplete imports #425
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
Just to clarify, I am talking about SystemJS import, .e.g. 'import {XYZ} from "XYZ/XYZ"' |
This issue was moved to microsoft/TypeScript#6486 |
this looks like a general suggestion and not specific to sublime-text. moving to the typescript repo. |
microsoft/TypeScript#9353 was merged. Isn't there any adoption required for this plugin? |
there are some changes on this side as well that would be needed. @zhengbli how do you want to handle that? |
Currently microsoft/TypeScript#9353 is only merged with the master branch, and is not released yet. It is scheduled to be released soon with v 2.0.5 on npm, and we should working on the support after its release. Will track the release in this issue. |
Any updates on this? It would be amazing if there was a way to auto-generate import statements somehow. Typescript support in ST3 has been absolutely incredible for me... having to scroll up to the top of each file to add missing imports is literally the one thing I wish could be improved. :) |
@zhengbli this would be a killer feature to add |
@zhengbli It has been released and is already working in Visual Studio Code. Would be great to have it in Sublime, too. |
Typescript 2.2 can automatically add missing import statements, would be great to have that integrated! |
Any news, guys? Really looking forward for this feature. |
Something new? I can pay for this plugin.. |
This would be a really nice feature. +1 |
+1... would be really great to have this 👍 |
Not really useful, doesn't seem to work with @angular modules or external libraries... :( |
sublime-import-helper will work with @angular/external libraries. I believe I had to modify the node path to get it working |
Any update on this feature? This will be a huge push for the plugin. +1 |
There is a LSP plugin for sublime by Tom Van Ommeren. Install it, and follow the instructions for installing JavaScript/Typescript language server. You will get smart autocompletion, error panel and much more for js/ts files. There is also support for other languages. When a class or symbol is not recognized it will offer you to import the symbol via the 'code actions'. If you have any problem setting it up, ping me :-) |
What's the latest on this after a couple years? VSCode does it just fine, would love if Sublime could too! (sick and tired of poor Electron perf). |
No one has submitted any PRs adding it to this extension, you're welcome to take a look? |
Ended up opting for neovim instead (able to get VSCode level of functionality without much fuss via this great article's suggestions if anyone's interested, i couldn't figure out and gave up on the Sublime LSP plugin above after struggling with it unfortunately) - but I hope someone ends up doing this to make the sublime community stronger :) |
I am not sure why I could not find any mention of this: I am really missing a feature to autocomplete on missing classes, e.g. when using Http from angular2/http, and given that angular2 is on the node_modules default path (or inside my tsconfig files configuration) I would expect the autocompletion to pick this definition up and add the corresponding import statement.
The text was updated successfully, but these errors were encountered: