We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a1b210 commit c4bddf3Copy full SHA for c4bddf3
crates/pgt_completions/src/providers/helper.rs
@@ -17,9 +17,9 @@ pub(crate) fn find_matching_alias_for_table(
17
pub(crate) fn get_completion_text_with_schema_or_alias(
18
ctx: &CompletionContext,
19
item_name: &str,
20
- item_schema_name: &str,
+ schema_or_alias_name: &str,
21
) -> Option<CompletionText> {
22
- if item_schema_name == "public" || ctx.schema_or_alias_name.is_some() {
+ if schema_or_alias_name == "public" || ctx.schema_or_alias_name.is_some() {
23
None
24
} else {
25
let node = ctx.node_under_cursor.unwrap();
@@ -30,7 +30,7 @@ pub(crate) fn get_completion_text_with_schema_or_alias(
30
);
31
32
Some(CompletionText {
33
- text: format!("{}.{}", item_schema_name, item_name),
+ text: format!("{}.{}", schema_or_alias_name, item_name),
34
range,
35
})
36
}
0 commit comments