Skip to content

🧹 Refactor of the WorkspaceClient#1157

Merged
KaiTheRedNinja merged 5 commits intoCodeEditApp:refactor/workspace-clientfrom
matthijseikelenboom:refactor/workspace-client
Mar 19, 2023
Merged

🧹 Refactor of the WorkspaceClient#1157
KaiTheRedNinja merged 5 commits intoCodeEditApp:refactor/workspace-clientfrom
matthijseikelenboom:refactor/workspace-client

Conversation

@matthijseikelenboom
Copy link
Copy Markdown
Contributor

@matthijseikelenboom matthijseikelenboom commented Mar 16, 2023

Description

This PR refactors the old WorkspaceClient to a new CEWorkspaceFileManager and WorkspaceItem to CEWorkspaceFile. CEWorkspaceFile is no longer a inner class of CEWorkspaceFileManager.

NOTE: SwiftLint gives errors that the classes are too big, namely CEWorkspaceFile. The thing is that we are building a complex application with sometimes big classes, so should we up the limit? I'm personally not a fan of extending of our own internal classes.

NOTE 2: This PR will NOT be merged into main, because some functionality is broken. This will be fixed by @KaiTheRedNinja by implementing the AE navigation sidebar.

Related Issues

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

@matthijseikelenboom matthijseikelenboom changed the title Refactor/workspace client Refactor of the WorkspaceClient Mar 16, 2023
@matthijseikelenboom matthijseikelenboom changed the title Refactor of the WorkspaceClient 🧹 Refactor of the WorkspaceClient Mar 16, 2023
@lukepistrol
Copy link
Copy Markdown
Member

So, is this a complete replacement of the "old" WorkspaceClient? If so, it does not seem like the old implementation is deleted yet.

@matthijseikelenboom
Copy link
Copy Markdown
Contributor Author

@lukepistrol Oh yeah good catch, you're right

@matthijseikelenboom matthijseikelenboom force-pushed the refactor/workspace-client branch from c940687 to 01e7f48 Compare March 16, 2023 19:48
@KaiTheRedNinja
Copy link
Copy Markdown
Contributor

When I finish #1131, the branch that this will be merged into can be merged into main. Other than it breaking the sidebar (which will be fixed via #1131), looks good to me.

@KaiTheRedNinja KaiTheRedNinja merged commit a4a76a2 into CodeEditApp:refactor/workspace-client Mar 19, 2023
@KaiTheRedNinja KaiTheRedNinja mentioned this pull request Mar 26, 2023
10 tasks
matthijseikelenboom added a commit to matthijseikelenboom/CodeEdit that referenced this pull request Apr 28, 2023
austincondiff pushed a commit that referenced this pull request May 2, 2023
* 🧹 Refactor of the WorkspaceClient (#1157)

* Transfer project navigator (#1208)

* Transfer project navigator bottom

* Transfer TableViewCell abstractions

* Transfer over project manager outline view

* Get proj navigator sidebar working again

* Rename OutlineView -> ProjectNavigatorOutlineView for clarity

* Remove debug statements

* Fix incorrect comment headers

* Change old AE assets to new CE assets

* Add vscode-style toolbar

* Disable vertical sidebar by default

* Make deletion messages more descriptive

* Fix table view cell alignments

* Swiftlint fixes and code clean up

* Test fixes

---------

Co-authored-by: KaiTheRedNinja <88234730+KaiTheRedNinja@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants