mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-26 19:44:04 +03:00
Fix Hide Copilot context menu item (#13113)
The `features.copilot` setting appears to have been replaced by `"inline_completion_provider": "none"` at some point, but the Hide Copilot context menu was never updated to reflect that. Release Notes: - Fixed the Hide Copilot context menu item to modify the appropriate setting.
This commit is contained in:
parent
b075ce8f04
commit
16fce64d3a
@ -440,7 +440,9 @@ fn toggle_inline_completions_for_language(
|
||||
|
||||
fn hide_copilot(fs: Arc<dyn Fs>, cx: &mut AppContext) {
|
||||
update_settings_file::<AllLanguageSettings>(fs, cx, move |file| {
|
||||
file.features.get_or_insert(Default::default()).copilot = Some(false);
|
||||
file.features
|
||||
.get_or_insert(Default::default())
|
||||
.inline_completion_provider = Some(InlineCompletionProvider::None);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user