yrming / vscode-type-challenges

Take Type Challenges in VS Code
https://marketplace.visualstudio.com/items?itemName=YRM.type-challenges
MIT License
46 stars 12 forks source link

Completion status check is ignoring tsconfig.json #9

Closed RomanKornev closed 2 years ago

RomanKornev commented 2 years ago

Just noticed the new completion status feature in the sidebar. Thank you.

However, I noticed that if the project has a tsconfig.json file, there will be phantom status errors in the sidebar. This is due to the fact that when specifying input files in tsc, the tsconfig.json is ignored. https://github.com/yrming/vscode-type-challenges/blob/d7d3eab34625aff0bcdc2088a12b71654ee68c10/src/utils/questions.ts#L123 As a result, the user will be left wondering why there are errors in the sidebar when the problems bar doesn't have any.

image image

Is the correct way of using the extension to not have a tsconfig.json file at all?

yrming commented 2 years ago

@RomanKornev The default tsconfig.json has been added in the latest version, sorry for it took so long. Feel free to let me know if you have any questions.😃