-
Notifications
You must be signed in to change notification settings - Fork 28
Improve example providers #148
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
Conversation
Co-authored-by: Kosta Ilinov <konstantin.ilyinov@gmail.com>
Co-authored-by: Kosta Ilinov <konstantin.ilyinov@gmail.com>
Co-authored-by: Kosta Ilinov <konstantin.ilyinov@gmail.com>
|
Ah, will update tests… |
keegancsmith
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
| 1. `pnpm install` | ||
| 1. `pnpm -C provider/hello-world bundle --watch` to automatically recompile on changes | ||
| 1. Run `echo file://$(pwd)/provider/hello-world/dist/bundle.js` and use that URL in your OpenCtx instead of `"https://openctx.org/npm/@openctx/provider-hello-world"` | ||
| 1. Reload your OpenCtx client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we mention testing with the cli as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's a good idea, will do. It's pretty hard to develop a provider without the cli tbh
|
I would love to see a working example for a provider implemented as a standalone vs code extension (or similar) communicating with Cody over http. Thank you. |
Updates the Hello World provider with an example of how to do
mentions, and adds a simple JSON API example tooFixes https://linear.app/sourcegraph/issue/CODY-2438/update-the-examples-on-openctxorg-to-show-mentions