Showing the changes to apps/server/src/workspace/Layers/WorkspaceFileSystem.ts (1 of 19 files). Show all
Unified · Split
| @@ -11,7 +11,7 @@ import { · 10 unmodified lines | |||
| 11 | WorkspaceFileSystemError, | 11 | WorkspaceFileSystemError, |
| 12 | type WorkspaceFileSystemShape, | 12 | type WorkspaceFileSystemShape, |
| 13 | } from "../Services/WorkspaceFileSystem.ts"; | 13 | } from "../Services/WorkspaceFileSystem.ts"; |
| 14 | import { WorkspaceEntries } from "../Services/WorkspaceEntries.ts"; | 14 | import * as WorkspaceEntries from "../WorkspaceEntries.ts"; |
| 15 | import { WorkspacePaths } from "../Services/WorkspacePaths.ts"; | 15 | import { WorkspacePaths } from "../Services/WorkspacePaths.ts"; |
| 16 | 16 | ||
| 17 | const PROJECT_READ_FILE_MAX_BYTES = 1024 * 1024; | 17 | const PROJECT_READ_FILE_MAX_BYTES = 1024 * 1024; |
| @@ -20,7 +20,7 @@ export const makeWorkspaceFileSystem = Effect.gen(function* () { · 2 unmodified lines | |||
| 20 | const fileSystem = yield* FileSystem.FileSystem; | 20 | const fileSystem = yield* FileSystem.FileSystem; |
| 21 | const path = yield* Path.Path; | 21 | const path = yield* Path.Path; |
| 22 | const workspacePaths = yield* WorkspacePaths; | 22 | const workspacePaths = yield* WorkspacePaths; |
| 23 | const workspaceEntries = yield* WorkspaceEntries; | 23 | const workspaceEntries = yield* WorkspaceEntries.WorkspaceEntries; |
| 24 | 24 | ||
| 25 | const readFile: WorkspaceFileSystemShape["readFile"] = Effect.fn("WorkspaceFileSystem.readFile")( | 25 | const readFile: WorkspaceFileSystemShape["readFile"] = Effect.fn("WorkspaceFileSystem.readFile")( |
| 26 | function* (input) { | 26 | function* (input) { |
| @@ -114,7 +114,7 @@ export const makeWorkspaceFileSystem = Effect.gen(function* () { · 87 unmodified lines | |||
| 114 | }), | 114 | }), |
| 115 | ), | 115 | ), |
| 116 | ); | 116 | ); |
| 117 | yield* workspaceEntries.invalidate(input.cwd); | 117 | yield* workspaceEntries.refresh(input.cwd); |
| 118 | return { relativePath: target.relativePath }; | 118 | return { relativePath: target.relativePath }; |
| 119 | }); | 119 | }); |
| 120 | return { readFile, writeFile } satisfies WorkspaceFileSystemShape; | 120 | return { readFile, writeFile } satisfies WorkspaceFileSystemShape; |