-
Notifications
You must be signed in to change notification settings - Fork 3.7k
feat: add actions to reference files, directories and repo maps in IntelliJ Plugin #7253
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
gui/src/components/mainInput/TipTapEditor/useMainEditorWebviewListeners.ts
Show resolved
Hide resolved
|
Hello, @RomneyDa, could you please review it? |
|
@TyDunn, hello, could you check this one please? |
|
@vldF Thanks for the contribution! @RomneyDa I think we will want the right click actions in JetBrains to match what we are doing in VS Code with @uinstinct |
|
@TyDunn, hello! When I checked similar feature implementation few weeks ago, that kind of implementation was different: in VS Code we can add some file to the context only. My implementation is more useful because we can refer some file (or multiple files, or directory) by name which is useful for some kind of prompts |
|
@vldF I'm a big fan of the "add to chat" option but I think we should not add the repo map option, since the repo map provider requires indexing which is being deprecated I also think we should simplify the messaging to just be "addFilesToChat" or similar and not mix the tip-tap specific mention concept into messaging |
|
@RomneyDa If we are going to have second one, then I'd say we also have "Add to Edit", which would make it consistent with VS Code |
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.
@TyDunn input appreciated, then I'll adjust review to say
- simplify messaging to be "addToChat" and "addToEdit" (I think this might already exist using add higlighted code or similar)
- remove repo map option and replace with "Add to Edit" option
|
@vldF could you update the description/screenshot to reflect changes, or add a comment showing new interface? |
|
@RomneyDa, done. Also, I had reverted |
|
@RomneyDa, gentle reminder Also, could you please restart failed jobs, please? |
|
@vldF haven't forgot about this one! Need to pull and test. |
|
@vldF current state of the PR seems to mix add to chat and add to edit. The add to chat option calls the add to edit action, etc. Could you take a look? I would either remove add to edit and only have add to chat or make sure both work separately |
Yeah |
Sure, I'll do it tomorrow |
|
@RomneyDa, hello. It seems I'm confused in comments above. Could you please give me a short description of both |
|
@vldF agreed can be a bit confusing, in both Jetbrains VS Code there are two main actions for selected code:
I think I didn't realize that you were implementing Add to Chat and the only change needed is to change the naming throughout to be "Add to Chat" rather than Add to Edit. Does that sound right? |
1ca1960 to
bddae45
Compare
bddae45 to
f5bee4f
Compare
|
@RomneyDa, thank you. I have changed the naming in my code |
|
@RomneyDa, hello |
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.
@vldF thanks for the updates!
|
Tested, works great! |
|
🎉 This PR is included in version 1.27.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.24.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
This PR introduces an ability to reference files and directories in the Continue chat via the project view context action named
AddToEditAction. This is a shortcut, so, you can add files manually (via the Continue GUI) or add them with these actions.This PR also introduces
ContinueProjectViewPopUpMenuGroupactions group which is a wrapper forAddToEditAction. This group is needed because 1) it shows that this action is belong to Continue and 2) it is an extension point to the future actions like this one (both points are discussable)AI Code Review
@continue-general-reviewor@continue-detailed-reviewChecklist
Screen recording or screenshot
Video:
Screen.Recording.2025-09-09.at.11.10.52.mov
Summary by cubic
Add project view actions in the IntelliJ plugin to quickly insert file/folder mentions and repo maps into the Continue chat. Adds a new webview event to insert these mentions directly into the editor.