Skip to content

Conversation

MarcoCarnevali
Copy link
Collaborator

@MarcoCarnevali MarcoCarnevali commented Mar 16, 2022

Context

This PR would introduce a modularization to CodeEdit. I've created a local Swift Package (inside the CodeEditModules folder) which would contain all our module targets. As an example I've built a WorkspaceClient which is mockable client that gives the ability to retrieve the list of files in a given directory. This target has a testTarget too.

Architecturing the app in this way it would help us building the app in a more dynamic and easy way. Each target can be built independently.
Building clients in a composable way would give us the ability to mock each module easily.
For example a simple mock I've created is the .empty one, let's say we want to test an empty workspace we can simply replace the .default initialization on our main app with the empty one!

Note: The logic for retrieving the list of files is a re-implementation of the already-built Workspace, I haven't changed the actual logic. The test introduced is just a simple test we might/should add more tests.

@MarcoCarnevali MarcoCarnevali force-pushed the modules-and-client branch 2 times, most recently from c9171ea to 58e2239 Compare March 16, 2022 18:05
@MarcoCarnevali MarcoCarnevali marked this pull request as ready for review March 16, 2022 18:07
@MarcoCarnevali MarcoCarnevali changed the title [WIP] Swift Package + WorkspaceClient module Swift Package + WorkspaceClient module Mar 16, 2022
@austincondiff
Copy link
Collaborator

Please resolve conflicts.

@MarcoCarnevali
Copy link
Collaborator Author

Please resolve conflicts.

@austincondiff should be done now!

@austincondiff austincondiff merged commit 1118522 into CodeEditApp:main Mar 16, 2022
xinix909 pushed a commit to xinix909/CodeTransfer that referenced this pull request Sep 7, 2024
[feat]: Added Bash language support
xinix909 pushed a commit to xinix909/CodeTransfer that referenced this pull request Sep 7, 2024
…ditApp#14)

* Separate Cursor Updates, Fix Focus Issues

* Linter

* Update TextSelectionManagerTests.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants