mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
fix(lsp): completions for private variables (#17220)
This commit is contained in:
parent
ef5f8cd265
commit
218d7ab778
2 changed files with 45 additions and 2 deletions
|
@ -2205,7 +2205,7 @@ impl CompletionEntry {
|
|||
return Some(insert_text.clone());
|
||||
}
|
||||
} else {
|
||||
return Some(self.name.replace('#', ""));
|
||||
return None;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4060,7 +4060,7 @@ mod tests {
|
|||
..Default::default()
|
||||
};
|
||||
let actual = fixture.get_filter_text();
|
||||
assert_eq!(actual, Some("abc".to_string()));
|
||||
assert_eq!(actual, None);
|
||||
|
||||
let fixture = CompletionEntry {
|
||||
kind: ScriptElementKind::MemberVariableElement,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue