File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -3777,17 +3777,22 @@ export async function activate(context: vscode.ExtensionContext) {
37773777 return ;
37783778 }
37793779
3780- // Process the first error if available
3781- const errorMsg = espIdfDiagnostics [ 0 ] . diagnostic . message ;
3782- const foundHint = await treeDataProvider . searchError (
3783- errorMsg ,
3784- workspaceRoot
3785- ) ;
3780+ // Process all errors and collect hints
3781+ let foundAnyHint = false ;
3782+ for ( const { diagnostic } of espIdfDiagnostics ) {
3783+ const foundHint = await treeDataProvider . searchError (
3784+ diagnostic . message ,
3785+ workspaceRoot
3786+ ) ;
3787+ if ( foundHint ) {
3788+ foundAnyHint = true ;
3789+ }
3790+ }
37863791
37873792 const showHintsNotification = context . workspaceState . get (
37883793 "idf.showHintsNotification"
37893794 ) ;
3790- if ( foundHint && showHintsNotification ) {
3795+ if ( foundAnyHint && showHintsNotification ) {
37913796 const actions = [
37923797 {
37933798 label : vscode . l10n . t ( "💡 Show Hints" ) ,
@@ -3807,7 +3812,7 @@ export async function activate(context: vscode.ExtensionContext) {
38073812 ] ;
38083813
38093814 await showInfoNotificationWithMultipleActions (
3810- vscode . l10n . t ( `Possible hint found for the error: {0}` , errorMsg ) ,
3815+ vscode . l10n . t ( `Possible hints found for build errors. Click to view details.` ) ,
38113816 actions
38123817 ) ;
38133818 }
You can’t perform that action at this time.
0 commit comments