Below is a series of steps for developing and releasing the extension.
- Install the recommended VSCode extensions (inside
extensions.json
). - Install
npm
itself. - Run
npm
. - In VSCode, hit
F5
.
When code is changed, you'll need to refresh with > Reload Window
. Until then, any code changes are not reflected in the development window.
- Prepare database.
cd $THIS_REPOSITORY_ROOT
# Prepare database.
docker-compose up -d
./sample/prepare.sh
- Open the sample workspace (
$THIS_REPOSITORY_ROOT/sample/sample.code-workspace
) on [Extension Development Host] window.
cd $THIS_REPOSITORY_ROOT
# Prepare database.
docker-compose up -d
./sample/prepare.sh
# Install packages.
npm install
# Run test.
npm run test
⚠️ Since libpg-query is a native node module, separate Linux and MacOS installations are required. In Windows, cannot build libpg-query, so it is excluded from the release target.
⚠️ The current strategy is to use a Mac when compiling a build for MacOS.
- Update the version number in
package.json
. - Install with
npm install
. - Execute
npm run package:linux
to producevscode-plpgsql-lsp-#.#.#.vsix
. (For MacOS,npm run package:mac
.) - Log into VSCode Marketplace (Unique Vision users only at this time).
- Under
PL/pgSQL Language Server
, selectMore Actions
, thenUpdate
and upload the.vsix
file.