Don't refcount window handles
This commit is contained in:
parent
afcc0d621b
commit
485c0a482e
20 changed files with 83 additions and 163 deletions
|
@ -525,7 +525,7 @@ async fn test_navigation_history(cx: &mut TestAppContext) {
|
|||
let project = Project::test(fs, [], cx).await;
|
||||
let window = cx.add_window(|cx| Workspace::test_new(project, cx));
|
||||
let workspace = window.root(cx);
|
||||
let window_id = window.id();
|
||||
let window_id = window.window_id();
|
||||
let pane = workspace.read_with(cx, |workspace, _| workspace.active_pane().clone());
|
||||
cx.add_view(window_id, |cx| {
|
||||
let buffer = MultiBuffer::build_simple(&sample_text(300, 5, 'a'), cx);
|
||||
|
|
|
@ -99,7 +99,7 @@ impl<'a> EditorLspTestContext<'a> {
|
|||
Self {
|
||||
cx: EditorTestContext {
|
||||
cx,
|
||||
window_id: window.id(),
|
||||
window_id: window.window_id(),
|
||||
editor,
|
||||
},
|
||||
lsp,
|
||||
|
|
|
@ -39,7 +39,7 @@ impl<'a> EditorTestContext<'a> {
|
|||
let editor = window.root(cx);
|
||||
Self {
|
||||
cx,
|
||||
window_id: window.id(),
|
||||
window_id: window.window_id(),
|
||||
editor,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue