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

Function removeFromFailedGlobalContext

core/indexing/docs/DocsService.ts:76–85  ·  view source on GitHub ↗
(
  siteIndexingConfig: SiteIndexingConfig,
)

Source from the content-addressed store, hash-verified

74};
75
76const removeFromFailedGlobalContext = (
77 siteIndexingConfig: SiteIndexingConfig,
78) => {
79 const globalContext = new GlobalContext();
80 const failedDocs = globalContext.get("failedDocs") ?? [];
81 const newFailedDocs = failedDocs.filter(
82 (d) => !docConfigsAreEqual(siteIndexingConfig, d),
83 );
84 globalContext.update("failedDocs", newFailedDocs);
85};
86
87const hasIndexingFailed = (siteIndexingConfig: SiteIndexingConfig) => {
88 const globalContext = new GlobalContext();

Callers 1

indexAndAddMethod · 0.85

Calls 3

getMethod · 0.95
updateMethod · 0.95
docConfigsAreEqualFunction · 0.85

Tested by

no test coverage detected