-
Notifications
You must be signed in to change notification settings - Fork 1.3k
nes: feat: support next cursor line prediction #1238
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
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.
Pull Request Overview
This PR adds support for next cursor line prediction to the NES (Next Edit Suggestions) feature. When no suggestions are found during inline editing, the system now attempts to predict where the developer is most likely to make their next edit by analyzing the current context and prompting a specialized model.
- Introduces next cursor position prediction functionality with configurable model endpoints
- Refactors code organization by extracting a
CurrentDocument
class and utility functions - Updates prompt construction to support line numbers for better cursor prediction accuracy
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
src/platform/inlineEdits/common/statelessNextEditProvider.ts |
Added new cancellation reason for language context await phase |
src/platform/configuration/common/configurationService.ts |
Added configuration keys for cursor prediction feature (enabled flag, model name, URL, API key) |
src/extension/xtab/node/xtabProvider.ts |
Main implementation of cursor prediction logic, code refactoring, and integration with existing edit flow |
src/extension/xtab/common/xtabCurrentDocument.ts |
New utility class to encapsulate document state and cursor position information |
src/extension/xtab/common/promptCrafting.ts |
Refactored tag creation and extracted clipping functionality for reuse |
not well tested due to 404 from the model
5fa0b05
to
18c8547
Compare
not well tested due to 404 from the model