mirror of
https://github.com/SpaceManiac/SpacemanDMM.git
synced 2025-12-23 05:36:47 +00:00
Add the word 'on' to var/proc completion details
This commit is contained in:
parent
b3f77df6f6
commit
00c82e6346
1 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ static PROC_KEYWORDS: &[&str] = &[
|
|||
];
|
||||
|
||||
fn item_var(ty: TypeRef, name: &str, var: &TypeVar) -> CompletionItem {
|
||||
let mut detail = ty.pretty_path().to_owned();
|
||||
let mut detail = format!("on {}", ty.pretty_path());
|
||||
if let Some(ref decl) = var.declaration {
|
||||
if decl.var_type.flags.is_const() {
|
||||
if let Some(ref constant) = var.value.constant {
|
||||
|
|
@ -81,7 +81,7 @@ fn item_proc(ty: TypeRef, name: &str, proc: &TypeProc) -> CompletionItem {
|
|||
} else {
|
||||
CompletionItemKind::Method
|
||||
}),
|
||||
detail: Some(ty.pretty_path().to_owned()),
|
||||
detail: Some(format!("on {}", ty.pretty_path())),
|
||||
documentation: item_documentation(&proc.main_value().docs),
|
||||
..Default::default()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue