diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-23 12:38:46 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-23 12:38:46 -0700 |
commit | 986e3c57a0e3a9c71e6bff5488d1bcda80cbf4c6 (patch) | |
tree | f8b178237a928c1a7af687636579a6dc0a6c48d7 /docs | |
parent | 0ad32bd6dfaf96af0a2db82fb2b06c200e131e62 (diff) | |
download | sncontinue-986e3c57a0e3a9c71e6bff5488d1bcda80cbf4c6.tar.gz sncontinue-986e3c57a0e3a9c71e6bff5488d1bcda80cbf4c6.tar.bz2 sncontinue-986e3c57a0e3a9c71e6bff5488d1bcda80cbf4c6.zip |
documentation
Diffstat (limited to 'docs')
-rw-r--r-- | docs/docs/customization.md | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/docs/docs/customization.md b/docs/docs/customization.md index cd306cfe..9e04280d 100644 --- a/docs/docs/customization.md +++ b/docs/docs/customization.md @@ -79,7 +79,7 @@ When you type '@' in the Continue text box, it will display a dropdown of items ```python class GitHubIssuesContextProvider(ContextProvider): """ - The GitHubIssuesContextProvider is a ContextProvider that allows you to search GitHub Issues in a repo. + The GitHubIssuesContextProvider is a ContextProvider that allows you to search GitHub issues in a repo. """ title = "issues" @@ -93,7 +93,7 @@ class GitHubIssuesContextProvider(ContextProvider): repo = gh.get_repo(self.repo_name) issues = repo.get_issues().get_page(0) - items = [ContextItem( + return [ContextItem( content=issue.body, description=ContextItemDescription( name=f"Issue #{issue.number}", @@ -104,9 +104,6 @@ class GitHubIssuesContextProvider(ContextProvider): ) ) ) for issue in issues] - self.context_items = { - item.description.id.to_string(): item for item in items} - return items ``` It can then be set in the `ContinueConfig` like so: |