Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

zigtools/zls-vscode

Repository files navigation

Zig Language Server (zls) for VSCode

THIS EXTENSION IS DEPRECATED

Please use https://marketplace.visualstudio.com/items?itemName=ziglang.vscode-zig instead

VSCode Extension

zls-vscode is a language client extension for zls, the awesome Zig Language Server.

Installing

Simply install the extension from the VS Marketplace or the Extensions tab and you'll be good to go!

Building from source

If you want to build zls yourself, follow the instructions here and then specify the path of the zls binary with the zls.path option in VSCode!

Building Zig Language Server

Dependencies:

Install the VSCode Extensions command line tool, clone this repository and build the VSIX package.

npm install -g @vscode/vsce
git clone https://github.com/zigtools/zls-vscode
cd zls-vscode
vsce package

Finally...

  1. open the Extensions tab in VSCode
  2. click on the dree dots in the upper right corner of the Extensions tab
  3. choose "Install from VSIX..." and choose the .vsix file you just created.

Happy Zig-ing!

Release Notes

1.0.0

Initial release!

1.0.1

Added Official Zig Extension independent Zig language detection

1.0.2

Added start, stop, and restart commands

1.0.3

Semantic tokens!

1.0.4

Added debugLog

1.0.5

Added in-editor configuration, for example:

{
    "zls.warn_style": true,
    "zls.enable_semantic_tokens": false,
    "zls.operator_completions": true,
    "zls.include_at_in_builtins": false,
}

instead of using zls.json!

Fix start/stop/restart commands

1.1.0

You can now install zls directly from the extension! Enjoy!

1.1.1, 1.1.2

Bug fixes, more streamlined installation