Skip to content

Commit 9c8d86c

Browse files
Bugfix/create project (#1698)
* add create project command * add command to docs * update docs and cmd name * update cmd name and fix progress end before open msg * update progress title and status * add clang config
1 parent 934919c commit 9c8d86c

20 files changed

+141
-39
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,18 @@ Press <kbd>F1</kbd> or click menu `View` -> `Command Palette...` to show Visual
227227
<td><kbd>Ctrl</kbd> <kbd>E</kbd> <kbd>D</kbd></td>
228228
</tr>
229229
<tr>
230-
<td rowspan=4 align="center">Project creation</td>
230+
<td rowspan=5 align="center">Project creation</td>
231231
<td>Create New ESP-IDF Component</td>
232232
<td>Create a new component in the current directory based on ESP-IDF component template.</td>
233233
<td></td>
234234
<td></td>
235235
</tr>
236+
<tr>
237+
<td>Create New Empty Project</td>
238+
<td>Ask for the new project name, choose the directory to create the project, and show a notification to open the newly created project.</td>
239+
<td></td>
240+
<td></td>
241+
</tr>
236242
<tr>
237243
<td>Import ESP-IDF Project</td>
238244
<td>Import an existing ESP-IDF project, add .vscode and .devcontainer files to a new location, and optionally rename the project.</td>

README_CN.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,18 @@ ESP-IDF 扩展在 VS Code 底部蓝色窗口的状态栏中提供了一系列命
227227
<td><kbd>Ctrl</kbd> <kbd>E</kbd> <kbd>D</kbd></td>
228228
</tr>
229229
<tr>
230-
<td rowspan=4 align="center">创建项目</td>
230+
<td rowspan=5 align="center">创建项目</td>
231231
<td>基于模板创建新项目</td>
232232
<td>使用扩展中的项目模板来创建一个新的 ESP-IDF 项目。</td>
233233
<td><kbd>⌘</kbd> <kbd>I</kbd> <kbd>C</kbd></td>
234234
<td><kbd>Ctrl</kbd> <kbd>E</kbd> <kbd>C</kbd></td>
235235
</tr>
236+
<tr>
237+
<td>创建新的空项目</td>
238+
<td>询问新项目名称,选择创建项目的目录,并显示通知以打开新创建的项目。</td>
239+
<td></td>
240+
<td></td>
241+
</tr>
236242
<tr>
237243
<td>创建新 ESP-IDF 组件</td>
238244
<td>在当前目录下,基于 ESP-IDF 组件模板创建新组件。</td>

docs_espressif/en/commands.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ All commands start with ``ESP-IDF:``.
3636
- Configure the current ESP-IDF project to use esp-clang as toolchain to use and configure LLVM Clang extension in settings.json.
3737
* - Create New ESP-IDF Component
3838
- Create a new component in the current directory based on ESP-IDF component template.
39+
* - Create New Empty Project
40+
- Ask for the new project name, choose the directory to create the project, and show a notification to open the newly created project.
3941
* - Dispose of Current SDK Configuration Editor Server Process
4042
- If you already executed the SDK Configuration editor, a cache process will remain in the background for faster reopening. This command will dispose of such cache process.
4143
* - Doctor Command

docs_espressif/zh_CN/commands.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
- 在项目的 SDKConfig 文件中设置必要的值,启用代码覆盖率分析。
3535
* - 创建新 ESP-IDF 组件
3636
- 在当前目录下,基于 ESP-IDF 组件模板创建新组件。
37+
* - 创建新的空项目
38+
- 询问新项目名称,选择创建项目的目录,并显示通知以打开新创建的项目。
3739
* - 清理当前 SDK 配置编辑器服务器进程
3840
- 若先前执行过 ``SDK 配置编辑器`` 命令,则后台将保留缓存进程,以便下次更快打开编辑器。此命令将清理此类缓存进程。
3941
* - 诊断命令

l10n/bundle.l10n.es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"ESP-IDF container files have been added to the project.": "Se han agregado archivos contenedores ESP-IDF al proyecto.",
4444
"Enter ESP-IDF component name": "Ingrese el nombre del componente ESP-IDF",
4545
"The ESP-IDF component {componentName} has been created": "Se ha creado el componente ESP-IDF {componentName}",
46+
"ESP-IDF project {name} has been created": "Se ha creado el proyecto ESP-IDF {name}",
4647
"The current directory is not an ESP-IDF project.": "El directorio actual no es un proyecto ESP-IDF.",
4748
"ESP-IDF: SDK Configuration Editor": "ESP-IDF: Editor de configuración del SDK",
4849
"ESP-IDF: Save Default Configuration (save-defconfig)": "ESP-IDF: Guardar configuración predeterminada (save-defconfig)",

l10n/bundle.l10n.pt.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"ESP-IDF container files have been added to the project.": "Arquivos contêiner ESP-IDF foram adicionados ao projeto.",
4444
"Enter ESP-IDF component name": "Insira o nome do componente ESP-IDF",
4545
"The ESP-IDF component {componentName} has been created": "O componente ESP-IDF {componentName} foi criado",
46+
"ESP-IDF project {name} has been created": "O projeto ESP-IDF {name} foi criado",
4647
"The current directory is not an ESP-IDF project.": "O diretório atual não é um projeto ESP-IDF.",
4748
"ESP-IDF: SDK Configuration Editor": "ESP-IDF: Editor de configuração do SDK",
4849
"ESP-IDF: Save Default Configuration (save-defconfig)": "ESP-IDF: Salvar configuração padrão (save-defconfig)",

l10n/bundle.l10n.ru.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"ESP-IDF container files have been added to the project.": "В проект добавлены файлы-контейнеры ESP-IDF.",
4444
"Enter ESP-IDF component name": "Введите имя компонента ESP-IDF",
4545
"The ESP-IDF component {componentName} has been created": "Компонент ESP-IDF {comComponentName} создан",
46+
"ESP-IDF project {name} has been created": "Проект ESP-IDF {name} создан",
4647
"The current directory is not an ESP-IDF project.": "Текущий каталог не является проектом ESP-IDF.",
4748
"ESP-IDF: SDK Configuration Editor": "ESP-IDF: Редактор конфигурации SDK",
4849
"ESP-IDF: Save Default Configuration (save-defconfig)": "ESP-IDF: сохранить конфигурацию по умолчанию (save-defconfig)",

l10n/bundle.l10n.zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"ESP-IDF container files have been added to the project.": "ESP-IDF 容器文件已添加到项目中。",
4444
"Enter ESP-IDF component name": "输入 ESP-IDF 组件名称",
4545
"The ESP-IDF component {componentName} has been created": "已创建 ESP-IDF 组件 {componentName}",
46+
"ESP-IDF project {name} has been created": "已创建 ESP-IDF 项目 {name}",
4647
"The current directory is not an ESP-IDF project.": "当前目录并非 ESP-IDF 项目。",
4748
"ESP-IDF: SDK Configuration Editor": "ESP-IDF:SDK 配置编辑器",
4849
"ESP-IDF: Save Default Configuration (save-defconfig)": "ESP-IDF:保存默认配置 (save-defconfig)",

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,6 +1698,11 @@
16981698
"title": "%espIdf.newProject.start.title%",
16991699
"category": "ESP-IDF"
17001700
},
1701+
{
1702+
"command": "espIdf.createNewProject",
1703+
"title": "%espIdf.createNewProject.title%",
1704+
"category": "ESP-IDF"
1705+
},
17011706
{
17021707
"command": "espIdf.eraseFlash",
17031708
"title": "%espIdf.eraseFlash.title%",

package.nls.es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"espIdf.monitorDevice.title": "Monitorear Dispositivo",
6767
"espIdf.monitorQemu.title": "Monitorear Dispositivo QEMU",
6868
"espIdf.newProject.start.title": "Nuevo Proyecto",
69+
"espIdf.createNewProject.title": "Crear Nuevo Proyecto Vacío",
6970
"espIdf.ninja.summary.title": "Mostrar Resumen de Compilación Ninja",
7071
"espIdf.openDocUrl.title": "Abrir Documentación ESP-IDF...",
7172
"espIdf.openOCDCommand.title": "Administrador de OpenOCD",

0 commit comments

Comments
 (0)