Skip to content

Extracted preview protocol out of the LSP#11251

Open
anlumo wants to merge 9 commits intomasterfrom
anlumo/lsp-refactor
Open

Extracted preview protocol out of the LSP#11251
anlumo wants to merge 9 commits intomasterfrom
anlumo/lsp-refactor

Conversation

@anlumo
Copy link
Copy Markdown
Contributor

@anlumo anlumo commented Apr 2, 2026

The remote viewer needs access to the preview protocol, so it needs to be extracted to its own crate.

@anlumo anlumo requested review from LeonMatthes and ogoffart April 2, 2026 14:51
@anlumo anlumo self-assigned this Apr 2, 2026
Copy link
Copy Markdown
Member

@LeonMatthes LeonMatthes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objection to making the preview protocol a separate crate but I don't think we should remove lsp-types from the main LSP.

@anlumo anlumo force-pushed the anlumo/lsp-refactor branch from 6974a69 to c12c880 Compare April 3, 2026 08:23
Copy link
Copy Markdown
Member

@ogoffart ogoffart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure the docs is correct.
Also let's wait until 1.16 is branched to merge this.

Regarding the purpose of the crate, i'm thinking there might be some need to also have more than the preview protocol, but also some feature that are needed for the preview, such as highlighting of items and maybe the selection mode or other stuff, that should be common between different crate that offer live preview (LSP's live preview, live-preview for C++/Rust, viewer) and maybe it would bellng in that one crate. Therefore i'm thinking that a neame like "i-slint-live-preview" would probably be better than just having a crate for the protocol. But we can discuss the purpose later and right now just go with the protocol, but let's wait until we have the actual viewer before that. That's why i'd like to wait and not have to release this with 1.16.
We can discuss this further.

@@ -0,0 +1,14 @@
// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add #![doc = include_str!("README.md")]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants