File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,19 @@ export async function setCurrentSettingsInTemplate(
30
30
) {
31
31
const settingsJson = await readJSON ( settingsJsonPath ) ;
32
32
const isWin = process . platform === "win32" ? "Win" : "" ;
33
- const customExtraVars = readParameter (
34
- "idf.customExtraVars" ,
35
- workspace
36
- ) as { [ key : string ] : string } ;
33
+ const customExtraVars = readParameter ( "idf.customExtraVars" , workspace ) as {
34
+ [ key : string ] : string ;
35
+ } ;
37
36
customExtraVars [ "IDF_PATH" ] = idfPathDir ;
38
37
customExtraVars [ "IDF_TOOLS_PATH" ] = toolsPath ;
39
-
38
+ const adfPathDir = readParameter ( "idf.espAdfPath" , workspace ) ;
39
+ const mdfPathDir = readParameter ( "idf.espMdfPath" , workspace ) ;
40
+ if ( adfPathDir ) {
41
+ settingsJson [ "idf.espAdfPath" + isWin ] = adfPathDir ;
42
+ }
43
+ if ( mdfPathDir ) {
44
+ settingsJson [ "idf.espMdfPath" + isWin ] = mdfPathDir ;
45
+ }
40
46
settingsJson [ "idf.customExtraVars" ] = customExtraVars ;
41
47
if ( openOcdConfigs ) {
42
48
settingsJson [ "idf.openOcdConfigs" ] =
You can’t perform that action at this time.
0 commit comments