File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
crates/pg_completions/src Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ pub(crate) struct CompletionContext<'a> {
6464}
6565
6666impl < ' a > CompletionContext < ' a > {
67- pub fn new ( params : & ' a CompletionParams < ' a > ) -> Self {
67+ pub fn new ( params : & ' a CompletionParams ) -> Self {
6868 let mut ctx = Self {
6969 tree : params. tree ,
7070 text : & params. text ,
@@ -81,8 +81,6 @@ impl<'a> CompletionContext<'a> {
8181 ctx. gather_tree_context ( ) ;
8282 ctx. gather_info_from_ts_queries ( ) ;
8383
84- dbg ! ( ctx. wrapping_statement_range) ;
85-
8684 ctx
8785 }
8886
@@ -95,9 +93,7 @@ impl<'a> CompletionContext<'a> {
9593 let stmt_range = self . wrapping_statement_range . as_ref ( ) ;
9694 let sql = self . text ;
9795
98- dbg ! ( sql) ;
99-
100- let mut executor = TreeSitterQueriesExecutor :: new ( tree. root_node ( ) , self . text ) ;
96+ let mut executor = TreeSitterQueriesExecutor :: new ( tree. root_node ( ) , sql) ;
10197
10298 executor. add_query_results :: < queries:: RelationMatch > ( ) ;
10399
You can’t perform that action at this time.
0 commit comments