diff --git a/core/context/providers/DiscordContextProvider.ts b/core/context/providers/DiscordContextProvider.ts index f341be6ab..a180c64a4 100644 --- a/core/context/providers/DiscordContextProvider.ts +++ b/core/context/providers/DiscordContextProvider.ts @@ -32,7 +32,7 @@ class DiscordContextProvider extends BaseContextProvider { static description: ContextProviderDescription = { title: "discord", displayTitle: "Discord", - description: "Reference Discord messages from a channel", + description: "Select a channel", type: "submenu", }; diff --git a/core/context/providers/RepoMapContextProvider.ts b/core/context/providers/RepoMapContextProvider.ts index ae7d92bf9..0805d341e 100644 --- a/core/context/providers/RepoMapContextProvider.ts +++ b/core/context/providers/RepoMapContextProvider.ts @@ -38,7 +38,10 @@ class RepoMapContextProvider extends BaseContextProvider { content: await generateRepoMap(extras.llm, extras.ide, { dirUris: query === ENTIRE_PROJECT_ITEM.id ? undefined : [query], outputRelativeUriPaths: true, - includeSignatures: false, + // Doesn't ALWAYS depend on indexing, so not setting dependsOnIndexing = true, just checking for it + includeSignatures: extras.config.disableIndexing + ? false + : (this.options?.includeSignatures ?? false), }), }, ]; diff --git a/docs/docs/customize/context-providers.md b/docs/docs/customize/context-providers.md index 6e4b8cd35..f28824000 100644 --- a/docs/docs/customize/context-providers.md +++ b/docs/docs/customize/context-providers.md @@ -263,11 +263,16 @@ Uses the top _n_ levels (defaulting to 3) of the call stack for that thread. Reference the outline of your codebase. +`includeSignatures` params can be used to include signatures for all files in the repo. Use with caution as will increase context size significantly. `includeSignatures` will not work if indexing is disabled. + ```json title="config.json" { "contextProviders": [ { - "name": "repo-map" + "name": "repo-map", + "params": { + "includeSignatures": false + } } ] } diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 28dd36c04..2f705d2d0 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -2060,8 +2060,7 @@ } } } - }, - "required": ["params"] + } } }, { @@ -2086,6 +2085,28 @@ } } }, + { + "if": { + "properties": { + "name": { + "enum": ["repo-map"] + } + } + }, + "then": { + "properties": { + "params": { + "properties": { + "includeSignatures": { + "type": "boolean", + "description": "Include message signatures from repo-map", + "default": false + } + } + } + } + } + }, { "if": { "properties": {