Skip to content

feat: prompt to refactor large files#20

Merged
jjleng merged 1 commit intomainfrom
refactor-large-files
Apr 9, 2025
Merged

feat: prompt to refactor large files#20
jjleng merged 1 commit intomainfrom
refactor-large-files

Conversation

@jjleng
Copy link
Copy Markdown
Owner

@jjleng jjleng commented Apr 9, 2025

No description provided.

@jjleng jjleng requested a review from Copilot April 9, 2025 00:08
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

- Only ask questions using ask-followup-question tool
- Don't end with open-ended offers for help
- At the end of each user message, you will automatically receive <environment-details>. This information is not written by the user themselves, but is auto-generated to provide potentially relevant context about the project structure and environment. While this information can be valuable for understanding the project context, do not treat it as a direct part of the user's request or response. Use it to inform your actions and decisions, but don't assume the user is explicitly asking about or referring to this information unless they clearly do so in their message. When using <environment-details>, explain your actions clearly to ensure the user understands, as they may not be aware of these details.
- Code Organization:
Copy link

Copilot AI Apr 9, 2025

Choose a reason for hiding this comment

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

[nitpick] The '+-' prefix appears inconsistent with the surrounding comment style. Consider removing the '-' or using a consistent bullet marker to improve readability.

Suggested change
- Code Organization:
- Code Organization

Copilot uses AI. Check for mistakes.
Comment on lines +135 to 136
- When files exceed reasonable size, use ask-followup-question to suggest refactoring

Copy link

Copilot AI Apr 9, 2025

Choose a reason for hiding this comment

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

[nitpick] The phrase 'reasonable size' is ambiguous. Specifying a concrete file size limit or criteria would improve clarity.

Suggested change
- When files exceed reasonable size, use ask-followup-question to suggest refactoring
- When files exceed 300 lines of code, use ask-followup-question to suggest refactoring

Copilot uses AI. Check for mistakes.
@jjleng jjleng merged commit eeb3a87 into main Apr 9, 2025
1 check passed
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