Skip to content

Conversation

psteinroe
Copy link
Collaborator

@psteinroe psteinroe commented Sep 2, 2025

I think this is best reviewed locally via just serve-docs.

its time to improve here… will rewrite the documentation based on the new structure over the next days.

the goal is to show the features we support better. right now, they are hidden in the main index page. will add example gifs etc to the feature pages too.

progress

  • index
  • getting started
  • manual installation
  • configuration
  • features/editor_features
  • features/linting
  • features/plpgsql
  • features/syntax_diagnostics
  • features/type_checking
  • guides/check_migrations
  • guides/configure_databases
  • guides/continuous_integration
  • guides/ide_setup
  • guides/suppressions
  • guides/vcs_integration
  • reference/cli
  • reference/env_variables
  • reference/rules

@psteinroe psteinroe marked this pull request as draft September 2, 2025 07:14
@psteinroe psteinroe changed the title chore: restructure docs chore: rewrite docs Sep 3, 2025
@psteinroe psteinroe marked this pull request as ready for review September 9, 2025 06:08
Copy link
Collaborator

@juleswritescode juleswritescode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sehr sehr nice :)


## How it Works

The language server uses [libpg_query](https://github.com/pganalyze/libpg_query) to parse SQL statements, which is the actual Postgre parser packaged as a library. This ensures 100% compatibility with Postgres syntax.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The language server uses [libpg_query](https://github.com/pganalyze/libpg_query) to parse SQL statements, which is the actual Postgre parser packaged as a library. This ensures 100% compatibility with Postgres syntax.
The language server uses [libpg_query](https://github.com/pganalyze/libpg_query) to parse SQL statements, which is the actual Postgres parser packaged as a library. This ensures 100% compatibility with Postgres syntax.

## Features

- Always correct: Uses the same parser as Postgres itself for accurate syntax validation
- Named Parameter Support: Postgres does not support named parameters such as `:param` and `@param`. Since they are commonly used in ORMs and other tooling, we convert them to positional parameters (`$1`, `$2`) before parsing
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reads as though the feature is not supported, maybe:

"Named Parameter Support: We convert :param and @param to positional parameters ($1, $2) so the Postgres parsers understands them and the LSP works with ORMs and other tooling


## Error Information

Syntax errors include:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Syntax errors include:
Syntax errors include:

## Error Information

Syntax errors include:
- The exact error message from the Postgres parser
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- The exact error message from the Postgres parser
- The exact error message from the Postgres parser


Syntax errors include:
- The exact error message from the Postgres parser
- Source location when available (though `libpg_query` does not always provide precise positions)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Source location when available (though `libpg_query` does not always provide precise positions)
- Source location when available (though `libpg_query` does not always provide precise positions)

}
```

The `searchPath` supports:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok die liste hier ist auch nicht korrekt formiert, grundsätzlich müssen bei fast allen listen noch spaces hinzugefügt werden glaub ich

Screenshot 2025-09-09 at 13 38 04

- Glob patterns (e.g., `"app_*"` to match `app_users`, `app_products`, etc.)
- The order matters - schemas are searched in the order specified

If not configured, defaults to `["public"]`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If not configured, defaults to `["public"]`.
Even if not specified, the LSP will always search`"public"` in last position.

Comment on lines 3 to 4
The VCS (Version Control System) integration is meant to take advantage of additional features that only a VCS can provide. The integration is opt-in. You have to enable `vcs.enabled` and set `vcs.clientKind` in the configuration file:

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a quick sentence regarding what those features are?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

placeholder? :P

Comment on lines 53 to 55
>![Note]
> If you decide to use the daemon, you’re also responsible to restart/kill the process with the stop command, to avoid having ghost processes.
Caution
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

das formatiert nicht richtig

@psteinroe psteinroe merged commit 4e2cafd into main Sep 10, 2025
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.

2 participants