Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: simplify constructor argument assignment VSCODE-441 #551

Merged
merged 4 commits into from
Jul 5, 2023

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Jul 3, 2023

VSCODE-441

In a good number of classes in the extension's source we pass a lot of arguments in the constructors. To make things easier to refactor and reason about, this pr updates those classes instead pass an object we deconstruct in these places.

A bit of drive-by test cleanup and refactoring as well with the goal of making things simpler. Still a whole lot we could do here, this should help a bit.

@alenakhineika
Copy link
Contributor

Was it something particular that was causing troubles to you that you decided to do this massive refactoring?

@Anemy
Copy link
Member Author

Anemy commented Jul 5, 2023

Was it something particular that was causing troubles to you that you decided to do this massive refactoring?

It was sitting with Himanshu looking at the the extension's code for the connectivity improvements that got me wanting to start improving the code quality here. Not really a good product reason 😆 . Sorry it's a large code diff out of the blue. Haven't really been in this code base for a while so I was thinking it'll be nice for the future if things are easier to work with, I introduced a lot of the wonky code practices in this project.

@Anemy Anemy merged commit 5a9a6b4 into main Jul 5, 2023
@Anemy Anemy deleted the VSCODE-441-refactor-constructor-argument-assigment branch July 5, 2023 13:22
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.

4 participants