🐛 Bug: suppressTypeErrors: program's compilerOptions are malformed #1532
Labels
status: accepting prs
Please, send a pull request to resolve this! 🙏
type: bug
Something isn't working :( 🐛
Bug Report Checklist
main
branch of the repository.Expected
Using
request.services.program.getCompilerOptions()
insuppressRemainingTypeIssues
would give correctly formatted compiler options.Actual
Instead it gives this
Additional Info
I think this same problem is in other parts of the code. I started debugging and I feel that there is are few places where different data structures are accidentally mixed.
I think it would be safer to keep
ts.CompilerOptions
as pure and not to try to addincludes
there. If we want full tsConfig, then we should name it so and not as compilerOptions. I think, this has been oversight in some refactoring. For me it looks like this once was working correctly, but later changes were trusting too much thatcompilerOptions
would mean pure compiler options etc.I think this is bigger refactor and not so straightforward. It's hard to know why there are some code duplication which seems to do same thing but is doing it differently. It's high possibility that this is intended but it's also possible that this has been oversight some point of time.
The text was updated successfully, but these errors were encountered: