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

Path-specific custom instructions not working in Agent mode

未關閉
#637 5 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
38/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
swift

研究方向

在使用 Copilot for Xcode 0.45.0、Xcode 26.1 以及將 applyTo 設定為 '/*.swift' 的 instruction 的新專案中重現此問題。比較 Agent 模式的行為與 applyTo '' 的情況,然後檢查 Xcode 自訂 instruction 文件是否涵蓋路徑特定的 instruction;當 Swift 檔案篩選器在 Agent 模式中受到遵循,且文件與支援的行為一致時,即表示完成。

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

描述

reviewed

When using Agent mode, the applyTo filter that can be setup for Path-specific custom copilot instructions doesn't work.
As far as I can tell, the only applyTo value that worked for me was **.

This doesn't seem to work, for example:

---
applyTo: '**/*.swift'
---
Instruction here

From what I can see, Path-specific custom instructions don't even appear in the documentation, under the Xcode tab, but they appear as a feature in the app.

Versions

  • Copilot for Xcode: 0.45.0
  • Xcode: 26.1
  • macOS: 26.1

Steps to reproduce

  1. Create a new project
  2. In Github Copilot settings, go to Advanced -> Under Custom Instructions -> Create
  3. Enter a file name
  4. In the prompted file, under the applyTo field, type something like '**/*.swift'
  5. Add some test instructions
  6. Open chat in a swift file, select agent mode.
  7. See the agent not considering the instructions given at step 5.
主要語言
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 摘要。