Skip to content

Commit 50f1a3a

Browse files
ack
1 parent 51e04c5 commit 50f1a3a

File tree

1 file changed

+58
-58
lines changed

1 file changed

+58
-58
lines changed

crates/pgls_completions/src/providers/columns.rs

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -659,64 +659,64 @@ mod tests {
659659
// We should prefer the instrument columns, even though they
660660
// are lower in the alphabet
661661

662-
// assert_complete_results(
663-
// format!(
664-
// "insert into instruments ({})",
665-
// QueryWithCursorPosition::cursor_marker()
666-
// )
667-
// .as_str(),
668-
// vec![
669-
// CompletionAssertion::Label("id".to_string()),
670-
// CompletionAssertion::Label("name".to_string()),
671-
// CompletionAssertion::Label("z".to_string()),
672-
// ],
673-
// None,
674-
// &pool,
675-
// )
676-
// .await;
677-
678-
// assert_complete_results(
679-
// format!(
680-
// "insert into instruments (id, {})",
681-
// QueryWithCursorPosition::cursor_marker()
682-
// )
683-
// .as_str(),
684-
// vec![
685-
// CompletionAssertion::Label("name".to_string()),
686-
// CompletionAssertion::Label("z".to_string()),
687-
// ],
688-
// None,
689-
// &pool,
690-
// )
691-
// .await;
692-
693-
// assert_complete_results(
694-
// format!(
695-
// "insert into instruments (id, {}, name)",
696-
// QueryWithCursorPosition::cursor_marker()
697-
// )
698-
// .as_str(),
699-
// vec![CompletionAssertion::Label("z".to_string())],
700-
// None,
701-
// &pool,
702-
// )
703-
// .await;
704-
705-
// // works with completed statement
706-
// assert_complete_results(
707-
// format!(
708-
// "insert into instruments (name, {}) values ('my_bass');",
709-
// QueryWithCursorPosition::cursor_marker()
710-
// )
711-
// .as_str(),
712-
// vec![
713-
// CompletionAssertion::Label("id".to_string()),
714-
// CompletionAssertion::Label("z".to_string()),
715-
// ],
716-
// None,
717-
// &pool,
718-
// )
719-
// .await;
662+
assert_complete_results(
663+
format!(
664+
"insert into instruments ({})",
665+
QueryWithCursorPosition::cursor_marker()
666+
)
667+
.as_str(),
668+
vec![
669+
CompletionAssertion::Label("id".to_string()),
670+
CompletionAssertion::Label("name".to_string()),
671+
CompletionAssertion::Label("z".to_string()),
672+
],
673+
None,
674+
&pool,
675+
)
676+
.await;
677+
678+
assert_complete_results(
679+
format!(
680+
"insert into instruments (id, {})",
681+
QueryWithCursorPosition::cursor_marker()
682+
)
683+
.as_str(),
684+
vec![
685+
CompletionAssertion::Label("name".to_string()),
686+
CompletionAssertion::Label("z".to_string()),
687+
],
688+
None,
689+
&pool,
690+
)
691+
.await;
692+
693+
assert_complete_results(
694+
format!(
695+
"insert into instruments (id, {}, name)",
696+
QueryWithCursorPosition::cursor_marker()
697+
)
698+
.as_str(),
699+
vec![CompletionAssertion::Label("z".to_string())],
700+
None,
701+
&pool,
702+
)
703+
.await;
704+
705+
// works with completed statement
706+
assert_complete_results(
707+
format!(
708+
"insert into instruments (name, {}) values ('my_bass');",
709+
QueryWithCursorPosition::cursor_marker()
710+
)
711+
.as_str(),
712+
vec![
713+
CompletionAssertion::Label("id".to_string()),
714+
CompletionAssertion::Label("z".to_string()),
715+
],
716+
None,
717+
&pool,
718+
)
719+
.await;
720720

721721
// no completions in the values list!
722722
assert_no_complete_results(

0 commit comments

Comments
 (0)