github / github/CopilotForXcode

Can Copilot finally fix the long existing writing to wrong file issue?

Open
#589 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
6.3k
Forks
2k
Avg merge
2m
Merged PRs (30d)
2

Description

**Describe the bug**

When writing to more than one files, especially when refactoring codes, copilot for Xcode likely to writing to the wrong file. That means it overwrites content to a file should be written to another. This issue is so big. As we have to drop all changes and both times and tokens are wasted.

Currently, I have to switch Copilot CLI to refactor code, which has no issue. So I think if this issue is related to Xcode, you may be consider using the raw file on the disk instead of operate them through Xcode.

**Versions**
- Copilot for Xcode: 0.44.148
- Xcode: 26.0.1
- macOS: 26.0.1

**Steps to reproduce**
1.
2.

**Screenshots**

**Logs**

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.