Remove EscapedName

This commit is contained in:
Ryo Yoshida 2022-08-01 15:19:49 +09:00
parent 53ec791dc6
commit 4322cf7f5b
No known key found for this signature in database
GPG key ID: E25698A930586171
11 changed files with 26 additions and 73 deletions

View file

@ -52,10 +52,10 @@ fn render(
let (call, escaped_call) = match &func_kind {
FuncKind::Method(_, Some(receiver)) => (
format!("{}.{}", receiver, &name).into(),
format!("{}.{}", receiver.escaped(), name.escaped()).into(),
format!("{}.{}", receiver.unescaped(), name.unescaped()).into(),
format!("{}.{}", receiver, name).into(),
),
_ => (name.to_smol_str(), name.escaped().to_smol_str()),
_ => (name.unescaped().to_smol_str(), name.to_smol_str()),
};
let mut item = CompletionItem::new(
if func.self_param(db).is_some() {