Skip to content

Commit 86e3828

Browse files
committed
fix(core): watch location only when vcs is present
1 parent 8d00a51 commit 86e3828

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/core/src/filesystem/location-watcher.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const layer = Layer.effect(
4646
.flatMap((item) => item.info.watcher?.ignore ?? [])
4747
const home = path.resolve(location.directory) === path.resolve(os.homedir())
4848

49-
if (!home) {
49+
if (!home && location.vcs) {
5050
yield* watcher
5151
.subscribe({
5252
path: location.directory,

0 commit comments

Comments
 (0)