Skip to content

feat(NES): implement Next Edit Suggestion in Tabby #4159

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

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Sma1lboy
Copy link
Collaborator

…ry tracking

  • Added support for next edit suggestion mode in completion requests.
  • Introduced new types: EditHistory, CurrentVersion, CursorPosition, and EditRange to manage edit tracking.
  • Updated CompletionRequest to include mode and edit history.
  • Enhanced CompletionService to handle next edit suggestions and generate appropriate prompts.
  • Refactored related components to accommodate new functionality.

…ry tracking

- Added support for next edit suggestion mode in completion requests.
- Introduced new types: EditHistory, CurrentVersion, CursorPosition, and EditRange to manage edit tracking.
- Updated CompletionRequest to include mode and edit history.
- Enhanced CompletionService to handle next edit suggestions and generate appropriate prompts.
- Refactored related components to accommodate new functionality.
…it history tracking

- Introduced InlineCompletionParams to support next edit suggestions.
- Added EditHistory and EditHistoryTracker to manage and track edit history.
- Enhanced CompletionProvider to handle next edit suggestion requests.
- Updated VSCode integration to trigger next edit suggestions and display results.
- Configured default settings for next edit suggestion feature in the configuration file.
… for improved edit tracking and suggestions

- Added support for smart context windows using folding ranges in EditHistoryTracker.
- Implemented error handling and logging improvements during document change tracking.
- Enhanced getEditHistory method to provide detailed edit history with context.
- Updated CompletionProvider to log detailed information about edit history and suggestions.
- Introduced configuration options for window strategy in EditHistoryTracker.
- Improved methods for managing original content and edit history updates.
… for block-level edit tracking

- Introduced BlockIdentifier and TrackedBlock interfaces for improved tracking of code blocks.
- Updated EditHistoryTracker to manage edit history at the block level, including initialization and diff tracking.
- Enhanced CompletionProvider to handle Inline NES completion requests and integrate with the new edit tracking system.
- Improved logging and error handling throughout the edit history management process.
- Refactored methods to streamline the management of original content and edits.
…th enhanced decorations and commands

- Added support for accepting NES completions through a new command.
- Introduced InlineNESCompletionFeature to handle NES requests and integrate with the language client.
- Enhanced InlineCompletionProvider to manage NES decorations and analyze differences for better user feedback.
- Updated package.json to include new command for accepting NES completions.
- Improved logging and error handling for NES completion processes.
- Refactored methods to streamline NES completion handling and visibility context management.
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.

1 participant