A language server for WebAssembly
Find a file
2022-07-06 15:51:35 -06:00
.cargo Add browser crate to xtask commands 2022-07-06 14:44:35 -06:00
.github Simplify features 2022-07-06 14:44:35 -06:00
crates Adjust deps; fix build issues for wasm 2022-07-06 15:51:35 -06:00
fuzz Adjust deps; fix build issues for wasm 2022-07-06 15:51:35 -06:00
vendor Update submodules 2021-04-24 02:23:47 -06:00
xtask Add browser crate to xtask commands 2022-07-06 14:44:35 -06:00
.editorconfig Add Makefile config to .editorconfig 2020-03-16 17:05:18 -06:00
.gitattributes Add .gitattributes 2020-03-12 19:47:38 -06:00
.gitignore Ignore tarpaulin artifacts 2020-09-04 16:45:40 -06:00
.gitmodules Vendor corpus; add tests for textDocument/didOpen 2020-07-25 13:20:50 -06:00
Cargo.lock Simplify features 2022-07-06 14:44:35 -06:00
Cargo.toml Add support for wasm target 2022-06-18 18:45:25 -06:00
clippy.toml Define project 2020-03-12 19:57:46 -06:00
CODE_OF_CONDUCT.md Formatting 2020-09-07 19:31:06 -06:00
LICENSE Fix license 2020-03-16 21:40:41 -06:00
README.md Fix README rendering 2022-05-22 11:50:38 -06:00
rust-toolchain Pin rust-toolchain back to stable 2020-07-18 20:07:54 -06:00
rustfmt.toml Update edition to 2021 2022-06-18 16:16:51 -06:00

wasm-lsp-server

A language server implementation for WebAssembly

Status

The server is still in an early state. It is usable but many advanced features have not yet been implemented.

Usage

The server has not yet had a stable release. You can build and install it locally if you would like to experiment with it in the meantime.

Installing the Server

Prebuilt Binaries

The easiest way to install the server is to grab one of the prebuilt binaries under releases.

Building from Source

First ensure you have the rust toolchain installed, then proceed as follows:

git clone https://github.com/wasm-lsp/wasm-lsp-server
cd wasm-lsp-server
cargo xtask init
cargo xtask install
Selecting the Async Runtime

The server is runtime agnostic and can be configured to run on async-std, futures, smol, or tokio.

The table below describes how to select a runtime. The tokio runtime is selected by default.

runtime command
async-std cargo xtask install --runtime=async-std
futures cargo xtask install --runtime=futures
smol cargo xtask install --runtime=smol
tokio cargo xtask install --runtime=tokio

Installing the Client Extension

Once the server is installed you can install the Visual Studio Code client extension.

Supported Document Types

extension supported kind
.wat WebAssembly module definition
.wast WebAssembly script

Supported WebAssembly Proposals

The server also supports parsing WebAssembly modules that use the following features:

Phase 4 (Standardization)

Phase 3 (Implementation)

Phase 2 (Specification)

Phase 1 (Proposal)

Nothing planned.

Phase 0 (Pre-Proposal)

Nothing planned.

Language Server Feature Support

  • ☑ document parsing via wasm tree-sitter grammars
  • ☑ document symbol provider
  • ☑ syntax error diagnostics provider
  • ☑ incremental document synchronization

Language Server Feature Roadmap

  • ☐ code action provider
  • ☐ code lens provider
  • ☐ completion provider
  • ☐ definition provider
  • ☐ document formatting (full and ranged) provider
  • ☐ document highlight provider
  • ☐ hover provider
  • ☐ references provider
  • ☐ workspace symbol provider
  • ☐ semantic tokens provider
  • ☐ signature help provider
  • ☐ document validation
  • ☐ integration with existing wasm toolchains
  • ☐ implementation of the Debug Adapter Protocol