()
| 21 | |
| 22 | const RECENT_REPOSITORIES = 'github1s-recent-repositories'; |
| 23 | export const getRecentRepositories = (): { name: string; timestamp: number }[] => { |
| 24 | return getExtensionContext().globalState.get(RECENT_REPOSITORIES) || []; |
| 25 | }; |
| 26 | |
| 27 | export const addRecentRepositories = (name: string, timestamp = 0) => { |
| 28 | const currentRecord = { name, timestamp: timestamp || Date.now() }; |
no test coverage detected