Closed MonicaOlejniczak closed 2 days ago
These changes map resolver errors in the rust resolver plugin to diagnostic errors:
to_diagnostic_error
CodeFrame
#[builder(setter(into))]
diagnostic_error!
File
JsonError
Note that hints and alternative modules have not been implemented
cargo test
↪️ Pull Request
These changes map resolver errors in the rust resolver plugin to diagnostic errors:
to_diagnostic_error
in the resolver plugin to map resolver errorsCodeFrame
from helper when only the file path is known#[builder(setter(into))]
to the diagnostic message, so string slices can be passed indiagnostic_error!
handling of simple messages, so that a diagnostic is actually returns instead of a plain anyhow errorFile
inJsonError
to avoid additional fs readingNote that hints and alternative modules have not been implemented
🚨 Test instructions
cargo test