github / github/CopilotForXcode

Copilot doesn't work well after manually edit code.

Offen
#559 5 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Swift
Sterne
6.3k
Forks
2k
Ø Merge
2 Min.
Gemergte PRs (30 T.)
2

Beschreibung

**Describe the bug**

Copilot always revert my edited code to previous code.

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

**Steps to reproduce**
1. Ask Copilot to change some code.
2. Manually change some code.
3. Ask Copilot to change some other code.

Copilot will do the task I ask, but always revert what I changed. Create new tab will be the same. Only quit and reopen will work.

It reason is because copilot always read it cache instead of the file in Xcode. Copilot knows it and it doesn't follow my instruction to read from Xcode. It answers but still using the cache.

**Screenshots**

**Logs**

**Additional context**

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.