Tone down extension errors (#42080)
Kirill Bulatov
created
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
Change summary
crates/project/src/context_server_store.rs | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
Detailed changes
@@ -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
+ }
+ }
}
}
}