github / github/CopilotForXcode

Copilot loses connection with Xcode

未關閉
#13 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Swift
星號
6.3k
分支
2k
平均合併
2 分鐘
30 天內合併 PR
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 摘要。