mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-01 12:24:16 +00:00
lsp: Send contents to preview for implicitly loaded slint files
This fixes the no preview in slintpad issue when retrieving the contents of files is slow (e.g. when loaded from the web). Fixes: #3855
This commit is contained in:
parent
aeb512686e
commit
0774d01a59
5 changed files with 73 additions and 59 deletions
|
|
@ -123,7 +123,7 @@ pub struct Context {
|
|||
pub document_cache: RefCell<DocumentCache>,
|
||||
pub server_notifier: crate::ServerNotifier,
|
||||
pub init_param: InitializeParams,
|
||||
pub preview: Box<dyn PreviewApi>,
|
||||
pub preview: Rc<dyn PreviewApi>,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue