Improvements to interactive hard wrap behavior (#26953)

Release Notes:

- Fixed involuntary joining of lines when typing in the commit message
editor
- Fixed being unable to type whitespace after a comment character at the
start of a line in the commit message editor
This commit is contained in:
Cole Miller
2025-03-18 17:05:08 +00:00
committed by GitHub
parent 41a60ffecf
commit e7bba1c252
4 changed files with 254 additions and 86 deletions
@@ -79,6 +79,19 @@ pub(crate) fn rust_lang() -> Arc<Language> {
.expect("Could not parse queries");
Arc::new(language)
}
#[cfg(test)]
pub(crate) fn git_commit_lang() -> Arc<Language> {
Arc::new(Language::new(
LanguageConfig {
name: "Git Commit".into(),
line_comments: vec!["#".into()],
..Default::default()
},
None,
))
}
impl EditorLspTestContext {
pub async fn new(
language: Language,