github / github/CopilotForXcode

Copilot hangs and offers to add all files on my computer in Add Context

Open
#326 7 comments 0 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**
GitHub Copilot for xcode appears to be searching my entire computer when I try to add additional files as context, instead of the workspace, which I'd expect. This causes a massive hang and makes the entire system unresponsive for a second or two, then the copilot window for an additional more than 10 seconds.

**Versions**
- Copilot for Xcode: 0.36.0
- Xcode: 16.3 (16E140)
- macOS: 15.5 (24F74)

**Steps to reproduce**
1. Open Copilot Chat Window
2. Press "Add Context..." button

There's a huge hang, then the dropdown seems like it contains all files on my computer instead of just those in the workspace.

**Screenshots**

![Image](https://github.com/user-attachments/assets/d168623d-16eb-4a48-808c-a737a2263635)

**Logs**
None outputted when doing this

**Additional context**
I have two xcode projects open, both in `~/Developer/{projectname}`.

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.