getDiagnosticsForPath
Retrieve diagnostic information (errors, warnings, hints) for a specific file path using flexible path formats, supporting relative paths or filenames for streamlined code analysis.
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" |