MCPcopy
hub / github.com/conwnet/github1s / getRecentRepoPickItems

Function getRecentRepoPickItems

extensions/github1s/src/commands/global.ts:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21const repoPickItemButtons = [{ iconPath: new vscode.ThemeIcon('close') }];
22
23const getRecentRepoPickItems = () =>
24 getRecentRepositories().map((record) => ({
25 label: record.name,
26 description: relativeTimeTo(record.timestamp),
27 buttons: repoPickItemButtons,
28 }));
29
30export const commandOpenRepository = async () => {
31 const quickPick = vscode.window.createQuickPick();

Callers 1

commandOpenRepositoryFunction · 0.85

Calls 2

getRecentRepositoriesFunction · 0.90
relativeTimeToFunction · 0.90

Tested by

no test coverage detected