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

オープン
#326 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
macos, swift
領域
desktop, tooling

調査の方向性

macOS 15.5 上の Xcode 16.3 で Copilot Chat を開き、「Add Context...」を選択して、Copilot for Xcode 0.36.0 で問題を再現します。Add Context のファイル選択フローを追跡し、2 つの開いているプロジェクトと結果を比較します。リストがシステムの長時間ハングなしに読み込まれ、workspace ファイルに限定されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

Logs
None outputted when doing this

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

主要言語
Swift
スター
6.3k
フォーク
2k
平均マージ
3日 21時間
マージ済み PR(30日)
2

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/CopilotForXcode のほかの issue

github/CopilotForXcode の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。