Skip to content

Commit 6467eb7

Browse files
revert unnecessary changes
1 parent c2c0f78 commit 6467eb7

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pgls_workspace = { path = "./crates/pgls_workspace", version = "0.0
9494
pgls_workspace_macros = { path = "./crates/pgls_workspace_macros", version = "0.0.0" }
9595

9696
pgls_test_macros = { path = "./crates/pgls_test_macros" }
97-
pgls_test_utils = { path = "./crates/pgls_test_utils", version = "0.0.0" }
97+
pgls_test_utils = { path = "./crates/pgls_test_utils" }
9898

9999

100100
[profile.dev.package]

crates/pgls_completions/src/providers/columns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ mod tests {
800800
)
801801
.await;
802802

803-
// uses aliases
803+
// // uses aliases
804804
assert_complete_results(
805805
format!(
806806
"select name from instruments i join others o on i.z = o.a where i.{}",

crates/pgls_completions/src/providers/roles.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ mod tests {
194194

195195
assert_complete_results(
196196
format!(
197-
r#"grant select on table public.users to {}"#,
197+
r#"grant select
198+
on table public.users
199+
to {}"#,
198200
QueryWithCursorPosition::cursor_marker()
199201
)
200202
.as_str(),

crates/pgls_completions/src/providers/tables.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -182,27 +182,27 @@ mod tests {
182182
pool.execute(setup).await.unwrap();
183183

184184
let test_cases = vec![
185-
// (
186-
// format!(
187-
// "select * from u{}",
188-
// QueryWithCursorPosition::cursor_marker()
189-
// ),
190-
// "user_y",
191-
// ), // user_y is preferred alphanumerically
185+
(
186+
format!(
187+
"select * from u{}",
188+
QueryWithCursorPosition::cursor_marker()
189+
),
190+
"user_y",
191+
), // user_y is preferred alphanumerically
192192
(
193193
format!(
194194
"select * from private.u{}",
195195
QueryWithCursorPosition::cursor_marker()
196196
),
197197
"user_z",
198198
),
199-
// (
200-
// format!(
201-
// "select * from customer_support.u{}",
202-
// QueryWithCursorPosition::cursor_marker()
203-
// ),
204-
// "user_y",
205-
// ),
199+
(
200+
format!(
201+
"select * from customer_support.u{}",
202+
QueryWithCursorPosition::cursor_marker()
203+
),
204+
"user_y",
205+
),
206206
];
207207

208208
for (query, expected_label) in test_cases {

0 commit comments

Comments
 (0)