File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
crates/pgt_hover/src/hoverables Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -63,33 +63,15 @@ impl ContextualPriority for Column {
63
63
64
64
// high score if we match the specific alias or table being referenced in the cursor context
65
65
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
- =======
71
66
if table_or_alias. replace ( '"' , "" ) == self . table_name . as_str ( ) {
72
67
score += 250.0 ;
73
68
} else if let Some ( table_name) = ctx. get_mentioned_table_for_alias ( table_or_alias) {
74
- >>>>>>> e2826fb8214a11dd2ac22da770863fbbfe20c5da
75
69
if table_name == self . table_name . as_str ( ) {
76
70
score += 250.0 ;
77
71
}
78
72
}
79
73
}
80
74
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
- =======
93
75
if ctx
94
76
. get_mentioned_relations ( & Some ( self . schema_name . clone ( ) ) )
95
77
. is_some_and ( |t| t. contains ( & self . table_name ) )
@@ -100,7 +82,6 @@ impl ContextualPriority for Column {
100
82
. is_some_and ( |t| t. contains ( & self . table_name ) )
101
83
{
102
84
score += 100.0 ;
103
- >>>>>>> e2826fb8214a11dd2ac22da770863fbbfe20c5da
104
85
}
105
86
106
87
if self . schema_name == "public" && score == 0.0 {
You can’t perform that action at this time.
0 commit comments