Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Oct 31, 2024
1 parent 9559ca0 commit 14d346b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/clarity-lsp/src/common/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ pub async fn process_notification(
match editor_state.try_write(|es| {
es.update_active_contract(&contract_location, &contract_source, false)
})? {
Ok(_result) => Ok(LspNotificationResponse::default()),
Ok(_result) => Ok(


LspNotificationResponse::default()),
Err(err) => Ok(LspNotificationResponse::error(&err)),
}
}
Expand Down
4 changes: 4 additions & 0 deletions components/clarity-lsp/src/common/requests/hover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ pub fn get_expression_documentation(
return Some(definition);
}

// let and match bindings
let expr = get_expression_at_position(position, expressions)?;
if let Some(expr_type) = analysis.type_map.clone()?.get_type(&expr) {
return Some(format!(
Expand All @@ -142,6 +143,9 @@ pub fn get_expression_documentation(
));
}

// contract-call?
// tuple get

None
}

Expand Down

0 comments on commit 14d346b

Please sign in to comment.