We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1003f82 commit 5b25305Copy full SHA for 5b25305
crates/pg_completions/src/relevance.rs
@@ -96,20 +96,10 @@ impl<'a> CompletionRelevance<'a> {
96
97
fn check_is_invocation(&mut self, ctx: &CompletionContext) {
98
self.score += match self.data {
99
- CompletionRelevanceData::Function(_) => {
100
- if ctx.is_invocation {
101
- 30
102
- } else {
103
- -10
104
- }
105
106
- _ => {
107
108
109
110
- 0
111
112
+ CompletionRelevanceData::Function(_) if ctx.is_invocation => 30,
+ CompletionRelevanceData::Function(_) if !ctx.is_invocation => -10,
+ _ if ctx.is_invocation => -10,
+ _ => 0,
113
};
114
}
115
0 commit comments