-
Notifications
You must be signed in to change notification settings - Fork 22
[LSP] Create function optimizer during the optimization initialization step & remove optimization metadata logic #785
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
… & remove optimization metadata logic
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
…imization-init-and-cleanup
…ash-ai/codeflash into lsp/optimization-init-and-cleanup
Initialized the function optimizer during the initialization step mainly to get the original content of the helpers as they are stored in the extension to act as a common ancestor for performing a 3-way merge later in the extension,
also it makes more sense
PR Type
Enhancement
Description
Remove patch metadata JSON handling
Initialize function optimizer during init step
Return repo root in project init
Simplify patch creation API and usage
Diagram Walkthrough
File Walkthrough
git_worktree_utils.py
Simplify patch creation; remove metadata handlingcodeflash/code_utils/git_worktree_utils.py
beta.py
Rework LSP optimization flow and responsescodeflash/lsp/beta.py
server.py
Store and reset optimization init statecodeflash/lsp/server.py
optimizer.py
Adapt optimizer to new patch APIcodeflash/optimization/optimizer.py