microsoft / vscode-copilot-release

Feedback on GitHub Copilot Chat UX in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat
Creative Commons Attribution 4.0 International
328 stars 31 forks source link

gitignore suggestion endless loop #1937

Open Mike-D-117 opened 1 week ago

Mike-D-117 commented 1 week ago

Type: Bug

The copilot tried to suggest the content of my gitignore and run into a loop on *.sln.ide

Extension version: 0.21.2 VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z) OS version: Windows_NT x64 10.0.22631 Modes:

ulugbekna commented 1 day ago

Thank you for filing this issue. Could you share the query that you sent to Copilot and where (inline or panel chat) ?

Mike-D-117 commented 1 day ago

I only used panel Chat and I used the following prompt: "ok lets define the gitignore. As it is a template and we never know which language the new project will have what should add here?" `General patterns .DS_Store Thumbs.db .log .tmp .swp .swo .bak .orig .rej .sublime-project .sublime-workspace .vscode/ .idea/ node_modules/ dist/ build/ coverage/ .env .env.local .env.development.local .env.test.local .env.production.local

macOS *.DS_Store

Windows Thumbs.db ehthumbs.db Desktop.ini

Linux *~

Node.js node_modules/ npm-debug.log yarn-error.log yarn-debug.log

Python pycache/ .py[cod] .pyo .pyd .pyd .Python env/ venv/ ENV/ venv.bak/ *.env

Java .class .jar .war .ear .nar .zip .tar.gz .rar .log .jmx .class .project .classpath .settings/ .factorypath .prefs .iml .iws *.ipr target/ build/

C# .dll .exe .pdb .mdb .log .userprefs .csproj.user .suo .user .userosscache .sln.docstates .sln.ide .sln.ide .sln.ide .sln.ide ... (over a hundred time sln.ide .sln.ide *.sln` Then it broke.

I just cropped the chat.json to be able to send it to you chat.json , so maybe I just deleted to much if a property is missing there.