Skip to content

Conversation

psteinroe
Copy link
Collaborator

Summary

This PR renames the entire project from "postgrestools" to "Postgres Language Server" with comprehensive updates across the codebase:

Rename all 34 crate directories from pgt_* to pgls_*
Update binary name from postgrestools to pgls
Change package structure from @postgrestools/* to @pgls/*
Update all Rust imports and dependencies throughout workspace
Change environment variables from PGT_* to PGLS_*
Update type definitions like PgTPath to PgLSPath
Change config file name from postgrestools.jsonc to postgres-language-server.jsonc
Update domain references from pgtools.dev to pg-language-server.com
Update all documentation, comments, and URLs with new branding

Test plan

  • All tests pass (just test)
  • All linting passes (just lint)
  • Code compiles successfully (cargo check)
  • Code formatting applied (just format)
  • Binary renaming verified
  • Package structure updated
  • Environment variables renamed
  • Configuration file references updated
  • Documentation and URLs updated

🤖 Generated with Claude Code

psteinroe and others added 7 commits September 24, 2025 08:20
Resolved conflict in packages/@pgls/cli/package.json:
- Kept renamed optional dependencies from @postgrestools/cli-* to @pgls/cli-*
- Added new "scripts" section with test command from main branch

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Updated release.yml to use pgls_cli instead of pgt_cli and pgls binary name
- Changed environment variable from PGT_VERSION to PGLS_VERSION
- Updated artifact names from postgrestools_* to pgls_*
- Fixed package paths from @postgrestools/* to @pgls/* in workflows
- Updated root package.json to use @pgls namespace
- Removed obsolete @PostgresTools test files from merge

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Updated stderr files in pgls_console tests to use pgls_console::markup\!
instead of pgt_console::markup\! after the crate rename.

This fixes the failing trybuild tests on macOS that were comparing
expected vs actual macro error messages.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Updated SQL query cache files (.sqlx) for new schema
- Regenerated docs/schema.json
- Generated workspace bindings (needs path update)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Fixed xtask_codegen to generate workspace.ts in the correct location:
packages/@pgls/backend-jsonrpc/src/workspace.ts instead of
packages/@postgrestools/backend-jsonrpc/src/workspace.ts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Applied rustfmt formatting to the codegen file after updating
the package path.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
All pgls_tokenizer test snapshots were regenerated to reflect the new crate naming after the rename from pgt_* to pgls_*. The snapshot files now correctly reference the renamed crate and all 28 tests are passing.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant