getDiagnosticsForPath
Retrieve diagnostic information (errors, warnings, hints) for a specific file path using flexible path formats like relative paths or filenames. Enhances code analysis and issue identification in Trae IDE.
Instructions
🌟 推荐工具:根据文件路径获取诊断信息,支持灵活的路径匹配。可以使用相对路径、文件名等多种格式,比 getDiagnosticsForFile 更易用。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filePath | Yes | 文件路径,支持多种格式: - 相对路径:src/index.ts - 文件名:index.ts - 带目录的文件名:test/TestJava.java 示例:要查看 index.ts 文件的问题,使用 "src/index.ts" 或 "index.ts" |
Input Schema (JSON Schema)
{
"additionalProperties": false,
"properties": {
"filePath": {
"description": "文件路径,支持多种格式:\n- 相对路径:src/index.ts\n- 文件名:index.ts\n- 带目录的文件名:test/TestJava.java\n示例:要查看 index.ts 文件的问题,使用 \"src/index.ts\" 或 \"index.ts\"",
"type": "string"
}
},
"required": [
"filePath"
],
"type": "object"
}