@@ -140,12 +140,24 @@ export class EspMatterCloning extends AbstractCloning {
140140 ) ;
141141 }
142142
143- public async initEsp32PlatformSubmodules ( espMatterDir : string ) {
143+ public async initEsp32PlatformSubmodules (
144+ espMatterDir : string ,
145+ workspace : Uri
146+ ) {
144147 OutputChannel . appendLine ( "Downloading Matter ESP32 platform submodules" ) ;
148+ const notificationMode = readParameter (
149+ "idf.notificationMode" ,
150+ workspace
151+ ) as string ;
152+ const progressLocation =
153+ notificationMode === NotificationMode . All ||
154+ notificationMode === NotificationMode . Notifications
155+ ? ProgressLocation . Notification
156+ : ProgressLocation . Window ;
145157 await window . withProgress (
146158 {
147159 cancellable : true ,
148- location : ProgressLocation . Notification ,
160+ location : progressLocation ,
149161 title : "ESP-IDF: Installing ESP-Matter" ,
150162 } ,
151163 async (
@@ -254,10 +266,19 @@ export async function installPythonReqs(
254266 confToolsPath ||
255267 process . env . IDF_TOOLS_PATH ||
256268 join ( containerPath , ".espressif" ) ;
269+ const notificationMode = readParameter (
270+ "idf.notificationMode" ,
271+ workspace
272+ ) as string ;
273+ const progressLocation =
274+ notificationMode === NotificationMode . All ||
275+ notificationMode === NotificationMode . Notifications
276+ ? ProgressLocation . Notification
277+ : ProgressLocation . Window ;
257278 await window . withProgress (
258279 {
259280 cancellable : true ,
260- location : ProgressLocation . Notification ,
281+ location : progressLocation ,
261282 title : "ESP-IDF: Installing ESP-Matter" ,
262283 } ,
263284 async (
@@ -283,7 +304,7 @@ export async function installPythonReqs(
283304export async function getEspMatter ( workspace ?: Uri ) {
284305 const gitPath =
285306 ( await readParameter ( "idf.gitPath" , workspace ) ) || "/usr/bin/git" ;
286- let espMatterPath ;
307+ let espMatterPath : string ;
287308 const espMatterInstaller = new EspMatterCloning ( gitPath , workspace ) ;
288309 const installAllSubmodules = await window . showQuickPick (
289310 [
@@ -312,7 +333,10 @@ export async function getEspMatter(workspace?: Uri) {
312333 ) ;
313334 espMatterPath = readParameter ( "idf.espMatterPath" , workspace ) ;
314335 await espMatterInstaller . getSubmodules ( espMatterPath ) ;
315- await espMatterInstaller . initEsp32PlatformSubmodules ( espMatterPath ) ;
336+ await espMatterInstaller . initEsp32PlatformSubmodules (
337+ espMatterPath ,
338+ workspace
339+ ) ;
316340 await espMatterInstaller . startBootstrap ( true ) ;
317341 }
318342 await TaskManager . runTasks ( ) ;
0 commit comments