@@ -273,8 +273,8 @@ mod tests {
273273 assert_complete_results (
274274 format ! ( "update {}" , QueryWithCursorPosition :: cursor_marker( ) ) . as_str ( ) ,
275275 vec ! [ CompletionAssertion :: LabelAndKind (
276- "public " . into( ) ,
277- CompletionItemKind :: Schema ,
276+ "coos " . into( ) ,
277+ CompletionItemKind :: Table ,
278278 ) ] ,
279279 None ,
280280 & pool,
@@ -354,10 +354,10 @@ mod tests {
354354
355355 assert_complete_results (
356356 format ! ( "delete from {}" , QueryWithCursorPosition :: cursor_marker( ) ) . as_str ( ) ,
357- vec ! [
358- CompletionAssertion :: LabelAndKind ( "public ". into( ) , CompletionItemKind :: Schema ) ,
359- CompletionAssertion :: LabelAndKind ( "coos" . into ( ) , CompletionItemKind :: Table ) ,
360- ] ,
357+ vec ! [ CompletionAssertion :: LabelAndKind (
358+ "coos ". into( ) ,
359+ CompletionItemKind :: Table ,
360+ ) ] ,
361361 None ,
362362 & pool,
363363 )
@@ -418,8 +418,13 @@ mod tests {
418418 )
419419 . as_str ( ) ,
420420 vec ! [
421- CompletionAssertion :: LabelAndKind ( "public" . into( ) , CompletionItemKind :: Schema ) ,
422421 CompletionAssertion :: LabelAndKind ( "auth" . into( ) , CompletionItemKind :: Schema ) ,
422+ CompletionAssertion :: LabelAndKind (
423+ "information_schema" . into( ) ,
424+ CompletionItemKind :: Schema ,
425+ ) ,
426+ CompletionAssertion :: LabelAndKind ( "pg_catalog" . into( ) , CompletionItemKind :: Schema ) ,
427+ CompletionAssertion :: LabelAndKind ( "pg_toast" . into( ) , CompletionItemKind :: Schema ) ,
423428 CompletionAssertion :: LabelAndKind ( "posts" . into( ) , CompletionItemKind :: Table ) , // self-join
424429 CompletionAssertion :: LabelAndKind ( "users" . into( ) , CompletionItemKind :: Table ) ,
425430 ] ,
@@ -454,7 +459,6 @@ mod tests {
454459 assert_complete_results (
455460 format ! ( "alter table {}" , QueryWithCursorPosition :: cursor_marker( ) ) . as_str ( ) ,
456461 vec ! [
457- CompletionAssertion :: LabelAndKind ( "public" . into( ) , CompletionItemKind :: Schema ) ,
458462 CompletionAssertion :: LabelAndKind ( "auth" . into( ) , CompletionItemKind :: Schema ) ,
459463 CompletionAssertion :: LabelAndKind ( "posts" . into( ) , CompletionItemKind :: Table ) ,
460464 CompletionAssertion :: LabelAndKind ( "users" . into( ) , CompletionItemKind :: Table ) ,
@@ -471,7 +475,6 @@ mod tests {
471475 )
472476 . as_str ( ) ,
473477 vec ! [
474- CompletionAssertion :: LabelAndKind ( "public" . into( ) , CompletionItemKind :: Schema ) ,
475478 CompletionAssertion :: LabelAndKind ( "auth" . into( ) , CompletionItemKind :: Schema ) ,
476479 CompletionAssertion :: LabelAndKind ( "posts" . into( ) , CompletionItemKind :: Table ) ,
477480 CompletionAssertion :: LabelAndKind ( "users" . into( ) , CompletionItemKind :: Table ) ,
@@ -484,7 +487,6 @@ mod tests {
484487 assert_complete_results (
485488 format ! ( "drop table {}" , QueryWithCursorPosition :: cursor_marker( ) ) . as_str ( ) ,
486489 vec ! [
487- CompletionAssertion :: LabelAndKind ( "public" . into( ) , CompletionItemKind :: Schema ) ,
488490 CompletionAssertion :: LabelAndKind ( "auth" . into( ) , CompletionItemKind :: Schema ) ,
489491 CompletionAssertion :: LabelAndKind ( "posts" . into( ) , CompletionItemKind :: Table ) ,
490492 CompletionAssertion :: LabelAndKind ( "users" . into( ) , CompletionItemKind :: Table ) ,
@@ -501,7 +503,6 @@ mod tests {
501503 )
502504 . as_str ( ) ,
503505 vec ! [
504- CompletionAssertion :: LabelAndKind ( "public" . into( ) , CompletionItemKind :: Schema ) ,
505506 CompletionAssertion :: LabelAndKind ( "auth" . into( ) , CompletionItemKind :: Schema ) ,
506507 CompletionAssertion :: LabelAndKind ( "posts" . into( ) , CompletionItemKind :: Table ) , // self-join
507508 CompletionAssertion :: LabelAndKind ( "users" . into( ) , CompletionItemKind :: Table ) ,
@@ -529,7 +530,6 @@ mod tests {
529530 assert_complete_results (
530531 format ! ( "insert into {}" , QueryWithCursorPosition :: cursor_marker( ) ) . as_str ( ) ,
531532 vec ! [
532- CompletionAssertion :: LabelAndKind ( "public" . into( ) , CompletionItemKind :: Schema ) ,
533533 CompletionAssertion :: LabelAndKind ( "auth" . into( ) , CompletionItemKind :: Schema ) ,
534534 CompletionAssertion :: LabelAndKind ( "users" . into( ) , CompletionItemKind :: Table ) ,
535535 ] ,
@@ -561,7 +561,6 @@ mod tests {
561561 )
562562 . as_str ( ) ,
563563 vec ! [
564- CompletionAssertion :: LabelAndKind ( "public" . into( ) , CompletionItemKind :: Schema ) ,
565564 CompletionAssertion :: LabelAndKind ( "auth" . into( ) , CompletionItemKind :: Schema ) ,
566565 CompletionAssertion :: LabelAndKind ( "users" . into( ) , CompletionItemKind :: Table ) ,
567566 ] ,
@@ -686,8 +685,14 @@ mod tests {
686685 )
687686 . as_str ( ) ,
688687 vec ! [
689- CompletionAssertion :: LabelAndKind ( "public" . into( ) , CompletionItemKind :: Schema ) ,
690688 CompletionAssertion :: LabelAndKind ( "auth" . into( ) , CompletionItemKind :: Schema ) ,
689+ CompletionAssertion :: LabelAndKind (
690+ "information_schema" . into( ) ,
691+ CompletionItemKind :: Schema ,
692+ ) ,
693+ CompletionAssertion :: LabelAndKind ( "pg_catalog" . into( ) , CompletionItemKind :: Schema ) ,
694+ CompletionAssertion :: LabelAndKind ( "pg_toast" . into( ) , CompletionItemKind :: Schema ) ,
695+ CompletionAssertion :: LabelAndKind ( "public" . into( ) , CompletionItemKind :: Schema ) ,
691696 ] ,
692697 None ,
693698 & pool,
0 commit comments