Define 'ExtraData' trait for errors

This should allow passing some extra information to LSP diagnostic in order to provide quickfix actions, such as auto-imports.
This commit is contained in:
KtorZ
2023-10-20 17:14:10 +02:00
parent 41e26b216b
commit c4221730bf
4 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
pub trait ExtraData {
fn extra_data(&self) -> Option<String>;
}