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

bug: It is incorrectly assumed that the user has installed typescript globally #15

Closed Drincann closed 1 year ago

Drincann commented 1 year ago

I realize that as long as I save an answer file, the status of the file will become complete, regardless of whether the implementation of the question is wrong.

After debugging, I found that because I have no reference to the tsc globally.

企业微信截图_1f4fecfa-8019-4eb0-94b6-e7730270643f
Drincann commented 1 year ago

I don't know what is the best practice of installing npm dependencies for users in the vscode plugins.

yrming commented 1 year ago

@Drincann When checking the status of each challenge, the tsc command is used. This requires typescript to be installed globally. I will explain this in the readme, or I will add a reminder when command not found. Meanwhile, if you have a better way, please let me know.