-
-
Notifications
You must be signed in to change notification settings - Fork 495
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: cleaned up workspaceError enum in biome_service/diagnostics.rs #4681
Conversation
- Removed ReportNotSerializable, DirtyWorkspace and CantReadDirectory as they were unused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Less code is always better.
FYI, GitHub only properly links the issue if you put "fixes #x" or "closes #x" in the PR description.
@@ -186,9 +174,6 @@ pub struct DirtyWorkspace; | |||
description = "The report can't be serialized, here's why: {reason}" | |||
) | |||
)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot to remove the directives
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ematipico . Appolgize for it; missed it due to oversight. I've made the change.
I've tagged the issue in the PR description. Do I need to reword it? |
@sikehish yes, using the words "closes #xxx" or "fixes #xxx`, GitHub will automatically close the issue once the PR is merged |
Thanks for the information! I've updated the PR message. I've also made the change, let me know if anything else needs to be changed :) |
The CI is failing. You need to format the project. Use |
Yup, completely forgot to format. Anything else that needs to be done? |
Summary
closes #4668
I have removed the following unused variants from the
WorkspaceError
enum:ReportNotSerializable
DirtyWorkspace
CantReadDirectory
The motivation behind these changes is to eliminate unused code, thereby reducing bloat and improving maintainability.