Skip to content

Conversation

@deathbeam
Copy link
Collaborator

@deathbeam deathbeam commented Nov 17, 2024

Now contexts are defined in configuration with input and resolve functions. This allows for more flexible and extensible context system. It also makes the system more robust and easier to understand.

The changes include:

  • Add context inputs (with : after context) for additional parameters
  • Add proper model selection (with $ prefix)
  • Move context resolution logic to config.lua
  • Extract git diff to context.gitdiff
  • Simplify outline/files logic, make it more modular
  • Improve pattern matching for context/model/agent parsing
  • Add truncation for large selections

image

image

image

image

@deathbeam deathbeam added the enhancement New feature or request label Nov 17, 2024
@deathbeam deathbeam force-pushed the context-overhaul branch 5 times, most recently from 89e7cbe to 7b2af6b Compare November 17, 2024 18:16
Now contexts are defined in configuration with input and resolve functions. This
allows for more flexible and extensible context system. It also makes the system
more robust and easier to understand.

The changes include:
- Add context inputs (with `:` after context) for additional parameters
- Add proper model selection (with `$` prefix)
- Move context resolution logic to config.lua
- Extract git diff to context.gitdiff
- Simplify outline/files logic, make it more modular
- Improve pattern matching for context/model/agent parsing
- Add truncation for large selections

Signed-off-by: Tomas Slusny <[email protected]>
@deathbeam deathbeam merged commit e8a6afa into CopilotC-Nvim:canary Nov 17, 2024
1 check passed
@deathbeam deathbeam deleted the context-overhaul branch November 17, 2024 19:53
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.

1 participant