-
Notifications
You must be signed in to change notification settings - Fork 58
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
Copilot Chat should directly apply suggestion as edited/new files #95
Comments
This shoul be a must, optional of course, but ready to roll at any moment |
I would also love that. Atm it's not able to do some things that intellisense can do, just because it doesn't know even the full open file.(for example "remove unused imports") |
Yeah, I thought it has a access to whole project, but seems it doesn't and also as I can see it's working using gpt-3.5 so it doesn't make sense to use it. ChatGPT plus will work better. |
I see no reason why I should use Github Copilot Chat, when I have exactly the same user experience on https://chat.openai.com/ It would be a game changer if I could ask it questions regarding the whole codebase. |
I do appreciate that it is able to access and understand GitHub repositories which allow easy integration but without it being able to read my active files I cannot have it work as efficiently as I need it to. It often forgets what I am referencing so it starts building new code. If it is using GPT-3 it is definitely falling behind however I have yet to see it make horrible mistakes like outdated includes which GPT does quite often. |
Focusing this to the gist of the initial comment, giving Copilot write access. |
From what I understand, today the copilot has the same capacity as ChatGPT with an increase of being able to see the current context of the file that is open. What I really wanted was to be able to give some commands like:
Copilot should already understand my source, my standards and create a list of new entity files, repository, models, controllers, routes etc and also modify more where necessary like permissions etc. It could even show a summary of what would be changed first (like a GIT diff for example) and have an "Apply" button.
After confirmation, the change should be applied. Very close to what Microsoft is doing with the copilot for their tools, but in the entire VSCode project. |
For me, it's not that important to have Copilot be able to edit the file system directly. I'd be happy with a more powerful version of the "Insert at Cursor" feature, which doesn't have file system access either, but changes code in the editor and lets you save it manually. For example, I write in the chat panel that I want to refactor the code in a specific way and Copilot responds with something like this:
It would, of course, be nice if I didn't have to manually save each open editor, but if "giving AI direct file system access" turns out to be a major blocker on this issue, I wouldn't mind pressing "Ctrl-K S" myself to do that 😁 |
I appreciate how this is coming along. Copilot can sometimes see the file that I have open. Not sure why it doesn't recognize it every time. Really appreciate what you are working towards here. Changing the world ain't easy. |
I was really hoping Copilot would help with tedious changes but it really doesn't. I made a commit that I want to apply in a dozen similar places. So I copied the diff into the chat, but it started simply printing what it thought the updated file would look like. First of all it ran out of message length, secondly it seems like I'd need to manually copy-paste the code and hope for the best. It seems like inline chat is able to make changes directly but only in a very local way. In this case this is slower than just using autocomplete. I look forward to the day I can tell copilot to just go and execute a bunch of mechanical changes across the workspace for me. |
I'm unsubscribing now. You had several months to convince me, but using Chat GPT 4 directly is much more direct and useful. I'm surprised by the low quality of this product. There is literally no advantage or reason to use this plugin. |
As clarification, GPT-4 is used for all chat panel questions since the latest release of Copilot Chat (0.10): #6 (comment) The main idea of this issue, applying chat panel code directly, is being worked on. Meanwhile I recommend Inline Chat to apply Copilot edits directly to a single file. |
@digitarald what I would suggest is adding some kind of button here TLDR: "Smart" pasting from the sidebar code blocks with the help of inline chat. |
This was not applied yet? |
Please let me know when github copilot can make bulk changes like "format code", "remove unused imports", "document functions", "add typing", etc. From what I understand from this issue, this can't be done yet, right? I'll wait until it can be done to buy the subscription. |
i agree, this would be a powerful thing, otherwise i would copy paste like i do with other ai sites |
Hey 👋 subscribers and readers: The July release added a smart action for applying Chat's codeblocks directly to the open file – not for new file or multiple files yet, so I am keeping this issue open, but as we polish the quality of this basic flow, we will explore those. Please try this out and report feedback (via new issues, please), helping us make this work rock-solid for y'all. |
One step further, think about the follwoing use case:
|
This is now done, please try out the Copilot Edits view and let us know what you think |
At a minimum we need to be able to give copilot access to the working directory and files.
I think many developers would like it to have write access as well as just read.
It could help speed up tasks such as making new reports when there are existing reports for copilot to use as a template.
Create new files based on what's being discussed etc.
I might be trying to jump a couple of years with the write access, but there's no reason it shouldn't be able to read what is right in front of it.
The text was updated successfully, but these errors were encountered: