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:
Okinea Dev
2025-07-08 15:29:27 +02:00
committed by GitHub
parent 735343b667
commit 7c641390eb
9 changed files with 35 additions and 18 deletions

View File

@@ -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),
);
});
}