Skip to content

Commit 333f8b3

Browse files
mergie mergie
1 parent b735f0a commit 333f8b3

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

crates/pgt_hover/src/hoverables/column.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,33 +63,15 @@ impl ContextualPriority for Column {
6363

6464
// high score if we match the specific alias or table being referenced in the cursor context
6565
if let Some(table_or_alias) = ctx.schema_or_alias_name.as_ref() {
66-
<<<<<<< HEAD
67-
if table_or_alias == self.table_name.as_str() {
68-
score += 250.0;
69-
} else if let Some(table_name) = ctx.mentioned_table_aliases.get(table_or_alias) {
70-
=======
7166
if table_or_alias.replace('"', "") == self.table_name.as_str() {
7267
score += 250.0;
7368
} else if let Some(table_name) = ctx.get_mentioned_table_for_alias(table_or_alias) {
74-
>>>>>>> e2826fb8214a11dd2ac22da770863fbbfe20c5da
7569
if table_name == self.table_name.as_str() {
7670
score += 250.0;
7771
}
7872
}
7973
}
8074

81-
<<<<<<< HEAD
82-
// medium score if the current column maps to any of the query's mentioned
83-
// "(schema.)table" combinations
84-
for (schema_opt, tables) in &ctx.mentioned_relations {
85-
if tables.contains(&self.table_name) {
86-
if schema_opt.as_deref() == Some(&self.schema_name) {
87-
score += 150.0;
88-
} else {
89-
score += 100.0;
90-
}
91-
}
92-
=======
9375
if ctx
9476
.get_mentioned_relations(&Some(self.schema_name.clone()))
9577
.is_some_and(|t| t.contains(&self.table_name))
@@ -100,7 +82,6 @@ impl ContextualPriority for Column {
10082
.is_some_and(|t| t.contains(&self.table_name))
10183
{
10284
score += 100.0;
103-
>>>>>>> e2826fb8214a11dd2ac22da770863fbbfe20c5da
10485
}
10586

10687
if self.schema_name == "public" && score == 0.0 {

0 commit comments

Comments
 (0)