assistant: Remove outdated settings update path (#21672)

Removed a settings update that should have been removed in the 0.148.0
release.

I am not sure if there is a tracking issue, but I identified this check
for outdated settings that should not be needed anymore. I investigated
a bit and did not find any conflicts or UB as a result of removing this
code.

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
Drew Ridley 2025-01-03 17:52:08 -05:00 committed by GitHub
parent 04cf19d49a
commit e6fe12d0e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,7 +37,7 @@ pub use prompts::PromptBuilder;
use prompts::PromptLoadingParams; use prompts::PromptLoadingParams;
use semantic_index::{CloudEmbeddingProvider, SemanticDb}; use semantic_index::{CloudEmbeddingProvider, SemanticDb};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use settings::{update_settings_file, Settings, SettingsStore}; use settings::{Settings, SettingsStore};
use slash_command::search_command::SearchSlashCommandFeatureFlag; use slash_command::search_command::SearchSlashCommandFeatureFlag;
use slash_command::{ use slash_command::{
auto_command, cargo_workspace_command, default_command, delta_command, diagnostics_command, auto_command, cargo_workspace_command, default_command, delta_command, diagnostics_command,
@ -199,16 +199,6 @@ pub fn init(
AssistantSettings::register(cx); AssistantSettings::register(cx);
SlashCommandSettings::register(cx); SlashCommandSettings::register(cx);
// TODO: remove this when 0.148.0 is released.
if AssistantSettings::get_global(cx).using_outdated_settings_version {
update_settings_file::<AssistantSettings>(fs.clone(), cx, {
let fs = fs.clone();
|content, cx| {
content.update_file(fs, cx);
}
});
}
cx.spawn(|mut cx| { cx.spawn(|mut cx| {
let client = client.clone(); let client = client.clone();
async move { async move {