add project.name/icon

This commit is contained in:
Dax Raad
2025-12-09 13:55:39 -05:00
parent ad0c4c5d89
commit fb1b6c5e6b
5 changed files with 52 additions and 17 deletions

View File

@@ -8,6 +8,7 @@ import { Config } from "../config/config"
import { createWrapper } from "@parcel/watcher/wrapper"
import { lazy } from "@/util/lazy"
import type ParcelWatcher from "@parcel/watcher"
import { $ } from "bun"
declare const OPENCODE_LIBC: string | undefined
@@ -65,7 +66,7 @@ export namespace FileWatcher {
}),
)
const vcsDir = Instance.project.vcsDir
const vcsDir = await $`git rev-parse --git-dir`.quiet().nothrow().cwd(Instance.worktree).text()
if (vcsDir && !cfgIgnores.includes(".git") && !cfgIgnores.includes(vcsDir)) {
subs.push(
await watcher().subscribe(vcsDir, subscribe, {