We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d211f88 commit 2a8242aCopy full SHA for 2a8242a
crates/editor/src/editor_tests.rs
@@ -20836,6 +20836,19 @@ async fn test_outdent_after_input_for_python(cx: &mut TestAppContext) {
20836
break
20837
else:ˇ
20838
"});
20839
+
20840
+ // test does not outdent on typing after line with square brackets
20841
+ cx.set_state(indoc! {"
20842
+ def f() -> list[str]:
20843
+ ˇ
20844
+ "});
20845
+ cx.update_editor(|editor, window, cx| {
20846
+ editor.handle_input("a", window, cx);
20847
+ });
20848
+ cx.assert_editor_state(indoc! {"
20849
20850
+ aˇ
20851
20852
}
20853
20854
#[gpui::test]
0 commit comments