Skip to content

Commit 79b0fb9

Browse files
ok
1 parent 7731b68 commit 79b0fb9

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

crates/pgt_completions/src/providers/columns.rs

-25
Original file line numberDiff line numberDiff line change
@@ -327,29 +327,4 @@ mod tests {
327327
);
328328
}
329329
}
330-
331-
#[tokio::test]
332-
async fn uses_the_cols_against_supabase_db() {
333-
{
334-
let conn_str = "postgresql://postgres:[email protected]:54322/postgres";
335-
336-
let input_query = InputQuery::with_sanitized_whitespace(
337-
format!(r#"select {} from auth.users"#, CURSOR_POS).as_str(),
338-
);
339-
340-
let (tree, cache) = test_against_connection_string(conn_str, input_query.clone()).await;
341-
342-
let params = get_test_params(&tree, &cache, input_query);
343-
let results = complete(params);
344-
345-
println!("{:?}", results);
346-
347-
assert!(
348-
results
349-
.into_iter()
350-
.map(|item| item.description)
351-
.all(|desc| desc == "Table: auth.users")
352-
);
353-
}
354-
}
355330
}

crates/pgt_completions/src/relevance/filtering.rs

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ impl CompletionFilter<'_> {
3030
|| current_node_kind == "="
3131
|| current_node_kind == ","
3232
|| current_node_kind == "literal"
33+
|| current_node_kind == "ERROR"
3334
{
3435
return None;
3536
}

0 commit comments

Comments
 (0)