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

Should ignore node_modules @types declaration files #146

Open
jschuur opened this issue Jan 25, 2023 · 3 comments
Open

Should ignore node_modules @types declaration files #146

jschuur opened this issue Jan 25, 2023 · 3 comments

Comments

@jschuur
Copy link

jschuur commented Jan 25, 2023

Once I added new types via @types (AKA DefinitelyTyped) modules, I started to see all sorts of info entries under the VS Code Problems tab trying to give me tips on TypeScript features that I hadn't marked as learned yet:

CleanShot 2023-01-25 at 14 44 18@2x

Doesn't seem like something you'd want to see by default.

I also couldn't get rid of these via exclude or skipLibCheck.

@h-jennings
Copy link

Agreed, would be super useful to have an option to ignore files.

@jschuur
Copy link
Author

jschuur commented Jan 26, 2023

I went into the settings for now and did 'Hide All Tips' (and restarted VS Code) to clean up the Problems tab.

It's my first proper TypeScript project, I didn't want that big number there all the time ;)

@isimmons
Copy link

Same here if I ctrl+click to see a type myself. Then the extension parses the .d.ts file and shows me all kinds of info which would be cool if it would go away when I close the .d.ts file but instead, it freezes things. TS stops working completely if I'm using volar in a vue project. Things get slow when using regular TS extension in a React project. But in both cases the problems tab stays full after closing the d.ts file.

Maybe a setting to enable or disable for node_modules ?

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

No branches or pull requests

3 participants