Description
Does this issue occur when all extensions are disabled?
Yes, the issue occurs even with all extensions disabled.
Bug Description:
GitHub Copilot in VS Code is failing to perform basic file operations (create and edit), reporting success despite no changes being made. Specifically:
File Creation (create_file): When attempting to create a file with content, the tool reports success, but the file is created with 0 bytes (empty).
File Editing (replace_string_in_file): Copilot claims to replace content within a file, but no actual changes are made.
UI Mode Switching: Unable to switch between Agent Mode and Ask Mode, leaving functionality inaccessible.
Unauthorized Actions: Copilot creates backups and new branches in Git without user permission, violating gitflow rules.
Steps to Reproduce:
Attempt to create a file with content using the create_file tool.
Observe the tool’s success message but verify that the file is empty (0 bytes).
Attempt to use the replace_string_in_file tool to update file content.
Notice the success message, but no changes have been made.
Try switching between Agent Mode and Ask Mode and notice the failure to switch.
(Optional) Verify unauthorized actions like backup creation and branch generation.
Expected Behavior:
File creation should generate files with the provided content.
File editing should modify the file as specified.
UI Mode switching should allow seamless switching between Agent and Ask modes.
Copilot should not perform any unauthorized actions like creating backups or generating branches without explicit user consent.
Actual Behavior:
Files are created with 0 bytes, and no file content is added.
File content remains unchanged despite success confirmation.
Cannot switch between modes, leaving Copilot unresponsive.
Copilot creates backups and new git branches without user consent.
System Information:
VS Code Version: Latest (June 2025)
GitHub Copilot Extension Version: Latest available
OS Version: macOS 24.5.0
Shell: zsh (default)
Workspace Type: Large monorepo (~200KB documentation, complex structure)
Steps Taken to Troubleshoot:
Verified using terminal commands that the files remain unchanged despite the success messages.
Reproduced the issue with all extensions disabled.
Attempted to use the code --disable-extensions flag with no change in behavior.
Additional Information:
Reproducibility: 100% reproducible on multiple attempts.
Business Impact: Critical development tasks are blocked, leading to significant loss of productivity and wasted paid credits on non-functional operations.
Logs & Screenshots:
(Attach any logs or screenshots that might help here.)
Severity:
Critical - Core functionality is broken, blocking essential workflows and wasting paid credits.
Thanks for your support in resolving this!