Description
Currently, diagnostic message and source are displayed in tooltips. However, the diagnostic code (e.g., reportUnusedImport) is missing.
Proposed Change
It would be helpful if the diagnostic rendering included the error code alongside the source.
Justification
- Searchability: Users can easily copy the specific error code (like
reportUnusedImport) to search for detailed documentation or solutions.
- Configuration: Users need these codes to configure lint rules (e.g., adding them to the
ignore list in pyproject.toml).
- IDE Standard: IDEs like VS Code follow this pattern by displaying both the source and the error code.
Desired format
Example:
Import "os" is not accessed
basedpyright(reportUnusedImport)
Description
Currently, diagnostic
messageandsourceare displayed in tooltips. However, the diagnosticcode(e.g.,reportUnusedImport) is missing.Proposed Change
It would be helpful if the diagnostic rendering included the error code alongside the source.
Justification
reportUnusedImport) to search for detailed documentation or solutions.ignorelist inpyproject.toml).Desired format
Example: