Remove redundant tag type check
Co-authored-by: David Kleingeld <davidsk@zed.dev>
This commit is contained in:
parent
7c5738142a
commit
c44f9dfb17
1 changed files with 1 additions and 5 deletions
|
@ -332,11 +332,7 @@ pub fn update_inlay_link_and_hover_points(
|
||||||
{
|
{
|
||||||
let inlay_hint_cache = editor.inlay_hint_cache();
|
let inlay_hint_cache = editor.inlay_hint_cache();
|
||||||
let excerpt_id = hovered_hint.position.excerpt_id;
|
let excerpt_id = hovered_hint.position.excerpt_id;
|
||||||
|
if let Some(cached_hint) = inlay_hint_cache.hint_by_id(excerpt_id, hovered_hint.id) {
|
||||||
// Extract the hint ID from the inlay
|
|
||||||
if let InlayId::Hint(_hint_id) = hovered_hint.id
|
|
||||||
&& let Some(cached_hint) = inlay_hint_cache.hint_by_id(excerpt_id, hovered_hint.id)
|
|
||||||
{
|
|
||||||
// Check if we should process this hint for hover
|
// Check if we should process this hint for hover
|
||||||
let should_process_hint = match cached_hint.resolve_state {
|
let should_process_hint = match cached_hint.resolve_state {
|
||||||
ResolveState::CanResolve(_, _) => {
|
ResolveState::CanResolve(_, _) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue