refactor: replace Filesystem util with AppFileSystem service (#20127)

This commit is contained in:
Kit Langton
2026-03-30 21:48:28 +00:00
committed by GitHub
parent 48e97b47af
commit e6f6f7aff1
8 changed files with 76 additions and 91 deletions
+1 -1
View File
@@ -541,7 +541,7 @@ export namespace File {
const exists = yield* appFs.existsSafe(full)
if (!exists) return { type: "text" as const, content: "" }
const mimeType = Filesystem.mimeType(full)
const mimeType = AppFileSystem.mimeType(full)
const encode = knownText ? false : shouldEncode(mimeType)
if (encode && !isImage(mimeType)) return { type: "binary" as const, content: "", mimeType }