File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed
libs/remix-ui/editor/src/lib/inlineCompetionsLibs Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -54,25 +54,25 @@ export class CompletionCache {
54
54
const currentTime = Date . now ( ) ;
55
55
const isExpired = cached && currentTime - cached . timestamp >= this . cacheTimeout ;
56
56
57
- console . log ( '[CompletionCache] getCachedResult:' , {
58
- cacheKey : cacheKey . substring ( 0 , 50 ) + '...' ,
59
- hasCached : ! ! cached ,
60
- isExpired,
61
- age : cached ? currentTime - cached . timestamp : 0
62
- } ) ;
57
+ // console.log('[CompletionCache] getCachedResult:', {
58
+ // cacheKey: cacheKey.substring(0, 50) + '...',
59
+ // hasCached: !!cached,
60
+ // isExpired,
61
+ // age: cached ? currentTime - cached.timestamp : 0
62
+ // });
63
63
64
64
if ( cached && ! isExpired ) {
65
- console . log ( '[CompletionCache] Cache hit' ) ;
65
+ // console.log('[CompletionCache] Cache hit');
66
66
return cached . result ;
67
67
}
68
68
69
69
// Remove expired cache entry
70
70
if ( cached ) {
71
- console . log ( '[CompletionCache] Removing expired cache entry' ) ;
71
+ // console.log('[CompletionCache] Removing expired cache entry');
72
72
this . cache . delete ( cacheKey ) ;
73
73
}
74
74
75
- console . log ( '[CompletionCache] Cache miss' ) ;
75
+ // console.log('[CompletionCache] Cache miss');
76
76
return null ;
77
77
}
78
78
Original file line number Diff line number Diff line change 1
1
export { AdaptiveRateLimiter } from './AdaptiveRateLimiter' ;
2
2
export { SmartContextDetector } from './SmartContextDetector' ;
3
- export { CompletionCache } from './CompletionCache' ;
4
- export { UserBehaviorAnalytics } from './UserBehaviorAnalytics' ;
5
- export { QualityFilter } from './QualityFilter' ;
6
- export { UsageQuotaManager } from './UsageQuotaManager' ;
3
+ export { CompletionCache } from './CompletionCache' ;
You can’t perform that action at this time.
0 commit comments