Skip to content

Commit

Permalink
Improve the documentation of Components libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoffart committed Jun 20, 2024
1 parent 9e8e0ce commit 41d39c5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/reference/src/language/syntax/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,11 @@ path on disk:
to provide a mapping from library name to path.
* When invoking the `slint-viewer` from the command line, pass `-Lmylibrary=/path/to/my/library` for each component
library.
* When using the live-preview in the VS code extension, configure the Slint extension's library path
using the `Slint: Library Paths` setting.
* When using the VS Code extension, configure the Slint extension's library path
using the `Slint: Library Paths` setting. Example below:
```json
"slint.libraryPaths": {
"mylibrary": "/path/to/my/library"
},
```
* With other editors, you can configure them to pass the `-L` argument to the `slint-lsp` just like for the slint-viewer.

0 comments on commit 41d39c5

Please sign in to comment.