Skip to content
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

Trigger: QuickFix menu on a problem #31

Closed
cahaseler opened this issue Mar 27, 2023 · 7 comments
Closed

Trigger: QuickFix menu on a problem #31

cahaseler opened this issue Mar 27, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@cahaseler
Copy link

Describe the feature

Hi!

I wrote this over the weekend because taking the time to copy an error message is just too much work for me:

https://marketplace.visualstudio.com/items?itemName=haselerdev.aiquickfix

But - even GPT-4 isn't quite good enough to be consistently able to fix problems every time. I'd rather have the tool as a way to prompt Genie then decide if I like it or need to iterate. You interested in me doing a PR to add this?

@cahaseler cahaseler added the enhancement New feature or request label Mar 27, 2023
@cahaseler
Copy link
Author

Oh, I see that this github doesn't actually have the source code - but still, happy to help if you want it, or feel free to grab relevant code from my repo if you'd rahter incorporate it yourself.

@genieai-info
Copy link

@cahaseler this is interesting but correct we use this repo as a docs-only repository. Did you developed this extension to be a companion to Genie? Do you mind sharing a demo recording with us how it works?

@cahaseler
Copy link
Author

Sure, will record a video a little later. I developed it to fill a gap and to be used alongside Genie, or just as a standalone simple tool without all the complex functionality.

All it does is add a button to the little lightbulb "QuickFix" menu that appears on "problems" identified by linters/typescript - when you click it, it grabs the error message and the block of code around the error, and passes them to GPT, then writes back the result over the initial problem. It mostly works, but there's also times when I wish it would just use that menu as a prompt for Genie instead, because even GPT-4 isn't perfect.

I developed it because I found I was copy-pasting error messages from my problem list into the "ad-hoc" prompt for Genie a lot. And I wanted to see how easy it was to develop a vscode extension with GPT's help as a weekend project. :)

@genieai-info
Copy link

got it! It is a requested feature that sits in our planned list to enable the context menus for problems.

@cahaseler
Copy link
Author

cahaseler commented Mar 27, 2023 via email

@genieai-info
Copy link

@cahaseler thanks for your suggestion and your project. We implemented this in Genie now and credited your work in the Readme. Please check out v0.0.5 and let us know if it helps

@cahaseler
Copy link
Author

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants