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

Improve TypeScript experience when dependencies are missing. #31812

Open
trusktr opened this issue Jun 5, 2019 · 2 comments
Open

Improve TypeScript experience when dependencies are missing. #31812

trusktr opened this issue Jun 5, 2019 · 2 comments
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript

Comments

@trusktr
Copy link

trusktr commented Jun 5, 2019

I was in a project, and forgot that I deleted node_modules (or forgot to npm install), and in this case I was seeing any all over the place, and was jumping myself to conclusions that something was wrong with TypeScript or VS Code.

It could be helpful if VS Code could suggest something like

Did you forget to install dependencies? Perhaps you should run npm install?

or similar.

@vscodebot vscodebot bot assigned mjbvz Jun 5, 2019
@mjbvz mjbvz transferred this issue from microsoft/vscode Jun 7, 2019
@mjbvz mjbvz removed their assignment Jun 7, 2019
@mjbvz
Copy link
Contributor

mjbvz commented Jun 7, 2019

@trusktr Were you writing JavaScript or TypeScript code when you hit this?


In terms of precedent for this suggestion, we do have a warning about installing @types packages:
Screen Shot 2019-06-06 at 8 40 15 PM

@RyanCavanaugh RyanCavanaugh added Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript labels Jun 13, 2019
@trusktr
Copy link
Author

trusktr commented Jun 18, 2019

I was writing TS. That message could indeed be helpful. Another case could be if node_modules is simply missing, it could suggest installing all project dependencies with npm install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants