-
Notifications
You must be signed in to change notification settings - Fork 22
[LSP] Get new/modified functions inside a git commit #694
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
LGTM
This will be used by the lsp client with the post-commit hook to retrieve committed functions
PR Type
Enhancement
Description
Add support for diffing specific commit
Extract common function-inside-lines logic
Introduce getOptimizableFunctionsInCommit LSP
Refactor uncommitted diff integration
Diagram Walkthrough
File Walkthrough
git_utils.py
Support diff for a specific commitcodeflash/code_utils/git_utils.py
only_this_commitparameterfunctions_to_optimize.py
Extract common logic and add commit functionscodeflash/discovery/functions_to_optimize.py
get_functions_inside_lineshelperget_functions_inside_a_commitfunctionget_functions_within_git_diffreturnbeta.py
Add LSP feature for commit functionscodeflash/lsp/beta.py
getOptimizableFunctionsInCommitfeature_group_functions_by_filehelper