1
1
mirror of https://github.com/tweag/nickel.git synced 2024-10-05 15:47:33 +03:00
nickel/lsp/vscode-extension/README.md
Yann Hamdaoui f5f0ed5255
Various fixes to VSCode extension (#1413)
* Various updates to VSCode extension

Last fixes before publishing the VSCode extension on the VSCode market
place:
 - rename the parent containing directory from client-extension to vscode-extension
 - add a display name and a description
 - update the README, add links to non-Nix installation method
 - small fixes to the textmate Nickel grammar

* Update flake.nix after rename client-extension -> vscode-extension

* Improve the TextMate grammar, fix interpolation handling

* Fix highlighting in VSCode extension
2023-06-29 11:40:35 +00:00

1.1 KiB

Nickel Language VS Code extension

Features

  • Syntax highlighting
  • Language server
  • Code formatting using Topiary

Prerequsites

Install nickel, nls and topiary

Using Nix

nix profile install nixpkgs#{nickel,nls,topiary}

Using Cargo

cargo install nickel-lang-cli nickel-lang-lsp

Other installation methods

See the Nickel README and The LSP README.

Build from source

With Nix

From the root of the Nickel project:

nix build .\#vscodeExtension

The VSIX extension will be at ./result/vscode-nickel.vsix.

With Yarn

From this directory:

yarn install && yarn compile && yarn vsce package --yarn

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

Updating package.json

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

yarn install && yarn2nix > yarn.nix

This will update:

  • yarn.lock
  • yarn.nix