-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
08cdcf0
to
9a06bf4
Compare
@@ -189,13 +207,16 @@ export class ChatEditProvider implements Feature { | |||
return userCommand; | |||
case "{{languageId}}": | |||
return document.languageId; | |||
case "{{fileContext}}": |
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.
@wsxiaoys we should update prompt template to include {{fileContext}}
part. Can you guide me on that?
Hi @zhanba, Thank you for the PR! The current design is good, but I have some concerns. Use the same or seperated quick pick widgetThe current design use the same quick pick widget for input commands and selecting files, but
So, I suggest using a new quick pick for file selection with pushing modal stack. How to trigger file selection
I suggest keeping plan 1 for now. The resolved data interface for the promise of showQuickPickI think the {
"command": "Fix the use of function foo according to @foo.ts",
"fileContexts": [{
"referer": "@foo.ts",
"uri": "file://path/to/foo.ts"
}]
} Let me know if you have any thoughts about these points. |
@icycodes thanks for your reply with so many details!
Use
I'm not sure if On On cc @wsxiaoys |
I will try to use two quick pick widget and see how it works. |
two quick pick demo: |
Thank you for the quick update. This demo aligns with my thoughts, it looks much better to me. |
add smooth file deletion: |
6609f06
to
e73ceea
Compare
a5fefec
to
e748c93
Compare
37b05ae
to
ecb169a
Compare
Before resolving the InlineEditComment, we can filter the context list by checking if the referer is still a substring included in the command. |
Otherwise LGTM. Please rebase on main and resolve confilicts. |
947f3c5
to
4c4be75
Compare
4c4be75
to
99a140f
Compare
Rebased and Fixed |
The next task is to update the chat prompt template to include file context. |
Feature
Need help