mattpocock / ts-error-translator

VSCode extension to turn TypeScript errors into plain English
https://ts-error-translator.vercel.app
2.36k stars 91 forks source link

Setting: Disable all hints (blue underlines for hints to learn) without manually clicking "Mark as learned" #316

Open karlhorky opened 2 months ago

karlhorky commented 2 months ago

Hi @mattpocock! 👋 Hope you're well

I wanted to propose an extension setting to disable all hints (before they are dismissed with "Mark as Learned"), so that the decorations do not clutter our students' editors (but they still get the benefit of the error translation)

karlhorky commented 2 months ago

Workaround

Switch to Pretty TypeScript Errors instead:

mattpocock commented 2 months ago

Pretty sure we have this already under:

"totalTypeScript.hideAllTips": {
  "type": "boolean",
  "default": null
},
mattpocock commented 2 months ago

Although if you're struggling to find it, we should probably document it better.

karlhorky commented 2 months ago

Ah interesting! When I tried to show the extension settings, they were empty:

But doing this again now shows that there are indeed settings, probably something was not right before (maybe because it was disabled)

karlhorky commented 2 months ago

Although if you're struggling to find it, we should probably document it better.

Sounds good, sure. I'm accustomed to VS Code extensions having their settings in the docs:

  1. Should the extension have a short readme on the VS Code Marketplace page?
  2. And maybe also in the GitHub repo README.md?

The current "docs page" link goes to a sparse marketing page.