INNER CODE UNIT · TypeScript
enqueueSelectEntry
prisma/orm · apps/lsp-playground/src/client/main.ts:381
function enqueueSelectEntry(entry: FileEntry): void {
pendingSelection = pendingSelection
.then(
() => selectEntry(entry),
() => selectEntry(entry),
)
.catch((error: unknown) => {
console.error(error);
});
}
for (const entry of entries) {
entry.button.addEventListener('click', () => enqueueSelectEntry(entry));
}
// The first file opens on startup exactly as the single-schema playground
// always has (queued above, ahead of any click); every other file stays
// unmanaged until its own first selection.