Skip to content

Commit c4bddf3

Browse files
rename param
1 parent 6a1b210 commit c4bddf3

File tree

1 file changed

+3
-3
lines changed
  • crates/pgt_completions/src/providers

1 file changed

+3
-3
lines changed

crates/pgt_completions/src/providers/helper.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ pub(crate) fn find_matching_alias_for_table(
1717
pub(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
}

0 commit comments

Comments
 (0)