Skip to content
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

[ES6] Auto imports with completion #22

Closed
micaelgallego opened this issue Mar 12, 2016 · 5 comments
Closed

[ES6] Auto imports with completion #22

micaelgallego opened this issue Mar 12, 2016 · 5 comments

Comments

@micaelgallego
Copy link

No description provided.

@angelozerr
Copy link
Owner

Could you give a sample please?

@micaelgallego
Copy link
Author

In Java, if you write "ArrayL" and press Ctrl+Space to trigger autocomplete, JDT suggest you "java.util.ArrayList" and if you select in the proposal, "ArrayList" is written to source code and the import is included in the compilation unit. In Typescript.java, if you try start writing "Fig" in a project with the class "Figure" (in the module "Figure.ts"), no suggestions appear. I suppose that this is a limitation of tsserver.

anim

@angelozerr
Copy link
Owner

@micaelgallego I have suggest this idea at microsoft/TypeScript#7849

@angelozerr
Copy link
Owner

It seems TypeScript 2.4 will provide this feature. See PR at microsoft/TypeScript#13921

@angelozerr angelozerr changed the title Autocomplete types not included in current scope with import autocomplete (as JDT does for Java) [ES6] Auto imports with completion May 10, 2017
angelozerr added a commit that referenced this issue Oct 19, 2017
angelozerr added a commit that referenced this issue Oct 19, 2017
@angelozerr angelozerr added this to the 1.4.0 milestone Oct 19, 2017
@angelozerr
Copy link
Owner

typescript@next (2.6.0) support that and I have implemented it:

autoimportdemo

See https://github.com/angelozerr/typescript.java/wiki/New-and-Noteworthy-1.4.0#completion-with-auto-import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants