From 9d50bd222ca7347d606b69b4a753da21ae4690ca Mon Sep 17 00:00:00 2001 From: zhaohe <1013909206@qq.com> Date: Tue, 19 Jul 2022 14:52:14 +0800 Subject: [PATCH] update --- .gitignore | 3 ++- .vscode/settings.json | 5 ++++- link-esp-idf-v4.4.ps1 | 8 +++++--- setup.ps1 | 7 +++++-- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 07ed706..6772b3d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -build/* \ No newline at end of file +build/* +esp-idf-v4.4 \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 988e1ae..c4a5a13 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,8 @@ { - "search.useIgnoreFiles": true, + "search.useIgnoreFiles": false, "search.followSymlinks": true, "search.quickOpen.includeSymbols": true, + "search.exclude": { + "**/build/*": true + }, } \ No newline at end of file diff --git a/link-esp-idf-v4.4.ps1 b/link-esp-idf-v4.4.ps1 index cf21993..372b84f 100644 --- a/link-esp-idf-v4.4.ps1 +++ b/link-esp-idf-v4.4.ps1 @@ -1,3 +1,5 @@ -# New-Item -ItemType SymbolicLink ` -# -Path esp-idf-v4.4 ` -# -Target C:\Espressif\frameworks\esp-idf-v4.4 \ No newline at end of file +if(-NOT(Test-Path ".\esp-idf-v4.4")) +{ + $command ="cmd /c mklink /J esp-idf-v4.4 C:\Espressif\frameworks\esp-idf-v4.4" + invoke-expression "$command" +} diff --git a/setup.ps1 b/setup.ps1 index 3ce69f1..8656ab3 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -2,5 +2,8 @@ C:\Espressif/Initialize-Idf.ps1 -IdfId esp-idf-8de2bd0d9cffd2eca3d3f8442939a034 #创建软连接到C盘中的SDK,方便代码搜索,查阅,拷贝 -$command ="cmd /c mklink /J esp-idf-v4.4 C:\Espressif\frameworks\esp-idf-v4.4" -invoke-expression "$command" \ No newline at end of file +if(-NOT(Test-Path ".\esp-idf-v4.4")) +{ + $command ="cmd /c mklink /J esp-idf-v4.4 C:\Espressif\frameworks\esp-idf-v4.4" + invoke-expression "$command" +} \ No newline at end of file