buffer: Keep the shorter language setting names for the common operation (#43915)

cc
https://github.com/zed-industries/zed/pull/43888#issuecomment-3597265087

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-12-01 18:55:33 +01:00
committed by GitHub
parent 465536644c
commit 628c52a96a
54 changed files with 219 additions and 276 deletions
+2 -2
View File
@@ -2225,7 +2225,7 @@ impl KeybindingEditorModal {
.update(cx, |editor, cx| {
if let Some(buffer) = editor.buffer().read(cx).as_singleton() {
buffer.update(cx, |buffer, cx| {
buffer.set_language_immediate(Some(language), cx);
buffer.set_language(Some(language), cx);
});
}
editor.set_completion_provider(Some(std::rc::Rc::new(
@@ -2815,7 +2815,7 @@ impl ActionArgumentsEditor {
this.editor.update(cx, |editor, cx| {
if let Some(buffer) = editor.buffer().read(cx).as_singleton() {
buffer.update(cx, |buffer, cx| {
buffer.set_language_immediate(Some(json_language.clone()), cx)
buffer.set_language(Some(json_language.clone()), cx)
});
}
})