agent: Improve MCP with no config editor empty state (#33282)

Removed an additional label from the modal empty state as I figured we
don't need it, given we already have a version of the description in
place for when the extension itself doesn't return any. So, ultimately,
having both the label and the description was redundant.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-06-23 20:33:19 -03:00 committed by GitHub
parent 32df9256c3
commit 324cbecb74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -503,10 +503,7 @@ impl ConfigureContextServerModal {
ConfigurationSource::Existing { editor } => editor, ConfigurationSource::Existing { editor } => editor,
ConfigurationSource::Extension { editor, .. } => { ConfigurationSource::Extension { editor, .. } => {
let Some(editor) = editor else { let Some(editor) = editor else {
return Label::new( return div().into_any_element();
"No configuration options available for this context server. Visit the Repository for any further instructions.",
)
.color(Color::Muted).into_any_element();
}; };
editor editor
} }