Skip to main content

Module flycheck_to_proto

Module flycheck_to_proto 

Source
Expand description

This module provides the functionality needed to convert diagnostics from cargo check json format to the LSP diagnostic format.

StructsΒ§

MappedRustDiagnostic πŸ”’
SubDiagnostic πŸ”’

EnumsΒ§

MappedRustChildDiagnostic πŸ”’

FunctionsΒ§

clippy_code_description πŸ”’
diagnostic_related_information πŸ”’
Converts a secondary Rust span to a LSP related information
diagnostic_severity πŸ”’
Determines the LSP severity from a diagnostic
is_dummy_macro_file πŸ”’
Checks whether a file name is from macro invocation and does not refer to an actual file.
location πŸ”’
Converts a Rust span to a LSP location
map_rust_child_diagnostic πŸ”’
map_rust_diagnostic_to_lsp πŸ”’
Converts a Rust root diagnostic to LSP form
position πŸ”’
primary_location πŸ”’
Extracts a suitable β€œprimary” location from a rustc diagnostic.
resolve_path πŸ”’
Resolves paths applying any matching path prefix remappings, and then joining the path to the workspace root.
rustc_code_description πŸ”’