mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
.. | ||
.vscode | ||
src | ||
.eslintrc.json | ||
build_lsp.sh | ||
package.json | ||
README.md | ||
sixtyfps.tmLanguage.json | ||
tsconfig.json | ||
vsc-extension-quickstart.md |
sixtyfps-vscode README
Extension for VSCode which include syntax coloration and a way to start the LSP server
Features
- Syntax highlighting
- Diagnostics from .60 files
- Live Preview of a .60 file
- Jump to definition (currently, only definition of Component)
Setup
- Build the LSP
cargo build --bin sixtyfps-lsp
- 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:
- Install
vsce
(via npm for example). - Change to the
vscode_extension
sub-directory. - Install the dependencies:
npm install
. - Build the lsp binaries:
npm compile-lsp
. - Run
vsce package
to create the extension package.