-
Notifications
You must be signed in to change notification settings - Fork 56
Filter diagnostics #99
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
Comments
|
@nonara I know about ts-patch. I was using it's program replace feature. And I also know about the ability to alter diagnostics. |
The logic is compatible, but I'm not a maintainer, so I cant speak to whether a PR for that feature would be accepted. For what you're looking to do, you'd probably need to fork and migrate the logic or just use ts-patch. Good luck with it! |
Sorry, but filtering diagnostics is not goal for this project. Use native typescript plugin system instead. |
I need to filter diagnostic messages after code emit.
I managed to filter them in VSCode using language service plugin and now I am trying to suppress this errors in ttsc output.
Firstly, I tried to patch the emit method of program provided to the transformer factory, but it does not work.
I also can't patch any function like emitFilesAndReportErrorsAndGetExitStatus, possibly because ttypescript passes to tsc another ts instance.
Any thoughts?
The text was updated successfully, but these errors were encountered: