getDiagnosticsForFile
Retrieve detailed diagnostic information (errors, warnings, hints) for a specific file using its complete URI format. Essential for AI-assisted code analysis and error resolution within the Trae IDE environment.
Instructions
获取指定文件的诊断信息。⚠️ 注意:需要使用完整的workspace URI格式,如 "file:///workspace/src/index.ts"。如果不确定URI格式,建议使用 getDiagnosticsForPath 工具。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fileUri | Yes | 完整的文件URI,必须使用 file:///workspace/ 开头的格式。示例:file:///workspace/src/index.ts |