editor: rename code/diff view features and modules
This commit is contained in:
@@ -5,7 +5,7 @@ use gpui::{
|
||||
AppContext as _, Context, Entity, Focusable as _, IntoElement, ParentElement as _, Render,
|
||||
Styled as _, TestAppContext, VisualTestContext, Window, div,
|
||||
};
|
||||
use gpui_native_editor::code_view::{CodeViewState, bind_code_view_keys};
|
||||
use gpui_native_editor::code::{CodeViewState, bind_code_view_keys};
|
||||
use gpui_native_editor::highlight::{HighlightedCode, Language, Role, highlight};
|
||||
|
||||
fn spans_with_role(code: &HighlightedCode, role: Role) -> Vec<&str> {
|
||||
@@ -176,8 +176,8 @@ fn selecting_then_copying_writes_the_clipboard() {
|
||||
cx.update(|cx| {
|
||||
state.update(cx, |state, cx| {
|
||||
state.select_range(
|
||||
gpui_native_editor::code_view::SelectionPoint { row: 0, col: 0 },
|
||||
gpui_native_editor::code_view::SelectionPoint { row: 0, col: 3 },
|
||||
gpui_native_editor::code::SelectionPoint { row: 0, col: 0 },
|
||||
gpui_native_editor::code::SelectionPoint { row: 0, col: 3 },
|
||||
cx,
|
||||
);
|
||||
});
|
||||
@@ -8,7 +8,7 @@ use gpui::{
|
||||
ScrollDelta, ScrollEvent, Styled as _, TestAppContext, VisualTestContext, Window, div, point,
|
||||
px,
|
||||
};
|
||||
use gpui_native_editor::code_view::{CodeViewState, bind_code_view_keys};
|
||||
use gpui_native_editor::code::{CodeViewState, bind_code_view_keys};
|
||||
use gpui_native_editor::highlight::Language;
|
||||
|
||||
/// Deterministic pseudo-Rust with mixed tokens, roughly `lines` lines long.
|
||||
@@ -5,7 +5,7 @@ use gpui::{
|
||||
AppContext as _, Context, Entity, IntoElement, MouseButton, ParentElement as _, Render,
|
||||
Styled as _, TestAppContext, VisualTestContext, Window, div, point, px,
|
||||
};
|
||||
use gpui_native_editor::diff_view::{DiffRow, DiffRowKind, DiffViewState};
|
||||
use gpui_native_editor::diff::{DiffRow, DiffRowKind, DiffViewState};
|
||||
use gpui_native_editor::highlight::{Language, Role};
|
||||
|
||||
const OLD: &str = "fn a() {}\nfn b() {}\nfn c() {}\n";
|
||||
@@ -8,7 +8,7 @@ use gpui::{
|
||||
ScrollDelta, ScrollEvent, Styled as _, TestAppContext, VisualTestContext, Window, div, point,
|
||||
px,
|
||||
};
|
||||
use gpui_native_editor::diff_view::DiffViewState;
|
||||
use gpui_native_editor::diff::DiffViewState;
|
||||
|
||||
/// Deterministic old/new pairs of roughly `lines` lines each, with changes
|
||||
/// sprinkled through.
|
||||
Reference in New Issue
Block a user