mirror of
https://github.com/tweag/nickel.git
synced 2024-10-06 08:07:37 +03:00
79521f5c6e
* 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 |
||
---|---|---|
.. | ||
src | ||
default.nix | ||
node-env.nix | ||
node-packages.nix | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
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