File tree Expand file tree Collapse file tree
crates/pgt_completions/src/providers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ pub(crate) fn find_matching_alias_for_table(
1717pub ( crate ) fn get_completion_text_with_schema_or_alias (
1818 ctx : & CompletionContext ,
1919 item_name : & str ,
20- item_schema_name : & str ,
20+ schema_or_alias_name : & str ,
2121) -> Option < CompletionText > {
22- if item_schema_name == "public" || ctx. schema_or_alias_name . is_some ( ) {
22+ if schema_or_alias_name == "public" || ctx. schema_or_alias_name . is_some ( ) {
2323 None
2424 } else {
2525 let node = ctx. node_under_cursor . unwrap ( ) ;
@@ -30,7 +30,7 @@ pub(crate) fn get_completion_text_with_schema_or_alias(
3030 ) ;
3131
3232 Some ( CompletionText {
33- text : format ! ( "{}.{}" , item_schema_name , item_name) ,
33+ text : format ! ( "{}.{}" , schema_or_alias_name , item_name) ,
3434 range,
3535 } )
3636 }
You can’t perform that action at this time.
0 commit comments