From 4c60604222fe5068a444199fdfd935895d08208c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vid=20Drobni=C4=8D?= Date: Mon, 29 Jul 2024 07:40:58 +0200 Subject: [PATCH] feat: prepare documentation hover --- language_server/src/analyze/document_info.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/language_server/src/analyze/document_info.rs b/language_server/src/analyze/document_info.rs index f8e8b56..cfe7fee 100644 --- a/language_server/src/analyze/document_info.rs +++ b/language_server/src/analyze/document_info.rs @@ -12,10 +12,18 @@ pub struct ReferencesInfo { pub references: Vec, } +#[derive(Debug, PartialEq, Eq, Default)] +pub struct Documentation { + pub documentation: String, + pub definition: String, +} + #[derive(Debug, PartialEq, Eq, Default)] pub struct DocumentInfo { pub definitions: LocationData, pub references: LocationData, + + pub documentation: LocationData, } impl DocumentInfo {