first pass of merging in warp (doesn't build)
This commit is contained in:
@@ -1,26 +1,24 @@
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
rc::Rc,
|
||||
};
|
||||
|
||||
use std::ops::Range;
|
||||
|
||||
use galaxy_editor::{content::buffer::InitialBufferState, render::model::LineCount};
|
||||
use galaxy_util::file::{FileLoadError, FileSaveError};
|
||||
use galaxyui::{
|
||||
elements::MouseStateHandle, AppContext, Element, Entity, TypedActionView, View, ViewContext,
|
||||
ViewHandle, WindowId,
|
||||
};
|
||||
use std::path::PathBuf;
|
||||
use std::rc::Rc;
|
||||
|
||||
use ai::diff_validation::DiffType;
|
||||
|
||||
use super::editor::view::CodeEditorView;
|
||||
use super::ImmediateSaveError;
|
||||
use crate::terminal::TerminalView;
|
||||
use crate::{code::editor::EditorReviewComment, code_review::comments::CommentId};
|
||||
use galaxy_core::ui::appearance::Appearance;
|
||||
use galaxy_editor::content::buffer::InitialBufferState;
|
||||
use galaxy_editor::render::model::LineCount;
|
||||
use galaxy_util::file::{FileLoadError, FileSaveError};
|
||||
use galaxyui::elements::MouseStateHandle;
|
||||
use galaxyui::{
|
||||
AppContext, Element, Entity, TypedActionView, View, ViewContext, ViewHandle, WindowId,
|
||||
};
|
||||
|
||||
pub use super::diff_viewer::DisplayMode;
|
||||
use super::editor::view::CodeEditorView;
|
||||
use super::ImmediateSaveError;
|
||||
use crate::code::buffer_location::LocalOrRemotePath as BufferFileLocation;
|
||||
use crate::code::editor::EditorReviewComment;
|
||||
use crate::code_review::comments::CommentId;
|
||||
use crate::terminal::TerminalView;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum LocalCodeEditorEvent {
|
||||
@@ -97,7 +95,9 @@ impl LocalCodeEditorView {
|
||||
false
|
||||
}
|
||||
|
||||
pub fn file_path(&self) -> Option<&Path> {
|
||||
/// Returns the unified file location (local or remote).
|
||||
/// The WASM stub has no backing file, so this always returns `None`.
|
||||
pub fn file_location(&self) -> Option<&BufferFileLocation> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user