You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -103,8 +103,8 @@ The project uses a modular Rust workspace with crates prefixed with `pgls_`:
103
103
### TypeScript Packages
104
104
Located in `packages/` and `editors/`:
105
105
- VSCode extension in `editors/code/`
106
-
- Backend JSON-RPC bridge in `packages/@postgrestools/backend-jsonrpc/`
107
-
- Main TypeScript package in `packages/@postgrestools/postgrestools/`
106
+
- Backend JSON-RPC bridge in `packages/@postgres-language-server/backend-jsonrpc/` (legacy: `packages/@postgrestools/backend-jsonrpc/`)
107
+
- Main TypeScript package in `packages/@postgres-language-server/postgres-language-server/` (legacy: `packages/@postgrestools/postgrestools/`)
108
108
109
109
### Database Integration
110
110
The server connects to a Postgres database to build an in-memory schema cache containing tables, columns, functions, and type information. This enables accurate autocompletion and type checking.
@@ -150,6 +150,21 @@ Many parser structures are generated from PostgreSQL's protobuf definitions usin
150
150
### Database Schema
151
151
The `pgls_schema_cache` crate contains SQL queries in `src/queries/` that introspect the database schema to build the in-memory cache.
152
152
153
-
### Multi-Platform Support
153
+
### Code Refactoring Tools
154
+
The project has `ast-grep` available for advanced code search and refactoring tasks. ast-grep is a structural search/replace tool that understands code syntax, making it useful for:
155
+
- Renaming types, functions, or variables across the codebase
The project includes platform-specific allocators and build configurations for Windows, macOS, and Linux.
155
170
- Seeing the Treesitter tree for an SQL query can be helpful to debug and implement features. To do this, create a file with an SQL query, and run `just tree-print <file.sql>`.
0 commit comments