From 0a7468c89f6dc72eeb27c0ea1113c95ee100ae2c Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner Date: Fri, 11 Oct 2024 12:33:08 +0200 Subject: [PATCH] lsp: Show error message in read only buffer (#19063) Clicking on image now opens a read only buffer image Previously the buffer would show up as a normal untitled buffer and would open a prompt when closing the tab. Co-Authored-by: Thorsten Release Notes: - N/A Co-authored-by: Thorsten --- crates/activity_indicator/src/activity_indicator.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/activity_indicator/src/activity_indicator.rs b/crates/activity_indicator/src/activity_indicator.rs index 687519068d..8020e0665a 100644 --- a/crates/activity_indicator/src/activity_indicator.rs +++ b/crates/activity_indicator/src/activity_indicator.rs @@ -101,6 +101,7 @@ impl ActivityIndicator { None, cx, ); + buffer.set_capability(language::Capability::ReadOnly, cx); })?; workspace.update(&mut cx, |workspace, cx| { workspace.add_item_to_active_pane(