1
1
mirror of https://github.com/tweag/nickel.git synced 2024-09-11 11:47:03 +03:00
nickel/lsp/vscode-extension
Yann Hamdaoui 508c492bfd
Update VSCode extension to 0.3 (#1609)
* Update VSCode extension to 0.3

* Formatting yarn.nix
2023-09-15 18:15:31 +00:00
..
images vscode-nickel: add logo and categories (#1420) 2023-06-29 16:14:17 +00:00
src Various fixes to VSCode extension (#1413) 2023-06-29 11:40:35 +00:00
syntaxes Various fixes to VSCode extension (#1413) 2023-06-29 11:40:35 +00:00
.vscodeignore vscode-nickel: add logo and categories (#1420) 2023-06-29 16:14:17 +00:00
language-configuration.json Add multiline string support for VSCode autoclosing pairs (#1553) 2023-08-29 16:06:05 +00:00
LICENSE Update the copyright holder (#1422) 2023-06-30 11:03:25 +00:00
package.json Update VSCode extension to 0.3 (#1609) 2023-09-15 18:15:31 +00:00
README.md Various fixes to VSCode extension (#1413) 2023-06-29 11:40:35 +00:00
tsconfig.json Various fixes to VSCode extension (#1413) 2023-06-29 11:40:35 +00:00
yarn.lock chore(deps): bump word-wrap from 1.2.3 to 1.2.4 in /lsp/vscode-extension (#1468) 2023-07-24 08:38:56 +00:00
yarn.nix Update VSCode extension to 0.3 (#1609) 2023-09-15 18:15:31 +00:00

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