Skip to content

adding the comment typing generation #5110

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

adding the comment typing generation #5110

wants to merge 6 commits into from

Conversation

olewicki
Copy link
Collaborator

No description provided.

Copy link
Member

@suhaibmujahid suhaibmujahid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @olewicki! Please take a look at my comments.

@@ -1376,6 +1491,8 @@ def run(self, patch: Patch) -> list[InlineComment] | None:
return_only_outputs=True,
)["text"]

raw_output = self._get_comment_type(raw_output)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move the process after running generate_processed_output(), then attach the types to the structured output instead of parsing the raw output twice.

"code_line": 458,
"comment" : "In the third code block, you are using `nsAutoStringN<256>` instead of `nsString`. This is a good change as `nsAutoStringN<256>` is more efficient for small strings. However, you should ensure that the size of `tempString` does not exceed 256 characters, as `nsAutoStringN<256>` has a fixed size."
"label": "Performance",
"label_justification": "Functional - Performance Optimization: Specific performance-focused refactoring."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a subcategory, not a justification.

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