MCPcopy
hub / github.com/continuedev/continue / deleteFromConfig

Method deleteFromConfig

core/indexing/docs/DocsService.ts:1256–1275  ·  view source on GitHub ↗
(startUrl: string)

Source from the content-addressed store, hash-verified

1254 }
1255
1256 private deleteFromConfig(startUrl: string) {
1257 const doesDocExist = this.config.docs?.some(
1258 (doc) => doc.startUrl === startUrl,
1259 );
1260 if (doesDocExist) {
1261 editConfigFile(
1262 (config) => ({
1263 ...config,
1264 docs: config.docs?.filter((doc) => doc.startUrl !== startUrl) || [],
1265 }),
1266 (config) => ({
1267 ...config,
1268 docs:
1269 config.docs?.filter(
1270 (doc) => "startUrl" in doc && doc.startUrl !== startUrl,
1271 ) || [],
1272 }),
1273 );
1274 }
1275 }
1276
1277 private async deleteIndexes(startUrl: string) {
1278 await this.deleteEmbeddingsFromLance(startUrl);

Callers 1

deleteMethod · 0.95

Calls 1

editConfigFileFunction · 0.90

Tested by

no test coverage detected