mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-19 18:55:01 +00:00
feat: remove cast completion (#348)
* feat: remove cast completion * fix: update snapshot
This commit is contained in:
parent
00ec24e18f
commit
a3724bc87f
13 changed files with 77 additions and 181 deletions
|
@ -2,7 +2,7 @@ use once_cell::sync::OnceCell;
|
|||
|
||||
use crate::{
|
||||
adt::interner::Interned,
|
||||
analysis::{analyze_dyn_signature, find_definition, Ty},
|
||||
analysis::{analyze_dyn_signature, find_definition, },
|
||||
prelude::*,
|
||||
syntax::{get_check_target, get_deref_target, CheckTarget, ParamTarget},
|
||||
DocTooltip, LspParamInfo, SemanticRequest,
|
||||
|
@ -121,8 +121,7 @@ impl SemanticRequest for SignatureHelpRequest {
|
|||
label.push_str(&format!(
|
||||
"{}: {}",
|
||||
param.name,
|
||||
ty.or_else(|| param.base_type.as_ref())
|
||||
.unwrap_or(&Ty::Any)
|
||||
ty.unwrap_or(¶m.base_type)
|
||||
.describe()
|
||||
.as_deref()
|
||||
.unwrap_or("any")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue