Specify full TextStyles in EditorStyle

This commit is contained in:
Nathan Sobo
2021-09-16 14:12:38 -06:00
parent c21b754c4c
commit a1f0693599
5 changed files with 86 additions and 79 deletions
+7 -2
View File
@@ -1037,7 +1037,7 @@ mod tests {
};
use zed::{
channel::{Channel, ChannelDetails, ChannelList},
editor::{Editor, Insert},
editor::{Editor, EditorStyle, Insert},
fs::{FakeFs, Fs as _},
language::LanguageRegistry,
rpc::{self, Client, Credentials, EstablishConnectionError},
@@ -1122,7 +1122,12 @@ mod tests {
// Create a selection set as client B and see that selection set as client A.
let editor_b = cx_b.add_view(window_b, |cx| {
Editor::for_buffer(buffer_b, settings, |_| Default::default(), cx)
Editor::for_buffer(
buffer_b,
settings,
|cx| EditorStyle::test(cx.font_cache()),
cx,
)
});
buffer_a
.condition(&cx_a, |buffer, _| buffer.selection_sets().count() == 1)