-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include initial context from OpenCtx providers. (#5433)
context: https://linear.app/sourcegraph/issue/PROD-264/one-pager-for-how-to-get-this-set-up-using-openctx We have [added](sourcegraph/openctx#199) `meta.mentions.autoInclude` property for OpenCtx providers. The providers which set that to `true` will be used to include the mentions they return as initial context items. We are also passing the active file uri and codebase names to the `mentions` function. ## Test plan Set the following as the vs code setting and see the hello world mention item chip appearing as the default context item. ```json "openctx.providers": { "https://openctx.org/npm/@openctx/provider-hello-world": true } ``` ## Changelog Include initial context from OpenCtx providers.
- Loading branch information
1 parent
a17d9ee
commit 2bc6daa
Showing
7 changed files
with
114 additions
and
61 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.