Skip to content

Commit

Permalink
feat: prepare documentation hover
Browse files Browse the repository at this point in the history
  • Loading branch information
viddrobnic committed Jul 29, 2024
1 parent f477da9 commit 4c60604
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions language_server/src/analyze/document_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ pub struct ReferencesInfo {
pub references: Vec<Range>,
}

#[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<DefinitionInfo>,
pub references: LocationData<ReferencesInfo>,

pub documentation: LocationData<Documentation>,
}

impl DocumentInfo {
Expand Down

0 comments on commit 4c60604

Please sign in to comment.