3 ms·
What might be going on here is that Copilot pulls code it thinks may be relevant from other files in your VS Code project. You have the original code open in an
by thorum 4y ago
What might be going on here is that Copilot pulls code it thinks may be relevant from other files in your VS Code project. You have the original code open in another tab, so Copilot uses it as a reference example. For evidence, see the generated comment under the Copilot completion: "Compare this snippet from Untitled-1.cpp" - that's the AI accidentally repeating the prompt it was given by Copilot.
- naikrovek 4y ago
- ianbutler 4y agoI just tested it myself, and I most certainly do not have his source open, and it reproduced his code verbatim with just the function header in a random test c file I created in the middle of a rust project I'm working on.
- thorum 4y agoAh ok.
- defasdefbe 4y agoDo you have Public Code Suggestions disabled? I tried in an empty editor and it wouldn't do it.
- stefan_ 4y agoSeems other people tried it? https://twitter.com/larrygritz/status/1581713252144517120 https://twitter.com/larrygritz/status/1581713252144517120