GPTutor / gptutor-extension

MIT License
41 stars 6 forks source link

Add Cadence as supported programming language #3

Closed jribbink closed 1 year ago

jribbink commented 1 year ago

Hey @RayHuang880301! Really like the extension and think it's a super cool idea 😎. Hoping to make a PR to add Cadence for the Flow Blockchain as a supported language.

I have tested it in a .cdc file and it appears to work well. Let me know if there's anything else you need me to add!

EasonC13 commented 1 year ago

Thank you for your help. Yet the program doesn't read src/media/example_prompt_config.json anymore, instead, you may check package.json to see how to customize the prompt for specific language.

In the future, requests to add language support should contribute to supportedProgrammingLanguages.ts.

jribbink commented 1 year ago

@EasonC13 I think the release today accidentally released an older version of the extension because it doesn't look like Cadence is supported (and when I look at the code locally when I install the v0.0.109, there "cadence" is not a supported language).

Hoping this can be fixed so this can be shared with the community 😄 . Thanks for your help!

EasonC13 commented 1 year ago

@jribbink I updated the code again in https://github.com/GPTutor/gptutor-extension/commit/930c0e7736ff18121560f139fd12411ff572433a

Now we don't need an array to manage the supported code language. GPTutor will be active in all Languages by default. Please try again with v0.0.110

Thank you!