mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 02:18:29 +00:00
fix(core): watch location only when vcs is present
This commit is contained in:
parent
8d00a51766
commit
86e3828da6
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ const layer = Layer.effect(
|
|||
.flatMap((item) => item.info.watcher?.ignore ?? [])
|
||||
const home = path.resolve(location.directory) === path.resolve(os.homedir())
|
||||
|
||||
if (!home) {
|
||||
if (!home && location.vcs) {
|
||||
yield* watcher
|
||||
.subscribe({
|
||||
path: location.directory,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue