Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add setup cmd install and reuse #1028

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Click <kbd>F1</kbd> to show Visual studio code actions, then type **ESP-IDF** to
| Get HTML Coverage Report for project | | |
| Import ESP-IDF Project | | |
| Install ESP-ADF | | |
| Install ESP-IDF | | |
| Install ESP-IDF Python Packages | | |
| Install ESP-MDF | | |
| Install ESP-Matter | | |
Expand Down Expand Up @@ -161,6 +162,7 @@ Click <kbd>F1</kbd> to show Visual studio code actions, then type **ESP-IDF** to
| Unit Test: Install ESP-IDF PyTest requirements | | |
| Remove Editor coverage | | |
| Run ESP-IDF-SBOM vulnerability check | | |
| Use ESP-IDF setup from IDF Installer | | |

# About commands

Expand Down
2 changes: 2 additions & 0 deletions i18n/en/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
"espIdf.unitTest.installPyTest.title": "Unit Test: Install ESP-IDF PyTest requirements",
"espIdf.saveDefSdkconfig.title": "ESP-IDF: Save Default SDKCONFIG file (save-defconfig)",
"espIdf.createSbom.title": "Run ESP-IDF-SBOM vulnerability check",
"espIdf.installEspIdf.title": "Install ESP-IDF",
"espIdf.useEspIdfJsonSetup.title": "Use ESP-IDF setup from IDF Installer",
"esp.component-manager.ui.show.title": "Show Component Registry",
"esp.component-manager.cli.addDependencyError": "Error encountered while adding dependency to the component",
"debug.initConfig.name": "ESP-IDF Debug: Launch",
Expand Down
2 changes: 2 additions & 0 deletions i18n/es/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
"espIdf.clearSavedIdfSetups.title": "Limpiar configuraciones de IDF guardadas",
"espIdf.unitTest.buildFlashUnitTestApp.title": "Unit Test: Construir y programar la app unit test app para pruebas",
"espIdf.unitTest.installPyTest.title": "Unit Test: Instalar requerimientos ESP-IDF PyTest",
"espIdf.installEspIdf.title": "Instalar ESP-IDF",
"espIdf.useEspIdfJsonSetup.title": "Usar la configuracion ESP-IDF del Instalador IDF",
"debug.initConfig.name": "Lanzar Depuracion ESP-IDF:",
"debug.initConfig.description": "Nueva configuración para proyectos ESP-IDF",
"param.adapterTargetName": "Target para el ESP-IDF Debug Adapter",
Expand Down
2 changes: 2 additions & 0 deletions i18n/ru/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
"espIdf.unitTest.buildFlashUnitTestApp.title": "Модульный тест: сборка и запуск приложения модульного тестирования для тестирования.",
"espIdf.unitTest.installPyTest.title": "Модульный тест: установите требования ESP-IDF PyTest",
"espIdf.createSbom.title": "Запустите проверку уязвимостей ESP-IDF-SBOM.",
"espIdf.installEspIdf.title": "Установите ESP-IDF",
"espIdf.useEspIdfJsonSetup.title": "Используйте настройку ESP-IDF из установщика IDF.",
"esp.component-manager.ui.show.title": "Показать реестр компонентов",
"esp.component-manager.cli.addDependencyError": "Ошибка при добавлении зависимости к компоненту",
"debug.initConfig.name": "Отладка запуск",
Expand Down
2 changes: 2 additions & 0 deletions i18n/zh-CN/package.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
"espIdf.unitTest.buildFlashUnitTestApp.title": "单元测试:构建并闪存用于测试的单元测试应用程序",
"espIdf.unitTest.installPyTest.title": "单元测试:安装ESP-IDF PyTest要求",
"espIdf.createSbom.title": "运行ESP-IDF-SBOM漏洞检查",
"espIdf.installEspIdf.title": "安装ESP-IDF",
"espIdf.useEspIdfJsonSetup.title": "使用IDF安装程序中的ESP-IDF设置",
"esp.component-manager.ui.show.title": "显示组件注册表",
"esp.component-manager.cli.addDependencyError": "向组件添加依赖项时遇到错误",
"debug.initConfig.name": "ESP-IDF调试 启动",
Expand Down
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,16 @@
"command": "espIdf.createSbom",
"title": "%espIdf.createSbom.title%",
"category": "ESP-IDF"
},
{
"command": "espIdf.installEspIdf",
"title": "%espIdf.installEspIdf.title%",
"category": "ESP-IDF"
},
{
"command": "espIdf.useEspIdfJsonSetup",
"title": "%espIdf.useEspIdfJsonSetup.title%",
"category": "ESP-IDF"
}
],
"breakpoints": [
Expand Down
2 changes: 2 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
"espIdf.projectConf.title": "Select project configuration",
"espIdf.saveDefSdkconfig.title": "ESP-IDF: Save Default SDKCONFIG file (save-defconfig)",
"espIdf.createSbom.title": "Run ESP-IDF-SBOM vulnerability check",
"espIdf.installEspIdf.title": "Install ESP-IDF",
"espIdf.useEspIdfJsonSetup.title": "Use ESP-IDF setup from IDF Installer",
"esp.component-manager.ui.show.title": "Show Component Registry",
"esp.component-manager.cli.addDependencyError": "Error encountered while adding dependency to the component",
"debug.initConfig.name": "ESP-IDF Debug: Launch",
Expand Down
2 changes: 2 additions & 0 deletions schema.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@
"espIdf.unitTest.buildFlashUnitTestApp.title",
"espIdf.unitTest.installPyTest.title",
"espIdf.createSbom.title",
"espIdf.installEspIdf.title",
"espIdf.useEspIdfJsonSetup.title",
"debug.initConfig.name",
"debug.initConfig.description",
"param.adapterTargetName",
Expand Down
9 changes: 9 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ import { getFileList, getTestComponents } from "./espIdf/unitTest/utils";
import { saveDefSdkconfig } from "./espIdf/menuconfig/saveDefConfig";
import { createSBOM, installEspSBOM } from "./espBom";
import { getEspHomeKitSdk } from "./espHomekit/espHomekitDownload";
import { downloadEspIdf, useExistingEspIdfJsonSetup } from "./setup/cmd";

// Global variables shared by commands
let workspaceRoot: vscode.Uri;
Expand Down Expand Up @@ -2286,6 +2287,14 @@ export async function activate(context: vscode.ExtensionContext) {
});
});

registerIDFCommand("espIdf.installEspIdf", async () => {
await downloadEspIdf(context, workspaceRoot);
});

registerIDFCommand("espIdf.useEspIdfJsonSetup", async () => {
await useExistingEspIdfJsonSetup(workspaceRoot);
});

registerIDFCommand("espIdf.importProject", async () => {
const srcFolder = await vscode.window.showOpenDialog({
canSelectFolders: true,
Expand Down
Loading
Loading