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:
dontwanttothink
2024-06-17 11:23:03 -04:00
committed by GitHub
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);
});
}