File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
pgt_treesitter/src/context Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,6 @@ impl SchemaCache {
8989
9090 pub fn find_type ( & self , name : & str , schema : Option < & str > ) -> Option < & PostgresType > {
9191 let sanitized_name = Self :: sanitize_identifier ( name) ;
92- println ! ( "findng type… {}" , sanitized_name) ;
93- println ! ( "findng schema… {:#?}" , schema) ;
9492 self . types . iter ( ) . find ( |t| {
9593 t. name == sanitized_name
9694 && schema
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ impl<'a> TreesitterContext<'a> {
445445 if let Some ( txt) = content {
446446 let parts: Vec < & str > = txt. split ( '.' ) . collect ( ) ;
447447 // we do not want to set it if we're on the schema or alias node itself
448- let is_on_schema_node = start + parts[ 0 ] . len ( ) < self . position ;
448+ let is_on_schema_node = start + parts[ 0 ] . len ( ) >= self . position ;
449449 if parts. len ( ) == 2 && !is_on_schema_node {
450450 self . schema_or_alias_name = Some ( parts[ 0 ] . to_string ( ) ) ;
451451 }
You can’t perform that action at this time.
0 commit comments