Skip to content

Commit

Permalink
WIPWIPWIPWIPW
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed Dec 17, 2024
1 parent 7adcf90 commit df81a91
Show file tree
Hide file tree
Showing 5 changed files with 2,605 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions crates/editor/src/display_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ use language::{
use lsp::DiagnosticSeverity;
use multi_buffer::{
Anchor, AnchorRangeExt, MultiBuffer, MultiBufferDiffHunk, MultiBufferPoint, MultiBufferRow,
MultiBufferSnapshot, ToOffset, ToPoint,
MultiBufferSnapshot, RowInfo, ToOffset, ToPoint,
};
use project::buffer_store::BufferChangeSet;
use serde::Deserialize;
Expand All @@ -82,12 +82,6 @@ pub enum FoldStatus {
Foldable,
}

#[derive(Copy, Clone, Debug, Default, PartialEq, Eq)]
pub struct RowInfo {
pub buffer_row: Option<u32>,
pub diff_status: Option<DiffHunkStatus>,
}

pub type RenderFoldToggle = Arc<dyn Fn(FoldStatus, &mut WindowContext) -> AnyElement>;

pub trait ToDisplayPoint {
Expand Down
2 changes: 2 additions & 0 deletions crates/multi_buffer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ collections.workspace = true
ctor.workspace = true
env_logger.workspace = true
futures.workspace = true
git.workspace = true
gpui.workspace = true
itertools.workspace = true
language.workspace = true
log.workspace = true
parking_lot.workspace = true
project.workspace = true
rand.workspace = true
settings.workspace = true
serde.workspace = true
Expand Down
Loading

0 comments on commit df81a91

Please sign in to comment.