Skip to content

Commit 864b374

Browse files
pglsp: clone statement string
1 parent 896cd6d commit 864b374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/pg_lsp/src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl Session {
244244

245245
let completion_items: Vec<CompletionItem> = pg_completions::complete(CompletionParams {
246246
position: offset - range.start() - TextSize::from(1),
247-
text: &stmt.text,
247+
text: stmt.text.clone(),
248248
tree: ide
249249
.tree_sitter
250250
.tree(&stmt)

0 commit comments

Comments
 (0)