chore: add settings for vscode (#120)
* chore: update Prettier settings and add settings for vscode * rollback semi * fix: exclude `dist` from search and lock changes to some files * Added `search.exclude` to ignore `dist/**` during searches. * Configured `files.readonlyInclude` to lock changes to `dist/**`, `bun.lock`, and `package-lock.json`.
This commit is contained in:
@@ -6,14 +6,14 @@ import { resolve, basename } from "node:path";
|
||||
export function retry<T>(
|
||||
fn: () => Promise<T>,
|
||||
retries: number,
|
||||
timeout = 10000
|
||||
timeout = 10000,
|
||||
): Promise<T> {
|
||||
return fn().catch((err) => {
|
||||
if (retries <= 0) {
|
||||
throw err;
|
||||
}
|
||||
return new Promise((resolve) => setTimeout(resolve, timeout)).then(() =>
|
||||
retry(fn, retries - 1, timeout)
|
||||
retry(fn, retries - 1, timeout),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user