Improve the git diff preview from the file viewer
CI / check (push) Waiting to run

This commit is contained in:
2026-09-21 06:47:46 +02:00
parent a2d1c5df83
commit dbb7e40c6c
10 changed files with 98 additions and 221 deletions
+4 -1
View File
@@ -26,10 +26,13 @@ const rgPathPromise: Promise<string | null> = (async () => {
export interface ContentHit { no: number; ln: string; ix: number }
export interface ContentGroup { path: string; hits: ContentHit[] }
/** Always-excluded heavy/noise dirs, on top of gitignore + user excludes. */
/** Always-excluded heavy/noise dirs and files, on top of gitignore + user
* excludes. `.DS_Store` is here because `files.followGitignore` defaults to
* false, so rg runs with --no-ignore and would otherwise list it in the tree. */
const BASE_IGNORE = [
'node_modules', '.git', 'out', 'dist', 'build', '.cache',
'vendor', 'coverage', '.helder', '.next', '.nuxt', '.turbo', '.idea', '.vscode',
'.DS_Store',
]
const MAX_FILES = 400