You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(Cocoon/Service): Fully adopt Effect-TS patterns in service layer and type conversions
- Implement centralized `Dispatcher` service with Layer-based dependencies to handle RPC routing between `Mountain` and Cocoon's internal handlers
- Convert `FileSystem` service methods to return structured `Effect` instances instead of raw promises, enabling proper error propagation (VSCodeFileSystemError)
- Align `TypeConverter` method naming with project conventions (`fromAPI` → `FromAPI`) and standardize variable names for consistency
- Streamline IPC server setup by consolidating `Dispatcher` module references and strengthening gRPC method type assertions
- Update `WorkspaceEdit` converters to handle versioning through `IVersionInformationProvider` interface, ensuring compatibility with `Mountain`'s document state management
This refactoring completes the transition of Cocoon's core services to pure Effect-TS patterns, critical for maintaining strict effect tracking across the VS Code API boundary. The changes directly support the 'Opening Files' and 'Saving Files' workflows by ensuring all filesystem operations are properly managed through Mountain's gRPC API.
0 commit comments