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

[Feature Request] VSCode TypeScript extension exported things + auto import #34594

Closed
DevoidCoding opened this issue Sep 18, 2017 · 3 comments
Closed
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) typescript Typescript support issues

Comments

@DevoidCoding
Copy link

DevoidCoding commented Sep 18, 2017

The intellisense doesn't show the exported classes, functions, enums, ... in the actual workspace.
I know there's extension that allow to make that, but the native extension working with the great TSServer running will be amazing for that !
Also, the diagnostic logic of typescript already proprose to import something with the bulblight after we type the complete name of the exported thing, and it works like a charm with baseUrl and already imported section. Why don't propose an option to autoimport after hitting the completion key on the intellisense window ?

@vscodebot vscodebot bot added the typescript Typescript support issues label Sep 18, 2017
@mjbvz mjbvz added the info-needed Issue requires more information from poster label Sep 18, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Sep 18, 2017

Auto importing is tracked by #2635

Can you please explain the first issue more? Please include a small code example and description of the expected behavior

@DevoidCoding
Copy link
Author

Thank you for the issue, I'm gonna subscribe on it.

For the first one, here's an example :
MyClass.ts

export class MyClass {

}

index.ts

var myClass = new MyClass();

If we look at the IntelliSense here, we can't see "MyClass" : https://i.imgur.com/ZTMb1C6.png
But, if we import it, we can see it here : https://i.imgur.com/QSmEauG.png
The goal is to have the "MyClass" intellisense before importing the file, like that : https://i.imgur.com/9pEn6TV.png
For sure, not showing that this is an alias but a class that can be auto-imported.

@mjbvz mjbvz added *duplicate Issue identified as a duplicate of another issue(s) and removed info-needed Issue requires more information from poster labels Sep 19, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Sep 19, 2017

Thanks. Showing suggestions for MyClass in index.ts before the import is added is what #2635 is tracking

Closing a duplicate of #2635

@mjbvz mjbvz closed this as completed Sep 19, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) typescript Typescript support issues
Projects
None yet
Development

No branches or pull requests

2 participants