(uris: string[])
| 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) { |
nothing calls this directly
no test coverage detected