repo map includesignatures param

This commit is contained in:
Dallin Romney 2025-01-08 21:35:29 +01:00
parent 75b26ae9c0
commit bedcfeebfa
4 changed files with 34 additions and 5 deletions

View file

@ -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",
};

View file

@ -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),
}),
},
];

View file

@ -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
}
}
]
}

View file

@ -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": {