github / github/CopilotForXcode
Copilot didn't use selected lines in the context
Open
- Dominant language
- Swift
- Stars
- 6.3k
- Forks
- 2k
- Avg merge
- 2m
- Merged PRs (30d)
- 2
Description
**Describe the bug**
When I select code lines in Xcode and ask Copilot to refactor to struct, Copilot replies "You requested to refactor a type to a struct. However, you did not specify which class, view, or model you want to refactor."
**Versions**
- Copilot for Xcode: 0.43.140
- Xcode: 26.0.1
- macOS: 26.0
**Steps to reproduce**
1.
2.
**Screenshots**
**Logs**
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.