Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a continuation of work I started last week, cleaning up the live preview and sits on top of my PRs from Friday (which are included here again since that is how github works).
This is just a experiment I did over the WE, it is not polished (or even done:-). What it tries to do is this:
Have the LSP start the live preview by running
{argv[0} live-preview --remote-controlled
and communicates via stdin/stdout with that. This makes the need for quite a bit of the complexity innative.rs
go away.Next steps are:
preview.rs
into a object that I can store in a local variable and get rid of the thread-local.After that a logical step would be to allow users to run
slint-lsp live-preview {file}
and then use a differentconenctor
to not talk to a LSP and just interact with the fielsystem directly.