Skip to content

Commit e291189

Browse files
use .load
1 parent dfce7b2 commit e291189

File tree

1 file changed

+1
-1
lines changed
  • crates/pg_workspace_new/src/workspace

1 file changed

+1
-1
lines changed

crates/pg_workspace_new/src/workspace/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ impl Workspace for WorkspaceServer {
425425
.expect("Range of statement should be defined.");
426426
let position = params.position - stmt_range.start();
427427

428-
let tree = self.tree_sitter.fetch(&statement.ref_);
428+
let tree = self.tree_sitter.load(&statement.ref_);
429429
let text = statement.text;
430430

431431
tracing::info!("Found the statement. We're looking for position {:?}. Statement Range {:?} to {:?}. Statement: {}", position, stmt_range.start(), stmt_range.end(), text);

0 commit comments

Comments
 (0)