first pass of merging in warp (doesn't build)

This commit is contained in:
Ryan Ward
2026-07-01 16:08:58 -05:00
parent 2f64909469
commit 4770ac06b5
3662 changed files with 414574 additions and 89772 deletions
+12 -7
View File
@@ -1,7 +1,5 @@
use std::rc::Rc;
#[cfg(not(target_family = "wasm"))]
use crate::ai::blocklist::inline_action::code_diff_view::DiffSessionType;
use ai::diff_validation::DiffType;
#[cfg(not(target_family = "wasm"))]
use galaxy_files::{FileModel, FileModelEvent};
@@ -14,12 +12,13 @@ use galaxyui::elements::ChildView;
use galaxyui::SingletonEntity;
use galaxyui::{AppContext, Element, Entity, TypedActionView, View, ViewContext, ViewHandle};
use super::diff_viewer::DiffViewer;
use super::diff_viewer::DisplayMode;
use super::diff_viewer::{DiffViewer, DisplayMode};
use super::editor::scroll::{ScrollPosition, ScrollTrigger};
use super::editor::view::{CodeEditorEvent, CodeEditorView};
use super::editor::NavBarBehavior;
use super::DiffResult;
#[cfg(not(target_family = "wasm"))]
use crate::ai::blocklist::inline_action::code_diff_view::DiffSessionType;
use crate::editor::InteractionState;
pub enum InlineDiffViewEvent {
@@ -128,9 +127,15 @@ impl InlineDiffView {
let file_id = match session_type {
DiffSessionType::Local => {
let Some(local_path) = file_path.to_local_path() else {
log::error!(
"Failed to convert StandardizedPath to local path: {file_path}; \
diff will be read-only",
crate::safe_error!(
safe: (
"Failed to convert StandardizedPath to local path; diff will be \
read-only"
),
full: (
"Failed to convert StandardizedPath to local path: {file_path}; diff \
will be read-only"
)
);
return;
};