1
1
mirror of https://github.com/tweag/nickel.git synced 2024-10-06 08:07:37 +03:00
nickel/lsp/client-extension
Julien Debon 79521f5c6e Fix VS Code extension Nix build
* Fix VS Code extension Nix build
  * Regenerate the 3 `node2nix` files with a more recent `node2nix`
  * Add the missing `vsce` dependency
  * Pass the `--development` flag to `node2nix` to correctly include dev
    dependencies like `typescript` or `vsce`
* Use the verbose form of `tsc` parameters in `package.json`
* Add `node2nix`, `markdownlint` and `nodejs` to the dev shell
* Add a `README.md` to the VS Code extension directory

Close https://github.com/tweag/nickel/issues/893
2022-11-24 09:57:53 +01:00
..
src Add configuration options for the vscode client 2021-12-13 16:50:36 +01:00
default.nix Fix VS Code extension Nix build 2022-11-24 09:57:53 +01:00
node-env.nix Fix VS Code extension Nix build 2022-11-24 09:57:53 +01:00
node-packages.nix Fix VS Code extension Nix build 2022-11-24 09:57:53 +01:00
package-lock.json Fix VS Code extension Nix build 2022-11-24 09:57:53 +01:00
package.json Fix VS Code extension Nix build 2022-11-24 09:57:53 +01:00
README.md Fix VS Code extension Nix build 2022-11-24 09:57:53 +01:00
tsconfig.json Move lsp to subfolder 2021-09-23 17:21:45 +03:00

Nickel Language Server Protocol VS Code extension

This directory contains the Visual Studio Code Nickel LSP extension code.

Build

With Nix

From the root of the Nickel project:

nix build .\#vscodeExtension.vsix

The VSIX extension will be at ./result-vsix/nls-client.vsix.

With NPM

From this directory:

npm install && npm run compile && echo y | npx vsce package

The VSIX extension will be at ./nls-[version].vsix.

Updating package.json

Whenever you change package.json, you must run the following command:

npm install --package-lock-only && node2nix --development --lock

This will update:

  • package-lock.json
  • default.nix
  • node-env.nix
  • node-packages.nix