-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
92 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
# OpenCtx Context Providers | ||
|
||
<p className="subtitle">Use additional context sources from outside of your code base by leveraging OpenCtx Providers.</p> | ||
<p className="subtitle">Use additional context sources from outside of your codebase by leveraging OpenCtx providers.</p> | ||
|
||
## Enable | ||
<Callout type="info">OpenCtx context providers are in the Experimental stage for all Cody users. Enterprise users can also use this, but with limited support. If you have feedback or questions, please visit our [support forum](https://community.sourcegraph.com/c/openctx/10).</Callout> | ||
|
||
This feature is available in the Cody VS Code extension. In the Cody Settings, check the box for **OpenCtx: enable**. This will enable OpenCtx. **There is no need to install the OpenCtx extension; Cody comes with OpenCtx built-in.** | ||
[OpenCtx](https://openctx.org/) is an open standard for bringing contextual info about code into your dev tools. Cody Free and Pro users can use OpenCtx providers to fetch and use context from the following sources: | ||
|
||
## Configuration | ||
- [Webpages](https://openctx.org/docs/providers/web) (via URL) | ||
- [Jira tickets](https://openctx.org/docs/providers/jira) | ||
- [Linear issues](https://openctx.org/docs/providers/linear-issues) | ||
- [Notion pages](https://openctx.org/docs/providers/notion) | ||
- [Google Docs](https://openctx.org/docs/providers/google-docs) | ||
- [Sourcegraph code search](https://openctx.org/docs/providers/sourcegraph-search) | ||
|
||
OpenCtx Providers are added via your `settings.json` file in VS Code. The configuration looks something like this: | ||
## Enable OpenCtx context providers | ||
|
||
<Callout type="note">OpenCtx context providers are only supported with Cody VS Code extension.</Callout> | ||
|
||
To try OpenCtx context providers with Cody, you must add to your VS Code extension settings. Go to Cody Settings, and check the box for **OpenCtx: Enable**. This will enable OpenCtx. You don't need the OpenCtx VS Code extension to use context fetching with OpenCtx. You should uninstall the extension before using this feature in Cody. | ||
|
||
For example, to use the [DevDocs provider](https://openctx.org/docs/providers/devdocs), add the following to your `settings.json`: | ||
|
||
```json | ||
"openctx.providers": { | ||
// ...other providers... | ||
"https://openctx.org/npm/@openctx/provider-devdocs": true, | ||
"https://openctx.org/npm/@openctx/provider-devdocs": { | ||
"urls": ["https://devdocs.io/go/", "https://devdocs.io/angular~16/"] | ||
} | ||
}, | ||
``` | ||
|
||
Please refer to the [context providers documentation](https://openctx.org/) for instructions and examples of configuring other providers such as Confluence, Jira, GitHub, Slack, Notion, Linear Issues, Linear Docs, Google Docs, and more. | ||
Please refer to the [context providers docs](https://openctx.org/) for instructions and examples of configuring other providers such as Confluence, Jira, GitHub, Slack, Notion, Linear Issues, Linear Docs, Google Docs, and more. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.