fix(lsp): completions for private variables (#17220)

This commit is contained in:
Bartek Iwańczuk 2022-12-29 22:22:47 +01:00 committed by GitHub
parent ef5f8cd265
commit 218d7ab778
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 2 deletions

View file

@ -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,