context inspector: Log when no suggestions (#16208)

Release Notes:

- N/A
This commit is contained in:
Thorsten Ball 2024-08-14 14:58:32 +02:00 committed by GitHub
parent 55563831c5
commit 0eb96c72e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,6 +56,10 @@ impl ContextInspector {
crate::WorkflowStepStatus::Resolved(ResolvedWorkflowStep { title, suggestions }) => {
writeln!(output, "Resolution:").ok()?;
writeln!(output, " {title:?}").ok()?;
if suggestions.is_empty() {
writeln!(output, " No suggestions").ok()?;
}
for (buffer, suggestion_groups) in suggestions {
let buffer = buffer.read(cx);
let buffer_path = buffer