fix: resolve cherry-pick conflicts and remove non-LSP artifacts
Remove SlashCommand::Setup (provider wizard), PROVIDER_FIELDS (provider config), and stale imports that leaked in from the feat/lsp-integration branch which included other PRs. Also fix pre-existing clippy findings (Duration::from_hours, is_ok_and).
This commit is contained in:
parent
a132953afc
commit
562ee61466
|
|
@ -5425,9 +5425,12 @@ pub fn handle_slash_command(
|
||||||
| SlashCommand::Setup
|
| SlashCommand::Setup
|
||||||
=======
|
=======
|
||||||
| SlashCommand::Lsp { .. }
|
| SlashCommand::Lsp { .. }
|
||||||
|
<<<<<<< HEAD
|
||||||
| SlashCommand::Setup
|
| SlashCommand::Setup
|
||||||
| SlashCommand::Unknown(_) => None,
|
| SlashCommand::Unknown(_) => None,
|
||||||
>>>>>>> e9582034 (feat: full LSP (Language Server Protocol) integration)
|
>>>>>>> e9582034 (feat: full LSP (Language Server Protocol) integration)
|
||||||
|
=======
|
||||||
|
>>>>>>> 0b227b62 (fix: resolve cherry-pick conflicts and remove non-LSP artifacts)
|
||||||
| SlashCommand::Unknown(_) => None,
|
| SlashCommand::Unknown(_) => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -355,24 +355,6 @@ const OAUTH_FIELDS: &[FieldSpec] = &[
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const PROVIDER_FIELDS: &[FieldSpec] = &[
|
|
||||||
FieldSpec {
|
|
||||||
name: "kind",
|
|
||||||
expected: FieldType::String,
|
|
||||||
},
|
|
||||||
FieldSpec {
|
|
||||||
name: "apiKey",
|
|
||||||
expected: FieldType::String,
|
|
||||||
},
|
|
||||||
FieldSpec {
|
|
||||||
name: "baseUrl",
|
|
||||||
expected: FieldType::String,
|
|
||||||
},
|
|
||||||
FieldSpec {
|
|
||||||
name: "model",
|
|
||||||
expected: FieldType::String,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
const LSP_FIELDS: &[FieldSpec] = &[
|
const LSP_FIELDS: &[FieldSpec] = &[
|
||||||
FieldSpec {
|
FieldSpec {
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,7 @@ pub use compact::{
|
||||||
pub use config::{
|
pub use config::{
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
clear_user_provider_settings, default_config_home, save_user_provider_settings,
|
clear_user_provider_settings, default_config_home, save_user_provider_settings,
|
||||||
suppress_config_warnings_for_json_mode, ApiTimeoutConfig, ConfigEntry, ConfigError,
|
suppress_config_warnings_for_json_mode, ApiTimeoutConfig, ConfigEntry, ConfigError,
|
||||||
|
|
@ -85,6 +86,9 @@ pub use config::{
|
||||||
=======
|
=======
|
||||||
>>>>>>> e9582034 (feat: full LSP (Language Server Protocol) integration)
|
>>>>>>> e9582034 (feat: full LSP (Language Server Protocol) integration)
|
||||||
clear_user_provider_settings, save_user_provider_settings, ConfigEntry, ConfigError,
|
clear_user_provider_settings, save_user_provider_settings, ConfigEntry, ConfigError,
|
||||||
|
=======
|
||||||
|
ConfigEntry, ConfigError,
|
||||||
|
>>>>>>> 0b227b62 (fix: resolve cherry-pick conflicts and remove non-LSP artifacts)
|
||||||
ConfigLoader, ConfigSource, LspServerConfig, McpConfigCollection, McpManagedProxyServerConfig,
|
ConfigLoader, ConfigSource, LspServerConfig, McpConfigCollection, McpManagedProxyServerConfig,
|
||||||
McpOAuthConfig, McpRemoteServerConfig, McpSdkServerConfig, McpServerConfig,
|
McpOAuthConfig, McpRemoteServerConfig, McpSdkServerConfig, McpServerConfig,
|
||||||
McpStdioServerConfig, McpTransport, McpWebSocketServerConfig, OAuthConfig,
|
McpStdioServerConfig, McpTransport, McpWebSocketServerConfig, OAuthConfig,
|
||||||
|
|
|
||||||
|
|
@ -298,7 +298,11 @@ fn unshare_user_namespace_works() -> bool {
|
||||||
.stdout(std::process::Stdio::null())
|
.stdout(std::process::Stdio::null())
|
||||||
.stderr(std::process::Stdio::null())
|
.stderr(std::process::Stdio::null())
|
||||||
.status()
|
.status()
|
||||||
|
<<<<<<< HEAD
|
||||||
.is_ok_and(|status| status.success())
|
.is_ok_and(|status| status.success())
|
||||||
|
=======
|
||||||
|
.is_ok_and(|s| s.success())
|
||||||
|
>>>>>>> 0b227b62 (fix: resolve cherry-pick conflicts and remove non-LSP artifacts)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6925,6 +6925,7 @@ fn run_resume_command(
|
||||||
| SlashCommand::Ide { .. }
|
| SlashCommand::Ide { .. }
|
||||||
| SlashCommand::Tag { .. }
|
| SlashCommand::Tag { .. }
|
||||||
| SlashCommand::OutputStyle { .. }
|
| SlashCommand::OutputStyle { .. }
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
| SlashCommand::AddDir { .. }
|
| SlashCommand::AddDir { .. }
|
||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
|
|
@ -6938,6 +6939,10 @@ fn run_resume_command(
|
||||||
| SlashCommand::Lsp { .. }
|
| SlashCommand::Lsp { .. }
|
||||||
>>>>>>> e9582034 (feat: full LSP (Language Server Protocol) integration)
|
>>>>>>> e9582034 (feat: full LSP (Language Server Protocol) integration)
|
||||||
| SlashCommand::Setup => Err("unsupported resumed slash command".into()),
|
| SlashCommand::Setup => Err("unsupported resumed slash command".into()),
|
||||||
|
=======
|
||||||
|
| SlashCommand::AddDir { .. }
|
||||||
|
| SlashCommand::Lsp { .. } => Err("unsupported resumed slash command".into()),
|
||||||
|
>>>>>>> 0b227b62 (fix: resolve cherry-pick conflicts and remove non-LSP artifacts)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue