slint/tools/lsp
Olivier Goffart 66c443c90c Add the rust-version field to make the MRSV explicit
We changed the MSRV in the last release because some dependency depended on
Rust 1.59. But that did not concern the C++ build, for example.
Now that we rely on rust 1.59 in our own code, we should make it explicit
so that the compilation error show the proper error
2022-05-20 08:18:11 +02:00
..
LICENSES Fix LICENSES symlinks 2022-02-09 17:05:47 +01:00
Cargo.toml Add the rust-version field to make the MRSV explicit 2022-05-20 08:18:11 +02:00
completion.rs LSP: Fix auto-completion of @-macros 2022-05-19 19:22:56 +02:00
goto.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
lsp_ext.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
main.rs Update lsp_server and lsp_types 2022-04-14 19:18:05 +02:00
preview.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
README.md Fix typo 2022-03-09 14:12:48 +01:00
semantic_tokens.rs Implements @radial-gradient(circle, ...) 2022-05-19 14:07:20 +02:00
util.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00

LSP (Language Server Protocol) Server for Slint

This directory contains the implementation of the LSP server for Slint featuring diagnostics, code completion, goto definition, and more importantly, live-preview

Generic usage

The LSP server consists of a binary, slint-lsp (or slint-lsp.exe on Windows). It provides all the functionality and allows any programming editor that also implements the standardized LSP protocol to communicate with it.

If you have Rust installed, you can install the binary by running the following command:

cargo install slint-lsp

This makes the latest released version available in $HOME/.cargo/bin. If you would like to try a development version, you can also point cargo install to the git repository: for the released version. Or, to install the develoment version:

cargo install slint-lsp --git https://github.com/slint-ui/slint --force

Alternatively, you can download one of our pre-built binaries for Linux or Windows:

  1. Open https://github.com/slint-ui/slint/releases
  2. Click on the latest release
  3. From "Assets" download either slint-lsp-linux.tar.gz for a Linux x86-64 binary or slint-lsp-windows.zip for a Windows x86-64 binary.
  4. Uncompress the downloaded archive into a location of your choice.

As the next step, configure your editor to use the binary, no arguments are required

Editor configuration

Please check the editor folder in the Slint repository for instructions on how to set up different editors to work with Slint.