Tone down extension errors (#42080)
Before: <img width="2032" height="1161" alt="before" src="https://github.com/user-attachments/assets/5c497b47-87e8-4167-bc28-93e34556ea4d" /> After: <img width="2032" height="1161" alt="after" src="https://github.com/user-attachments/assets/4a87803f-67df-4bf8-ade0-306f3c9ca81e" /> Release Notes: - N/A
This commit is contained in:
@@ -130,9 +130,17 @@ impl ContextServerConfiguration {
|
||||
.ok()
|
||||
.flatten()?;
|
||||
|
||||
let command = descriptor.command(worktree_store, cx).await.log_err()?;
|
||||
|
||||
Some(ContextServerConfiguration::Extension { command, settings })
|
||||
match descriptor.command(worktree_store, cx).await {
|
||||
Ok(command) => {
|
||||
Some(ContextServerConfiguration::Extension { command, settings })
|
||||
}
|
||||
Err(e) => {
|
||||
log::error!(
|
||||
"Failed to create context server configuration from settings: {e:#}"
|
||||
);
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user