From c2c59a947d03359b91ee360e92db09c134153829 Mon Sep 17 00:00:00 2001 From: psteinroe Date: Fri, 21 Mar 2025 10:00:13 +0100 Subject: [PATCH 1/2] chore: fix bug in codegen --- docs/codegen/src/default_configuration.rs | 2 +- docs/index.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/codegen/src/default_configuration.rs b/docs/codegen/src/default_configuration.rs index 2d20a91c..bda30d14 100644 --- a/docs/codegen/src/default_configuration.rs +++ b/docs/codegen/src/default_configuration.rs @@ -8,7 +8,7 @@ pub fn generate_default_configuration(docs_dir: &Path) -> anyhow::Result<()> { let index_path = docs_dir.join("index.md"); let printed_config = format!( - "\n```json\n{}```\n", + "\n```json\n{}\n```\n", serde_json::to_string_pretty(&PartialConfiguration::init())? ); diff --git a/docs/index.md b/docs/index.md index a2868a83..d8229047 100644 --- a/docs/index.md +++ b/docs/index.md @@ -64,7 +64,8 @@ After running the `init` command, you’ll have a `postgrestools.jsonc` file in "database": "postgres", "connTimeoutSecs": 10 } -}``` +} +``` [//]: # (END DEFAULT_CONFIGURATION) From 09d166793e8d0a60725f47519680412dd4db1b6f Mon Sep 17 00:00:00 2001 From: psteinroe Date: Fri, 21 Mar 2025 12:31:15 +0100 Subject: [PATCH 2/2] fix: docs --- docs/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/index.md b/docs/index.md index d8229047..9d186437 100644 --- a/docs/index.md +++ b/docs/index.md @@ -15,6 +15,7 @@ A collection of language tools and a Language Server Protocol (LSP) implementati This project provides a toolchain for Postgres development, built on Postgres' own parser `libpg_query` to ensure 100% syntax compatibility. It is built on a Server-Client architecture with a transport-agnostic design. This means all features can be accessed not only through the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/), but also through other interfaces like a CLI, HTTP APIs, or a WebAssembly module. The goal is to make all the great Postgres tooling out there as accessible as possible, and to build anything that is missing ourselves. Currently, the following features are implemented: + - Autocompletion - Syntax Error Highlighting - Type-checking (via `EXPLAIN` error insights)