Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Completion while typing not working

未關閉
#616 3 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
macos, swift

研究方向

從 Core/Sources/KeyBindingManager/TabToAcceptSuggestion.swift 開始,這是 logs 中提到的唯一原始檔,並將回報的 streamChoices 與 ghostText 訊息和 completion 流程進行比較。使用列出的 Copilot for Xcode、Xcode 和 macOS 版本重現此問題;當輸入時會出現 completion 建議,且可以正常接受時,即表示完成。

由索引模型根據 Issue 內容生成。

描述

reviewed

Describe the bug

Versions

  • Copilot for Xcode: 0.44.151
  • Xcode: 26.2
  • macOS: 26.1

Completion while typing is not working, with the following logs

[2025-11-12T02:52:44.767Z] [info] [GitHubCopilot] [90407] window/logMessage: {
"message" : "[streamChoices] choice { text: '\n', index: 1, finish_reason: null }",
"type" : 4
}
[2025-11-12T02:52:44.767Z] [info] [GitHubCopilot] [90407] window/logMessage: {
"message" : "[streamChoices] choice { text: '\t', index: 1, finish_reason: 'stop' }",
"type" : 4
}
[2025-11-12T02:52:44.767Z] [info] [GitHubCopilot] [90407] window/logMessage: {
"message" : "[streamChoices] solution 1 returned. finish reason: [stop]",
"type" : 3
}
[2025-11-12T02:52:44.767Z] [info] [GitHubCopilot] [90407] window/logMessage: {
"message" : "[streamChoices] solution 1 details: finishOffset: [undefined]",
"type" : 4
}
[2025-11-12T02:52:44.769Z] [info] [GitHubCopilot] [90407] window/logMessage: {
"message" : "[streamChoices] chunk data: [DONE]\n\n",
"type" : 4
}
[2025-11-12T02:52:44.769Z] [info] [GitHubCopilot] [90407] window/logMessage: {
"message" : "[streamChoices] request done: headerRequestId: [de272066-308c-4643-9fb4-0b5478083229] model deployment ID: []",
"type" : 4
}
[2025-11-12T02:52:44.769Z] [info] [GitHubCopilot] [90407] window/logMessage: {
"message" : "[streamChoices] request stats: ChunkStats {\n choices: Map(3) {\n 0 => ChoiceStats { yieldedTokens: 3, seenTokens: 3 },\n 1 => ChoiceStats { yieldedTokens: 3, seenTokens: 3 },\n 2 => ChoiceStats { yieldedTokens: 3, seenTokens: 3 }\n }\n}",
"type" : 4
}
[2025-11-12T02:52:44.769Z] [info] [GitHubCopilot] [90407] window/logMessage: {
"message" : "[ghostText] Produced 0 results from cycling at -1 offset",
"type" : 4
}
[2025-11-12T02:52:44.769Z] [info] [GitHubCopilot] [90407] didChangeStatus: {
"kind" : "Normal",
"busy" : false
}
[2025-11-12T02:52:44.770Z] [info] [GitHubCopilot] [90407] window/logMessage: {
"message" : "[getCompletions] No ghostText produced -- empty: no completions in final result",
"type" : 4
}
[2025-11-12T02:52:50.241Z] [debug] [Service] [90407] TabToAcceptSuggestion: Deactivate.
file: /Users/runner/work/copilot-xcode/copilot-xcode/Core/Sources/KeyBindingManager/TabToAcceptSuggestion.swift
line: 15
function: TabToAcceptSuggestion
[2025-11-12T02:52:50.328Z] [info] [Service] [90407] Extension Service is not updated, no need to quit.

主要語言
Swift
星號
6.3k
分支
2k
平均合併
3 天 21 小時
30 天內合併 PR
2

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/CopilotForXcode 的其他 Issue

查看 github/CopilotForXcode 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。