Get compiling

This commit is contained in:
Nathan Sobo 2023-08-07 19:08:58 -06:00
parent 3e0d0e5c01
commit 486f5bc6ca
14 changed files with 97 additions and 107 deletions

View file

@ -1,6 +1,6 @@
use crate::Vim;
use editor::{EditorBlurred, EditorFocused, EditorReleased};
use gpui::AppContext;
use gpui::{AppContext, BorrowWindowContext};
pub fn init(cx: &mut AppContext) {
cx.subscribe_global(focused).detach();

View file

@ -1,6 +1,6 @@
use gpui::{
elements::{Empty, Label},
AnyElement, Element, Entity, Subscription, View, ViewContext,
AnyElement, Element, Entity, Subscription, View, ViewContext, BorrowWindowContext
};
use settings::SettingsStore;
use workspace::{item::ItemHandle, StatusItemView};

View file

@ -85,7 +85,7 @@ impl<'a> VimTestContext<'a> {
}
pub fn set_state(&mut self, text: &str, mode: Mode) -> ContextHandle {
let window_id = self.window_id;
let window_id = self.window.id();
self.update_window(window_id, |cx| {
Vim::update(cx, |vim, cx| {
vim.switch_mode(mode, false, cx);