GitHub Copilot file editing tools create empty files instead of writing content (PendingMigrationError) #167082
Replies: 3 comments 1 reply
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Same here |
Beta Was this translation helpful? Give feedback.
-
same situation using local VS Code |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Copilot Feature Area
Copilot Coding Agent
Body
Summary
GitHub Copilot's file editing tools (
create_file
,replace_string_in_file
) report success but only create empty files without writing the intended content. This appears to be related to aPendingMigrationError
about thenavigator
global variable.Environment
Steps to Reproduce
replace_string_in_file
toolExpected Behavior
Actual Behavior
Error Logs
Found this error in VS Code logs:
2025-07-22 10:28:01.707 [error] PendingMigrationError: navigator is now a global in nodejs, please see https://aka.ms/vscode-extensions/navigator for additional info on this error.
at get (file:///home/henry/.vscode-server/cli/servers/Stable-7adae6a56e34cb64d08899664b814cf620465925/server/out/vs/workbench/api/node/extensionHostProcess.js:356:6146)
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:344:48517
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:1:262
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:344:50910
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:1:262
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:344:51981
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:1:262
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:344:54167
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:1:262
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:351:2591
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:1:262
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:352:2671
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:1:262
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:352:9338
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:1:262
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:354:21442
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:1:262
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:354:25509
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:1:262
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:354:27007
at /home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:1:262
at Object. (/home/henry/.vscode-server/extensions/github.copilot-chat-0.29.1/dist/extension.js:2349:4556)
at Module._compile (node:internal/modules/cjs/loader:1730:14)
at Object..js (node:internal/modules/cjs/loader:1895:10)
at Module.load (node:internal/modules/cjs/loader:1465:32)
at Function. (node:internal/modules/cjs/loader:1282:12)
at e._load (file:///home/henry/.vscode-server/cli/servers/Stable-7adae6a56e34cb64d08899664b814cf620465925/server/out/vs/workbench/api/node/extensionHostProcess.js:356:5519)
at t._load (file:///home/henry/.vscode-server/cli/servers/Stable-7adae6a56e34cb64d08899664b814cf620465925/server/out/vs/workbench/api/node/extensionHostProcess.js:174:22697)
at r._load (file:///home/henry/.vscode-server/cli/servers/Stable-7adae6a56e34cb64d08899664b814cf620465925/server/out/vs/workbench/api/node/extensionHostProcess.js:166:25633)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module. (node:internal/modules/cjs/loader:1487:12)
at require (node:internal/modules/helpers:135:16)
at QG.Cb (file:///home/henry/.vscode-server/cli/servers/Stable-7adae6a56e34cb64d08899664b814cf620465925/server/out/vs/workbench/api/node/extensionHostProcess.js:205:1253)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Beta Was this translation helpful? Give feedback.
All reactions