@@ -58,6 +58,7 @@ it.effect("preserves either enrichment field when the other resolver fails", ()
5858 : Effect . succeed ( identity ( workspaceRoot ) ) ,
5959 } ) ,
6060 Layer . succeed ( ProjectFaviconResolver . ProjectFaviconResolver , {
61+ invalidate : ( ) => Effect . void ,
6162 resolvePath : ( workspaceRoot ) =>
6263 workspaceRoot === "/favicon-fails"
6364 ? Effect . fail (
@@ -109,6 +110,7 @@ it.effect("does not warn about favicons for workspace roots that no longer exist
109110 resolve : ( workspaceRoot ) => Effect . succeed ( identity ( workspaceRoot ) ) ,
110111 } ) ,
111112 Layer . succeed ( ProjectFaviconResolver . ProjectFaviconResolver , {
113+ invalidate : ( ) => Effect . void ,
112114 resolvePath : ( workspaceRoot ) =>
113115 Effect . fail (
114116 workspaceRoot === "/missing"
@@ -158,6 +160,7 @@ it.effect("publishes repository completion while favicon enrichment is still pen
158160 resolve : ( workspaceRoot ) => Effect . succeed ( identity ( workspaceRoot ) ) ,
159161 } ) ,
160162 Layer . succeed ( ProjectFaviconResolver . ProjectFaviconResolver , {
163+ invalidate : ( ) => Effect . void ,
161164 resolvePath : ( workspaceRoot ) =>
162165 Deferred . await ( releaseFavicon ) . pipe ( Effect . as ( `${ workspaceRoot } /favicon.svg` ) ) ,
163166 } ) ,
@@ -186,6 +189,7 @@ it.effect("keeps repository workers available when every favicon worker is hung"
186189 resolve : ( workspaceRoot ) => Effect . succeed ( identity ( workspaceRoot ) ) ,
187190 } ) ,
188191 Layer . succeed ( ProjectFaviconResolver . ProjectFaviconResolver , {
192+ invalidate : ( ) => Effect . void ,
189193 resolvePath : ( ) =>
190194 Effect . gen ( function * ( ) {
191195 const started = yield * Ref . updateAndGet ( faviconStarts , ( count ) => count + 1 ) ;
@@ -237,6 +241,7 @@ it.effect("getAvailable returns immediately while repository identity is still u
237241 ) ,
238242 } ) ,
239243 Layer . succeed ( ProjectFaviconResolver . ProjectFaviconResolver , {
244+ invalidate : ( ) => Effect . void ,
240245 resolvePath : ( workspaceRoot ) => Effect . succeed ( `${ workspaceRoot } /favicon.svg` ) ,
241246 } ) ,
242247 ) ;
@@ -285,6 +290,7 @@ it.effect(
285290 } ,
286291 } ) ,
287292 Layer . succeed ( ProjectFaviconResolver . ProjectFaviconResolver , {
293+ invalidate : ( ) => Effect . void ,
288294 resolvePath : ( ) => Effect . succeed ( null ) ,
289295 } ) ,
290296 ) ;
@@ -344,6 +350,7 @@ it.effect("deduplicates requests, bounds pending work, and reloads invalidated r
344350 } ) ,
345351 } ) ,
346352 Layer . succeed ( ProjectFaviconResolver . ProjectFaviconResolver , {
353+ invalidate : ( ) => Effect . void ,
347354 resolvePath : ( workspaceRoot ) => Effect . succeed ( `${ workspaceRoot } /favicon.svg` ) ,
348355 } ) ,
349356 ) ;
@@ -403,6 +410,7 @@ it.effect("rescans a favicon only after 15 minutes", () =>
403410 resolve : ( workspaceRoot ) => Effect . succeed ( identity ( workspaceRoot ) ) ,
404411 } ) ,
405412 Layer . succeed ( ProjectFaviconResolver . ProjectFaviconResolver , {
413+ invalidate : ( ) => Effect . void ,
406414 resolvePath : ( workspaceRoot ) =>
407415 Ref . updateAndGet ( faviconScans , ( count ) => count + 1 ) . pipe (
408416 Effect . map ( ( scan ) => `${ workspaceRoot } /favicon-${ scan } .svg` ) ,
@@ -451,6 +459,7 @@ it.effect(
451459 ) ,
452460 } ) ,
453461 Layer . succeed ( ProjectFaviconResolver . ProjectFaviconResolver , {
462+ invalidate : ( ) => Effect . void ,
454463 resolvePath : ( ) => Ref . update ( faviconScans , ( count ) => count + 1 ) . pipe ( Effect . as ( null ) ) ,
455464 } ) ,
456465 ) ;
0 commit comments