Rebased to main
This commit is contained in:
parent
a0cb6542ba
commit
992b94eef3
8 changed files with 10 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
db::{NewUserParams, ProjectId, TestDb, UserId},
|
db::{NewUserParams, ProjectId, SqliteTestDb as TestDb, UserId},
|
||||||
rpc::{Executor, Server, Store},
|
rpc::{Executor, Server},
|
||||||
AppState,
|
AppState,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -9,11 +9,11 @@ mod db_tests;
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod integration_tests;
|
mod integration_tests;
|
||||||
|
|
||||||
use crate::db::{Db, PostgresDb};
|
|
||||||
use crate::rpc::ResultExt as _;
|
use crate::rpc::ResultExt as _;
|
||||||
use anyhow::anyhow;
|
use anyhow::anyhow;
|
||||||
use axum::{routing::get, Router};
|
use axum::{routing::get, Router};
|
||||||
use collab::{Error, Result};
|
use collab::{Error, Result};
|
||||||
|
use db::DefaultDb as Db;
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
use std::{
|
use std::{
|
||||||
env::args,
|
env::args,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
display_map::ToDisplayPoint, link_go_to_definition::hide_link_definition,
|
display_map::ToDisplayPoint, link_go_to_definition::hide_link_definition,
|
||||||
movement::surrounding_word, Anchor, Autoscroll, Editor, EditorMode, Event, ExcerptId,
|
movement::surrounding_word, Anchor, Autoscroll, Editor, Event, ExcerptId, MultiBuffer,
|
||||||
MultiBuffer, MultiBufferSnapshot, NavigationData, ToPoint as _, FORMAT_TIMEOUT,
|
MultiBufferSnapshot, NavigationData, ToPoint as _, FORMAT_TIMEOUT,
|
||||||
};
|
};
|
||||||
use anyhow::{anyhow, Context, Result};
|
use anyhow::{anyhow, Context, Result};
|
||||||
use futures::FutureExt;
|
use futures::FutureExt;
|
||||||
|
|
|
@ -24,7 +24,7 @@ impl Domain for Editor {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EditorDb {
|
impl EditorDb {
|
||||||
fn get_path(_item_id: ItemId, _workspace_id: WorktreeId) -> PathBuf {
|
fn _get_path(_item_id: ItemId, _workspace_id: WorktreeId) -> PathBuf {
|
||||||
unimplemented!();
|
unimplemented!();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ impl Connection {
|
||||||
mod test {
|
mod test {
|
||||||
use indoc::indoc;
|
use indoc::indoc;
|
||||||
|
|
||||||
use crate::{connection::Connection, thread_safe_connection::ThreadSafeConnection};
|
use crate::connection::Connection;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_migrations_are_added_to_table() {
|
fn test_migrations_are_added_to_table() {
|
||||||
|
|
|
@ -34,9 +34,7 @@ use mappings::mouse::{
|
||||||
|
|
||||||
use procinfo::LocalProcessInfo;
|
use procinfo::LocalProcessInfo;
|
||||||
use settings::{AlternateScroll, Settings, Shell, TerminalBlink};
|
use settings::{AlternateScroll, Settings, Shell, TerminalBlink};
|
||||||
use terminal_container_view::TerminalContainer;
|
|
||||||
use util::ResultExt;
|
use util::ResultExt;
|
||||||
use workspace::register_deserializable_item;
|
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
cmp::min,
|
cmp::min,
|
||||||
|
|
|
@ -16,9 +16,7 @@ use sqlez::{
|
||||||
};
|
};
|
||||||
use util::ResultExt;
|
use util::ResultExt;
|
||||||
|
|
||||||
use crate::{
|
use crate::{dock::DockPosition, ItemDeserializers, Member, Pane, PaneAxis, Workspace};
|
||||||
dock::DockPosition, item::ItemHandle, ItemDeserializers, Member, Pane, PaneAxis, Workspace,
|
|
||||||
};
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct WorkspaceId(Arc<Vec<PathBuf>>);
|
pub struct WorkspaceId(Arc<Vec<PathBuf>>);
|
||||||
|
|
|
@ -677,7 +677,7 @@ impl Workspace {
|
||||||
cx: &mut MutableAppContext,
|
cx: &mut MutableAppContext,
|
||||||
) -> Task<(
|
) -> Task<(
|
||||||
ViewHandle<Workspace>,
|
ViewHandle<Workspace>,
|
||||||
Vec<Option<Result<Box<dyn ItemHandle>, Arc<anyhow::Error>>>>,
|
Vec<Option<Result<Box<dyn ItemHandle>, anyhow::Error>>>,
|
||||||
)> {
|
)> {
|
||||||
let project_handle = Project::local(
|
let project_handle = Project::local(
|
||||||
app_state.client.clone(),
|
app_state.client.clone(),
|
||||||
|
@ -740,7 +740,7 @@ impl Workspace {
|
||||||
Some(
|
Some(
|
||||||
workspace
|
workspace
|
||||||
.update(&mut cx, |workspace, cx| {
|
.update(&mut cx, |workspace, cx| {
|
||||||
workspace.open_path(project_path, true, cx)
|
workspace.open_path(project_path, None, true, cx)
|
||||||
})
|
})
|
||||||
.await,
|
.await,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue