Skip to content

Commit 36bfd2d

Browse files
committed
fix: ci
1 parent d162213 commit 36bfd2d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

crates/pg_completions/src/test_helper.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ pub(crate) fn get_text_and_position(sql: &str) -> (usize, String) {
3535
// the cursor is to the left of the `CURSOR_POS`
3636
let position = sql
3737
.find(CURSOR_POS)
38-
.expect("Please insert the CURSOR_POS into your query.").saturating_sub(1);
38+
.expect("Please insert the CURSOR_POS into your query.")
39+
.saturating_sub(1);
3940

4041
let text = sql.replace(CURSOR_POS, "");
4142

crates/pg_lsp/src/session.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,7 @@ impl Session {
245245
let completion_items: Vec<CompletionItem> = pg_completions::complete(CompletionParams {
246246
position: offset - range.start() - TextSize::from(1),
247247
text: stmt.text.clone(),
248-
tree: ide
249-
.tree_sitter
250-
.tree(&stmt)
251-
.as_ref().map(|t| t.as_ref()),
248+
tree: ide.tree_sitter.tree(&stmt).as_ref().map(|t| t.as_ref()),
252249
schema: &schema_cache,
253250
})
254251
.into_iter()

0 commit comments

Comments
 (0)