Skip to content

yas7010uv/plpgsql-lsp

 
 

Repository files navigation

PL/pgSQL Language Server

Marketplace Version GitHub license

Features

  • type/table/view/function/procedure name completion.
  • go to the type/table/view/function/procedure definition.
  • hover type/table/view/function/procedure definition.
  • syntax check.
  • static analysis check (when plpgsql_check use) .
  • Multi-root Workspace support.

Usage

  1. Set your database connection to VSCode settings.
  2. Open .pgsql file and edit your code!

preview

VSCode Settings Sample

{
  "plpgsqlLanguageServer.database": "your_database_name",
  "plpgsqlLanguageServer.user": "your_database_user",
  "plpgsqlLanguageServer.password": "your_database_password",
  "plpgsqlLanguageServer.definitionFiles": [
    // Support glob.
    "**/*.sql",
    "**/*.psql",
    "**/*.pgsql"
  ],
  // The supported extention types are ['*.pgsql', '*.psql'].
  // If you want to use this extension in '*.sql', add the following settings.
  "files.associations": {
    "*.sql": "postgres"
  }
}

Disable Specific File

If you want to disable the extension for a specific file, just add this comment your file top.

/* plpgsql-language-server:disable */

Or, if you want to disable only the validation feature, try this

/* plpgsql-language-server:disable validation */

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 97.2%
  • JavaScript 2.8%