File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
crates/pgls_hover/src/hoverables Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1- u>se std:: fmt:: Write ;
1+ use std:: fmt:: Write ;
22
33use pgls_schema_cache:: { Column , SchemaCache } ;
44use pgls_treesitter:: TreesitterContext ;
@@ -74,14 +74,15 @@ impl ContextualPriority for Column {
7474 let mut score = 0.0 ;
7575
7676 // high score if we match the specific alias or table being referenced in the cursor context
77-
7877
7978 if let Some ( table_or_alias) = ctx. tail_qualifier_sanitized ( ) {
80- let table = ctx. get_mentioned_table_for_alias ( & table_or_alias) . unwrap_or ( & table_or_alias) ;
79+ let table = ctx
80+ . get_mentioned_table_for_alias ( & table_or_alias)
81+ . unwrap_or ( & table_or_alias) ;
8182
8283 if table == self . table_name . as_str ( ) {
8384 score += 250.0 ;
84- }
85+ }
8586
8687 if let Some ( schema) = ctx. head_qualifier_sanitized ( ) {
8788 if schema == self . schema_name . as_str ( ) {
You can’t perform that action at this time.
0 commit comments