Revert "Remove into SelectionEffects
from .change_selections"
This reverts commit 28380d714d
.
This commit is contained in:
parent
28380d714d
commit
6e762d9c05
65 changed files with 625 additions and 837 deletions
|
@ -751,7 +751,7 @@ fn string_match_candidates<'a>(
|
|||
mod tests {
|
||||
use std::{path::PathBuf, sync::Arc};
|
||||
|
||||
use editor::{Editor, SelectionEffects};
|
||||
use editor::Editor;
|
||||
use gpui::{TestAppContext, VisualTestContext};
|
||||
use language::{Language, LanguageConfig, LanguageMatcher, Point};
|
||||
use project::{ContextProviderWithTasks, FakeFs, Project};
|
||||
|
@ -1028,7 +1028,7 @@ mod tests {
|
|||
.update(|_window, cx| second_item.act_as::<Editor>(cx))
|
||||
.unwrap();
|
||||
editor.update_in(cx, |editor, window, cx| {
|
||||
editor.change_selections(SelectionEffects::no_scroll(), window, cx, |s| {
|
||||
editor.change_selections(None, window, cx, |s| {
|
||||
s.select_ranges(Some(Point::new(1, 2)..Point::new(1, 5)))
|
||||
})
|
||||
});
|
||||
|
|
|
@ -393,7 +393,7 @@ fn worktree_context(worktree_abs_path: &Path) -> TaskContext {
|
|||
mod tests {
|
||||
use std::{collections::HashMap, sync::Arc};
|
||||
|
||||
use editor::{Editor, SelectionEffects};
|
||||
use editor::Editor;
|
||||
use gpui::TestAppContext;
|
||||
use language::{Language, LanguageConfig};
|
||||
use project::{BasicContextProvider, FakeFs, Project, task_store::TaskStore};
|
||||
|
@ -538,7 +538,7 @@ mod tests {
|
|||
|
||||
// And now, let's select an identifier.
|
||||
editor2.update_in(cx, |editor, window, cx| {
|
||||
editor.change_selections(SelectionEffects::no_scroll(), window, cx, |selections| {
|
||||
editor.change_selections(None, window, cx, |selections| {
|
||||
selections.select_ranges([14..18])
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue