Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple our fs module from details of the Worktree #110

Merged
merged 4 commits into from
Jul 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion server/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ use sqlx::{
use std::{path::Path, sync::Arc};
use zed::{
editor::Editor,
fs::{FakeFs, Fs as _},
language::LanguageRegistry,
rpc::Client,
settings,
test::Channel,
worktree::{FakeFs, Fs as _, Worktree},
worktree::Worktree,
};
use zrpc::{ForegroundRouter, Peer, Router};

Expand Down
3 changes: 2 additions & 1 deletion zed/src/editor/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2732,9 +2732,10 @@ impl ToPoint for usize {
mod tests {
use super::*;
use crate::{
fs::RealFs,
test::{build_app_state, temp_tree},
util::RandomCharIter,
worktree::{RealFs, Worktree, WorktreeHandle},
worktree::{Worktree, WorktreeHandle as _},
};
use gpui::ModelHandle;
use rand::prelude::*;
Expand Down
2 changes: 1 addition & 1 deletion zed/src/file_finder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,9 @@ mod tests {
use super::*;
use crate::{
editor,
fs::FakeFs,
test::{build_app_state, temp_tree},
workspace::Workspace,
worktree::FakeFs,
};
use serde_json::json;
use std::fs;
Expand Down
Loading