Rename buffer crate to text and name its entrypoint after the crate
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
parent
eacd2a45bb
commit
d3f28166cb
31 changed files with 84 additions and 85 deletions
|
@ -4,10 +4,10 @@ version = "0.1.0"
|
|||
edition = "2018"
|
||||
|
||||
[features]
|
||||
test-support = ["language/test-support", "buffer/test-support"]
|
||||
test-support = ["language/test-support", "text/test-support"]
|
||||
|
||||
[dependencies]
|
||||
buffer = { path = "../buffer" }
|
||||
text = { path = "../text" }
|
||||
client = { path = "../client" }
|
||||
clock = { path = "../clock" }
|
||||
fsevent = { path = "../fsevent" }
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use anyhow::{anyhow, Result};
|
||||
use buffer::Rope;
|
||||
use fsevent::EventStream;
|
||||
use futures::{Stream, StreamExt};
|
||||
use postage::prelude::Sink as _;
|
||||
|
@ -11,6 +10,7 @@ use std::{
|
|||
pin::Pin,
|
||||
time::{Duration, SystemTime},
|
||||
};
|
||||
use text::Rope;
|
||||
|
||||
#[async_trait::async_trait]
|
||||
pub trait Fs: Send + Sync {
|
||||
|
|
|
@ -3004,7 +3004,6 @@ mod tests {
|
|||
use super::*;
|
||||
use crate::fs::FakeFs;
|
||||
use anyhow::Result;
|
||||
use buffer::Point;
|
||||
use client::test::{FakeHttpClient, FakeServer};
|
||||
use fs::RealFs;
|
||||
use language::{tree_sitter_rust, LanguageServerConfig};
|
||||
|
@ -3018,6 +3017,7 @@ mod tests {
|
|||
fmt::Write,
|
||||
time::{SystemTime, UNIX_EPOCH},
|
||||
};
|
||||
use text::Point;
|
||||
use util::test::temp_tree;
|
||||
|
||||
#[gpui::test]
|
||||
|
@ -3559,8 +3559,8 @@ mod tests {
|
|||
|
||||
#[gpui::test]
|
||||
async fn test_buffer_file_changes_on_disk(mut cx: gpui::TestAppContext) {
|
||||
use buffer::{Point, Selection, SelectionGoal};
|
||||
use std::fs;
|
||||
use text::{Point, Selection, SelectionGoal};
|
||||
|
||||
let initial_contents = "aaa\nbbbbb\nc\n";
|
||||
let dir = temp_tree(json!({ "the-file": initial_contents }));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue