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

feat(vscode): support attach file context to inline edit #3766

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhanba
Copy link
Contributor

@zhanba zhanba commented Jan 27, 2025

Feature

notice:

  • as input command now include file context + user command, only user command part store in command history. e.g for input @file1 explain it, only explain it stored in command history

@zhanba zhanba changed the title feat: support attach file context to inline edit feat(vscode): support attach file context to inline edit Jan 27, 2025
@zhanba zhanba force-pushed the feat-file-context-chat branch 2 times, most recently from 11e615b to 08cdcf0 Compare January 28, 2025 01:19
@zhanba zhanba force-pushed the feat-file-context-chat branch from 08cdcf0 to 9a06bf4 Compare January 28, 2025 07:30
@zhanba zhanba marked this pull request as ready for review January 28, 2025 07:44
@@ -189,13 +207,16 @@ export class ChatEditProvider implements Feature {
return userCommand;
case "{{languageId}}":
return document.languageId;
case "{{fileContext}}":
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wsxiaoys we should update prompt template to include {{fileContext}} part. Can you guide me on that?

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