yoavbls / pretty-ts-errors

🔵 Make TypeScript errors prettier and human-readable in VSCode 🎀
https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors
MIT License
13.27k stars 89 forks source link

CLI support please! #35

Open zodman opened 1 year ago

zodman commented 1 year ago

tsc --noEmit | pretty-ts-errors

zodman commented 1 year ago

Doing the cli you will kill #26 #21 and support others ...

aarondill commented 1 year ago

Perhaps a cli flag... for ease of use, the default would be this, but something like pretty-ts-errors --lsp would follow the LSP protocol, allowing 26, 21, and other ide requests.

Then again, you may get a one-size-fits-all senario, and perhaps this would be better to be in a separate application.

I personally prefer the LSP support than this, however, I can see the appeal here, and can support this provided it doesn't restrict the potential LSP support.

yoavbls commented 1 year ago

@zodman I'm not sure it will solve #26 and #21, but I agree it will be helpful and lsp it's the path for that. @johnsoncodehk already did a POC of that in volar. I'm working now on moving to a monorepo and publishing the core functions as packages. It'll allow the community to collaborate and support other platforms like Neovim, cli, etc

crrobinson14 commented 2 months ago

I would take any and all loss of functionality to be able to run this at the command line because I'm not a VSCode user. I have no oranges. :) If I get 10 oranges instead of 12 I will still enjoy that juice very much!