@@ -27,16 +27,13 @@ export async function activate(context: vscode.ExtensionContext) {
2727 cancellable : false ,
2828 } ,
2929 async ( progress ) => {
30- vscode . window . showInformationMessage ( "Analysis started." ) ;
3130 const handleLog = ( log : string ) => {
3231 outputChannel . appendLine ( removeAnsiEscapeCodes ( log ) ) ;
3332 } ;
3433
3534 systemExecuter . onLog ( handleLog ) ;
3635 await systemExecuter . executeScanner ( args ) ;
3736 systemExecuter . offLog ( handleLog ) ;
38-
39- vscode . window . showInformationMessage ( "Analysis completed." ) ;
4037 }
4138 ) ;
4239 } ;
@@ -116,6 +113,10 @@ export async function activate(context: vscode.ExtensionContext) {
116113 const rootDirPath = workspaceFolders [ 0 ] . uri . fsPath ;
117114 outputChannel . appendLine ( `Analysis Subject: ${ rootDirPath } \n` ) ;
118115
116+ vscode . window . showInformationMessage (
117+ "Analysis started on the root directory."
118+ ) ;
119+
119120 const excelArgs = commandParser . parseCmd2Args ( {
120121 type : "analyze" ,
121122 config : {
@@ -142,6 +143,10 @@ export async function activate(context: vscode.ExtensionContext) {
142143
143144 await runFosslightScanner ( yamlArgs ) ;
144145
146+ vscode . window . showInformationMessage (
147+ " Analysis completed on the root directory."
148+ ) ;
149+
145150 const outputDirPath = path . join ( rootDirPath , "fosslight_report" ) ;
146151 await printOutput ( outputDirPath ) ;
147152 }
@@ -195,12 +200,20 @@ export async function activate(context: vscode.ExtensionContext) {
195200 } ,
196201 } ) ;
197202
203+ vscode . window . showInformationMessage (
204+ "Analysis started on the current file."
205+ ) ;
206+
198207 await runFosslightScanner ( args ) ;
199208
200209 // Remove the temporary directory
201210 await fse . remove ( tempDirPath ) ;
202211 console . log ( "Removed temporary directory: " , tempDirPath ) ;
203212
213+ vscode . window . showInformationMessage (
214+ "Analysis completed on the current file."
215+ ) ;
216+
204217 const outputDirPath = path . join ( rootDirPath , "fosslight_report" ) ;
205218 await printOutput ( outputDirPath ) ;
206219 } catch ( error ) {
0 commit comments