Editor docs (#4097)

Release Notes:

- N/A

---------

Co-authored-by: Kirill <kirill@zed.dev>
This commit is contained in:
Piotr Osiewicz
2024-01-18 00:48:37 +01:00
committed by GitHub
co-authored by Kirill
parent 647b08b101
commit 6cbc49e5f0
49 changed files with 507 additions and 376 deletions
+1 -1
View File
@@ -582,7 +582,7 @@ impl BlockSnapshot {
.collect()
}
pub fn chunks<'a>(
pub(crate) fn chunks<'a>(
&'a self,
rows: Range<u32>,
language_aware: bool,
+1 -1
View File
@@ -655,7 +655,7 @@ impl FoldSnapshot {
}
}
pub fn chunks<'a>(
pub(crate) fn chunks<'a>(
&'a self,
range: Range<FoldOffset>,
language_aware: bool,
+3 -3
View File
@@ -35,8 +35,8 @@ enum Transform {
}
#[derive(Debug, Clone)]
pub struct Inlay {
pub id: InlayId,
pub(crate) struct Inlay {
pub(crate) id: InlayId,
pub position: Anchor,
pub text: text::Rope,
}
@@ -1016,7 +1016,7 @@ impl InlaySnapshot {
(line_end - line_start) as u32
}
pub fn chunks<'a>(
pub(crate) fn chunks<'a>(
&'a self,
range: Range<InlayOffset>,
language_aware: bool,
+1 -1
View File
@@ -568,7 +568,7 @@ impl WrapSnapshot {
Patch::new(wrap_edits)
}
pub fn chunks<'a>(
pub(crate) fn chunks<'a>(
&'a self,
rows: Range<u32>,
language_aware: bool,