small optimization

Massimo Melina committed Apr 11, 2026 at 16:39 UTC 1b386c1eaa733fa6b1e6f9b14d7b7edfea1b31ab
1 file changed +1
src/api.plugins.ts
+1
@@ -133,6 +133,7 @@ const apis: ApiHandlers = {
133 try {
134 const already = Object.values(getFolder2repo()).filter(Boolean).map(String)
135 for await (const pl of await searchPlugins(text, { skipRepos: already })) {
136 + if (ctx.isAborted()) return
137 const repo = pl.repo || pl.id // .repo property can be more trustworthy in case github user renamed and left the previous link in 'repo'
138 const missing = getMissingDependencies(pl)
139 if (missing.length) pl.missing = missing