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

Method refreshIfNotIgnored

core/core.ts:825–842  ·  view source on GitHub ↗
(uris: string[])

Source from the content-addressed store, hash-verified

823 // File changes - TODO - remove remaining logic for these from IDEs where possible
824 on("files/changed", this.handleFilesChanged.bind(this));
825 const refreshIfNotIgnored = async (uris: string[]) => {
826 const toRefresh: string[] = [];
827 for (const uri of uris) {
828 const ignore = await shouldIgnore(uri, this.ide);
829 if (!ignore) {
830 toRefresh.push(uri);
831 }
832 }
833 if (toRefresh.length > 0) {
834 this.messenger.send("refreshSubmenuItems", {
835 providers: ["file"],
836 });
837 const { config } = await this.configHandler.loadConfig();
838 if (config && !config.disableIndexing) {
839 await this.codeBaseIndexer.refreshCodebaseIndexFiles(toRefresh);
840 }
841 }
842 };
843
844 on("files/created", async ({ data }) => {
845 if (!data?.uris?.length) {

Callers

nothing calls this directly

Calls 5

shouldIgnoreFunction · 0.90
pushMethod · 0.65
sendMethod · 0.65
loadConfigMethod · 0.45

Tested by

no test coverage detected