VSCode Copilot 配置文件提示'未知工具'警告排查与解决
在使用 VSCode Copilot 时,不少开发者可能会注意到配置文件中出现了一些诊断警告。这些提示通常指向 prompts-diagnostics-provider,显示某些工具未被识别。

错误日志分析
典型的诊断信息如下:
{
"resource": "/d:/.vscode/User/globalStorage/github.copilot-chat/ask-agent/Ask.agent.md",
"owner": "prompts-diagnostics-provider",
"severity": 4,
"message": "未知工具 'github/issue_read'。",
"startLineNumber": 7,
"startColumn": 51,
"endLineNumber": 7,
"endColumn": 70
}
这类警告主要涉及以下工具:
github/issue_readgithub.vscode-pull-request-github/issue_fetchgithub.vscode-pull-request-github/activePullRequest
问题根源与解决方案
遇到这种情况,通常有两种原因,处理方式也各不相同。

