Skip to content
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(context): optimize file loading with caching #635

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

deathbeam
Copy link
Collaborator

Refactor context.lua to introduce file caching mechanism and improve code organization around file handling. The main changes include:

  • Add file caching to avoid reprocessing unchanged files
  • Move outline generation logic into separate build_outline function
  • Consolidate embed type definitions into context.lua
  • Remove duplicate type definitions from copilot.lua
  • Optimize file loading with new get_file helper function

Closes #628

@deathbeam deathbeam added the enhancement New feature or request label Nov 28, 2024
@deathbeam deathbeam force-pushed the fix-debug-info branch 2 times, most recently from ccf270f to 48c0343 Compare November 28, 2024 20:39
Refactor context.lua to introduce file caching mechanism and improve code
organization around file handling. The main changes include:

- Add file caching to avoid reprocessing unchanged files
- Move outline generation logic into separate build_outline function
- Consolidate embed type definitions into context.lua
- Remove duplicate type definitions from copilot.lua
- Optimize file loading with new get_file helper function

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
@deathbeam deathbeam merged commit e0c4ca0 into CopilotC-Nvim:canary Nov 28, 2024
1 check passed
@deathbeam deathbeam deleted the fix-debug-info branch November 28, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add caching for contexts
1 participant