Skip to content

Commit d10845b

Browse files
ok
1 parent 131dbad commit d10845b

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

crates/pgt_completions/src/context.rs

-6
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,9 @@ impl<'a> CompletionContext<'a> {
160160
is_in_error_node: false,
161161
};
162162

163-
println!("text: {}", ctx.text);
164-
165163
ctx.gather_tree_context();
166164
ctx.gather_info_from_ts_queries();
167165

168-
println!("sql: {}", ctx.text);
169-
println!("wrapping_clause_type: {:?}", ctx.wrapping_clause_type);
170-
println!("wrappping_node_kind: {:?}", ctx.wrapping_node_kind);
171-
172166
ctx
173167
}
174168

crates/pgt_completions/src/providers/tables.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ mod tests {
123123
"#;
124124

125125
let test_cases = vec![
126-
// (format!("select * from u{}", CURSOR_POS), "user_y"), // user_y is preferred alphanumerically
126+
(format!("select * from u{}", CURSOR_POS), "user_y"), // user_y is preferred alphanumerically
127127
(format!("select * from private.u{}", CURSOR_POS), "user_z"),
128-
// (
129-
// format!("select * from customer_support.u{}", CURSOR_POS),
130-
// "user_y",
131-
// ),
128+
(
129+
format!("select * from customer_support.u{}", CURSOR_POS),
130+
"user_y",
131+
),
132132
];
133133

134134
for (query, expected_label) in test_cases {

0 commit comments

Comments
 (0)