From 812853143989ff967ac8ce1aeea17fce10039f06 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 11 Feb 2024 16:20:17 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20add=20json=20examples=20for=20ne?= =?UTF-8?q?w=20context=20providers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/customization/context-providers.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index dd7405826..d976eac8e 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -116,10 +116,18 @@ Type '@issue' to reference the conversation in a GitHub issue. Make sure to incl Type '@outline' to reference the outline of all currently open files. The outline of a files consists of only the function and class definitions in the file. Supported file extensions are '.js', '.mjs', '.go', '.c', '.cc', '.cs', '.cpp', '.el', '.ex', '.elm', '.java', '.ml', '.php', '.ql', '.rb', '.rs', '.ts' +```json +{ "name": "outline" } +``` + ### Code Highlights Type '@highlights' to reference the 'highlights' from all currently open files. The highlights are computed using Paul Gauthier's so-called ['repomap'](https://aider.chat/docs/repomap.html) technique in [Aider Chat](https://github.com/paul-gauthier/aider). Supported file extensions are the same as for '@Outline' (behind the scenes, we use the corresponding tree-sitter grammars for language parsing). +```json +{ "name": "highlights" } +``` + ### Requesting Context Providers Not seeing what you want? Create an issue [here](https://github.com/continuedev/continue/issues/new?assignees=TyDunn&labels=enhancement&projects=&template=feature-request-%F0%9F%92%AA.md&title=) to request a new ContextProvider.