feat(lsp): implement quickfix for utf8 byte array is valid hex string warning

This commit is contained in:
rvcas
2023-11-28 21:02:15 -05:00
parent 858a9621fc
commit 1503b525b2
2 changed files with 34 additions and 1 deletions

View File

@@ -1618,8 +1618,8 @@ impl ExtraData for Warning {
| Warning::UnusedType { .. }
| Warning::UnusedVariable { .. }
| Warning::DiscardedLetAssignment { .. }
| Warning::Utf8ByteArrayIsValidHexString { .. }
| Warning::ValidatorInLibraryModule { .. } => None,
Warning::Utf8ByteArrayIsValidHexString { value, .. } => Some(value.clone()),
Warning::UnusedImportedModule { location, .. } => {
Some(format!("{},{}", false, location.start))
}