slint/vscode_extension
Olivier Goffart 309a9274e1 LSP: preview window
Currently not yet live preview from the open document content, but that should totaly be doable
2021-04-03 10:00:12 +02:00
..
.vscode Generate the vscode extension with the wizard 2020-12-23 15:15:53 +01:00
src LSP: preview window 2021-04-03 10:00:12 +02:00
.eslintrc.json Generate the vscode extension with the wizard 2020-12-23 15:15:53 +01:00
build_lsp.sh Try to avoid doing cross builds on Linux 2021-04-01 12:57:01 +02:00
package.json LSP: preview window 2021-04-03 10:00:12 +02:00
README.md Some work towards including macos binaries in the vscode extension 2021-04-02 12:24:03 +02:00
sixtyfps.tmLanguage.json Rename "signal" to "callback" 2020-12-18 09:51:01 +01:00
tsconfig.json Generate the vscode extension with the wizard 2020-12-23 15:15:53 +01:00
vsc-extension-quickstart.md Generate the vscode extension with the wizard 2020-12-23 15:15:53 +01:00

sixtyfps-vscode README

Extension for VSCode which include syntax coloration and a way to start the LSP server

Setup

  1. Build the LSP
cargo build --bin sixtyfps-lsp
  1. run npm install in the vscode directory
cd vscode_extension
npm install

How to run the LSP

At the moment you need to load this directory in VS code and then start debugging (Run -> Start Debugging). That will "debug" the vs code extension and create a new VS code window. The LSP server binary will be started if previously built You can see the output in the output pane "SixtyFPS LSP" (that's the drop-down that usually shows "Tasks").

How to build the extension package

To create a .vsix package:

  1. Install vsce (via npm for example).
  2. Change to the vscode_extension sub-directory.
  3. Install the dependencies: npm install.
  4. Build the lsp binaries: npm compile-lsp.
  5. Run vsce package to create the extension package.