Allow using context in the placeholder_text method

This commit is contained in:
Kirill Bulatov
2024-02-25 00:08:57 +02:00
committed by Kirill Bulatov
parent cf3b875922
commit c29ea9bdbc
17 changed files with 24 additions and 22 deletions
+2 -2
View File
@@ -1749,7 +1749,7 @@ impl Editor {
self.completion_provider = Some(hub);
}
pub fn placeholder_text(&self) -> Option<&str> {
pub fn placeholder_text(&self, _cx: &mut WindowContext) -> Option<&str> {
self.placeholder_text.as_deref()
}
@@ -9618,7 +9618,7 @@ impl EditorSnapshot {
self.is_focused
}
pub fn placeholder_text(&self) -> Option<&Arc<str>> {
pub fn placeholder_text(&self, _cx: &mut WindowContext) -> Option<&Arc<str>> {
self.placeholder_text.as_ref()
}