refactor: use InstanceState context in File service (#23015)

This commit is contained in:
Kit Langton
2026-04-17 22:08:57 -04:00
committed by GitHub
parent daaa1c7e26
commit 5fa1673341
2 changed files with 29 additions and 21 deletions

View File

@@ -96,7 +96,7 @@ export const Instance = {
if (AppFileSystem.contains(instance.directory, filepath)) return true
// Non-git projects set worktree to "/" which would match ANY absolute path.
// Skip worktree check in this case to preserve external_directory permissions.
if (Instance.worktree === "/") return false
if (instance.worktree === "/") return false
return AppFileSystem.contains(instance.worktree, filepath)
},
/**