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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user