github / github/CopilotForXcode

Copilot loses connection with Xcode

オープン
#13 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Swift
スター
6.3k
フォーク
2k
平均マージ
2分
マージ済み PR(30日)
2

説明

**Describe the bug**
Hi there!

I'm using Xcode the following way: screens split in 2 within the same Xcode window, using the "add editor on right" button.
For example, on the left, I have the unit tests file, and on the right, I have the file I'm testing.
When I switch the right side to the unit tests file, I'll likely lose copilot, it will stop suggesting things.
BTW, I'm losing connection from time to time, but other than this, I don't have real steps to help reproduce.

Being transparent here, this is an issue I had a lot with [intitni](https://github.com/intitni).

The best way to fix it with the non official extension was to hit a button ["Reactivate observations to Xcode"](https://github.com/intitni/CopilotForXcode/blob/35a955f766f180ba94db73c585649e0a0eb79079/Tool/Sources/XcodeInspector/XcodeInspector.swift#L258)
Before this feature, I had to relaunch the app and sometimes Xcode, so this shortcut saves some time.
It's a bug, but also a feature request :)

**Versions**
- Copilot for Xcode: 0.27.0
- Xcode: 15.4
- macOS: 14.7 (23H124)

**Steps to reproduce**
See description

**Logs**
In the following logs
- Copilot was not suggesting things to Xcode
- Cleared the logs
- Tried to type some code to trigger copilot (fails)
- Went to the menu icon (hit disable completions + the same for swift then hit enable)
- Tried to type some code to trigger copilot (fails)
- Quit Xcode
- Relaunched Xcode
- Tried to type some code to trigger copilot (Success)

[github-copilot-for-xcode.log](https://github.com/user-attachments/files/17586202/github-copilot-for-xcode.log)

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

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

評価

この issue はまだ評価されていません。

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

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