@@ -183,9 +183,9 @@ import {
183183} from "./cdtDebugAdapter/hexViewProvider" ;
184184import { configureClangSettings } from "./clang" ;
185185import { OpenOCDErrorMonitor } from "./espIdf/hints/openocdhint" ;
186- import {
187- createHintsStatusBarItem ,
188- updateHintsStatusBarItem
186+ import {
187+ createHintsStatusBarItem ,
188+ updateHintsStatusBarItem ,
189189} from "./statusBar" ;
190190
191191// Global variables shared by commands
@@ -3675,10 +3675,13 @@ export async function activate(context: vscode.ExtensionContext) {
36753675 updateHintsStatusBarItem ( false ) ;
36763676 } ) ;
36773677
3678- vscode . commands . registerCommand ( "espIdf.errorHints.clearBuildErrors" , ( ) => {
3679- treeDataProvider . clearErrorHints ( false ) ; // Clear only build errors
3680- updateHintsStatusBarItem ( false ) ;
3681- } ) ;
3678+ vscode . commands . registerCommand (
3679+ "espIdf.errorHints.clearBuildErrors" ,
3680+ ( ) => {
3681+ treeDataProvider . clearErrorHints ( false ) ; // Clear only build errors
3682+ updateHintsStatusBarItem ( false ) ;
3683+ }
3684+ ) ;
36823685
36833686 vscode . commands . registerCommand (
36843687 "espIdf.errorHints.clearOpenOCDErrors" ,
@@ -3742,10 +3745,7 @@ export async function activate(context: vscode.ExtensionContext) {
37423745
37433746 // Process all errors and collect hints
37443747 for ( const { diagnostic } of espIdfDiagnostics ) {
3745- await treeDataProvider . searchError (
3746- diagnostic . message ,
3747- workspaceRoot
3748- ) ;
3748+ await treeDataProvider . searchError ( diagnostic . message , workspaceRoot ) ;
37493749 }
37503750 } ;
37513751
0 commit comments