Skip to content

Commit e11f90a

Browse files
authored
Merge pull request #8 from devdotnetorg/dev
Dev => Master
2 parents 3284d23 + 78ea990 commit e11f90a

File tree

136 files changed

+2759
-1667
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+2759
-1667
lines changed

.vscodeignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ src/**
1212

1313
#add
1414
#folders
15+
archive/**
1516
assets/source/**
1617
bashscript/_old_*.sh
1718
bashscript/_test*.sh
1819
docs/**
1920
packages/**
2021
samples/**
21-
vscodetemplates/**
22-
windows/**
2322

2423
#files
2524
.gitattributes

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## v0.3.2 (24-03-2023)
4+
5+
- Added output of diagnostic information when connecting via ssh protocol.
6+
- Added stdErr and codeErr output at the end of ssh script execution.
7+
- Fixed the problem of long execution of scripts when adding a device.
8+
- Added parameter `fastiot.template.loadonstart`, you can disable the loading of templates at the start of the extension.
9+
- Added parameter `fastiot.template.updateinterval`, time interval between template updates.
10+
- Added parameter `fastiot.template.isupdate`, disables template updates.
11+
- Added `Restore/upgrade system templates` command to restore system templates.
12+
- Variables added for project templates: `%{extension.apps.builtin.aswindows}`, `%{os.userinfo.username}`.
13+
- Compliance with UX Guidelines is done.
14+
- Improved UI.
15+
- Changed the description of the settings.
16+
- Added Crlf normalization for bash scripts.
17+
- Fixed bugs.
18+
319
## v0.3.1 (27-02-2023)
420

521
- Bugs fixed.

CHANGELOG_ru.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
# Changelog
1+
# Список изменений
2+
3+
## v0.3.2 (24-03-2023)
4+
5+
- Добавлен вывод диагностической информации при подключении по ssh-протоколу.
6+
- По окончанию выполнения ssh-скриптов добавлен вывод stdErr и codeErr.
7+
- Решена проблема долгого выполнения скриптов при добавлении устройства.
8+
- Добавлен параметр `fastiot.template.loadonstart`, можно отключить загрузку шаблонов при старте расширения.
9+
- Добавлен параметр `fastiot.template.updateinterval`, интервал времени между обновлениями шаблонов.
10+
- Добавлен параметр `fastiot.template.isupdate`, отключает обновление шаблонов.
11+
- Добавлена команда `Restore/upgrade system templates` для восстановления системных шаблонов.
12+
- Для шаблонов проектов добавлены переменные: `%{extension.apps.builtin.aswindows}`, `%{os.userinfo.username}`.
13+
- Выполнено соответствие с UX Guidelines.
14+
- Улучшен UI.
15+
- Изменено описание настроек.
16+
- Добавлена Crlf нормализация для bash-скриптов.
17+
- Исправлены ошибки.
218

319
## v0.3.1 (27-02-2023)
420

Create-extension.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
2. npm install -g yo generator-code
66

77
3. Create App: yo code
8+
9+
Links:
10+
11+
- Topic - [Your First Extension](https://code.visualstudio.com/api/get-started/your-first-extension);
12+
- [Creating Extensions for Visual Studio Code A Complete Guide - Syncfusion Blogs](https://www.syncfusion.com/blogs/post/creating-extensions-for-visual-studio-code-a-complete-guide.aspx/amp).

ISSUES.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Known Issues
22

3-
1. The user interface of the extension does not follow the [UX Guidelines](https://code.visualstudio.com/api/ux-guidelines/overview).
3+
1. The user interface of the extension does not partially comply with the [UX Guidelines](https://code.visualstudio.com/api/ux-guidelines/overview).
44

5-
2. It takes a long time to create a device profile.
5+
2. Commands are executed slowly.
66

7-
3. Commands are executed slowly.
8-
9-
4. Low speed of execution of bash scripts.
7+
3. Low speed of execution of bash scripts.

ISSUES_ru.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Известные проблемы
22

3-
1. Пользовательский интерфейс расширения не соответствует [UX Guidelines](https://code.visualstudio.com/api/ux-guidelines/overview).
3+
1. Пользовательский интерфейс расширения частично не соответствует [UX Guidelines](https://code.visualstudio.com/api/ux-guidelines/overview).
44

5-
2. Долго создается профиль устройства.
5+
2. Медленно выполняются команды.
66

7-
3. Медленно выполняются команды.
8-
9-
4. Низкая скорость выполнения bash скриптов.
7+
3. Низкая скорость выполнения bash-скриптов.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Additional extensions required for developing .NET applications:
3636

3737
Recommended additional extensions that improve the development process and interaction with the remote device:
3838

39-
- [NuGet Package Manager](https://marketplace.visualstudio.com/items?itemName=jmrog.vscode-nuget-package-manager "NuGet Package Manager") - adding Nuget packages (later the Nuget package manager will be built into extension);
39+
- [NuGet Package Manager GUI](https://marketplace.visualstudio.com/items?itemName=aliasadidev.nugetpackagemanagergui "NuGet Package Manager GUI") - adding Nuget packages (later the Nuget package manager will be built into the extension);
4040
- [DeviceTree](https://marketplace.visualstudio.com/items?itemName=plorefice.devicetree "DeviceTree") - Syntax support for Device Tree (DT) files. Used to edit `*.dts` files. For example, it will be necessary if it becomes necessary to adapt the [SPI LCD ILI9341 display](https://devdotnet.org/post/rabota-s-gpio-v-linux-na-primere-banana-pi-bpi-m64-chast-4-device-tree-overlays-podkluchenie-displey-spi-lcd-ili9341/ "SPI LCD ILI9341 display") for your SBC;
4141
- [Output Colorizer](https://marketplace.visualstudio.com/items?itemName=IBM.output-colorizer "Output Colorizer") - adds color to the test messages in the OUTPUT window, makes it easier to perceive the information provided by the extension.
4242

@@ -93,6 +93,6 @@ See [ISSUES](ISSUES.md "ISSUES") and [Issues on GitHub](https://github.com/devdo
9393

9494
Testing was performed on single-board computers:
9595

96-
- [Cubieboard](https://github.com/devdotnetorg/Cubieboard "Cubieboard")
97-
- [Cubietruck](https://devdotnet.org/post/otladochnaya-plata-cubietruck/ "Cubietruck")
98-
- [Banana Pi BPI-M64](https://devdotnet.org/post/otladochnaya-plata-banana-pi-bpi-m64/ "Banana Pi BPI-M64")
96+
- [Cubieboard](https://github.com/devdotnetorg/Cubieboard "Cubieboard"). Armbian distribution.
97+
- [Cubietruck](https://devdotnet.org/post/otladochnaya-plata-cubietruck/ "Cubietruck"). Armbian distribution.
98+
- [Banana Pi BPI-M64](https://devdotnet.org/post/otladochnaya-plata-banana-pi-bpi-m64/ "Banana Pi BPI-M64"). Armbian distribution.

README_ru.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
Рекомендуемые дополнительные расширения, улучшающие процесс разработки и взаимодействия с удаленным устройством:
3838

39-
- [NuGet Package Manager](https://marketplace.visualstudio.com/items?itemName=jmrog.vscode-nuget-package-manager "NuGet Package Manager") — добавление Nuget-пакетов (позже менеджер Nuget-пакетов будет встроен в расширение);
39+
- [NuGet Package Manager GUI](https://marketplace.visualstudio.com/items?itemName=aliasadidev.nugetpackagemanagergui "NuGet Package Manager GUI") — добавление Nuget-пакетов (позже менеджер Nuget-пакетов будет встроен в расширение);
4040
- [DeviceTree](https://marketplace.visualstudio.com/items?itemName=plorefice.devicetree "DeviceTree") — поддержка синтаксиса для файлов дерева устройств (Device Tree, DT). Используется для редактирования файлов `*.dts`. Например, потребуется если возникнет необходимость адаптации [дисплея SPI LCD ILI9341](https://devdotnet.org/post/rabota-s-gpio-v-linux-na-primere-banana-pi-bpi-m64-chast-4-device-tree-overlays-podkluchenie-displey-spi-lcd-ili9341/ "дисплея SPI LCD ILI9341") для вашего одноплатного компьютера;
4141
- [Output Colorizer](https://marketplace.visualstudio.com/items?itemName=IBM.output-colorizer "Output Colorizer") — добавляет цвет к тестовым сообщениям в окне OUTPUT, облегчает восприятие информации выдаваемой расширением.
4242

@@ -91,8 +91,8 @@
9191

9292
## Тестирование
9393

94-
Тестирование выполнялось на одноплатных компьютерах:
94+
Тестирование выполняется на следующих одноплатных компьютерах:
9595

96-
- [Cubieboard](https://github.com/devdotnetorg/Cubieboard "Cubieboard")
97-
- [Cubietruck](https://devdotnet.org/post/otladochnaya-plata-cubietruck/ "Cubietruck")
98-
- [Banana Pi BPI-M64](https://devdotnet.org/post/otladochnaya-plata-banana-pi-bpi-m64/ "Banana Pi BPI-M64")
96+
- [Cubieboard](https://github.com/devdotnetorg/Cubieboard "Cubieboard"). Дистрибутив Armbian.
97+
- [Cubietruck](https://devdotnet.org/post/otladochnaya-plata-cubietruck/ "Cubietruck"). Дистрибутив Armbian.
98+
- [Banana Pi BPI-M64](https://devdotnet.org/post/otladochnaya-plata-banana-pi-bpi-m64/ "Banana Pi BPI-M64"). Дистрибутив Armbian.

SCHEDULE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- Compliance with UX Guidelines.
44
- Adding a WebView to select a project template.
55
- Custom installation packages.
6-
- Custom BASH scripts to run on device and PC.
6+
- Custom bash-scripts to run on device and PC.
77
- GPIO: read chips, view gpio line, control I/O.
88
- Support for Python projects.
99
- Ensuring work in Linux.

SCHEDULE_ru.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
- Соответствие UX Guidelines.
44
- Добавление WebView для выбора шаблона проекта.
55
- Пользовательские пакеты установки.
6-
- Пользовательские скрипты BASH для запуска на устройстве и ПК.
6+
- Пользовательские bash-скрипты для запуска на устройстве и ПК.
77
- GPIO: чтение chips, просмотр линии gpio, управление I/O.
88
- Поддержка Python проектов.
9-
- Обеспечение работы в Linux.
9+
- Обеспечение работы расширения в Linux.
1010
- Отображение доступных устройств: `/dev/*` и sysfs.
1111
- Сканер устройств I2C.
1212
- Добавление менеджера Nuget-пакетов.
File renamed without changes.
File renamed without changes.
File renamed without changes.

bashscript/pregetinformation.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@ set -e #Exit immediately if a comman returns a non-zero status
99

1010
echo "Run: pregetinformation.sh"
1111

12+
#
13+
PACKAGELIST="lsb-release rsync jq sudo curl wget"
14+
#
15+
1216
export DEBIAN_FRONTEND="noninteractive"
1317

18+
echo "System update and package installation: $PACKAGELIST"
19+
1420
apt-get update
15-
apt-get install -y lsb-release rsync jq sudo curl wget
21+
apt-get install -y $PACKAGELIST
22+
23+
echo "System update and package installation completed successfully"
1624

1725
echo "Successfully"
1826

bashscript/testpackagedocker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ echo "Run: testpackagedocker.sh"
1010
sudo systemctl status docker
1111
docker --version
1212
docker version
13-
docker info
13+
sudo docker info
1414

1515
echo "Successfully"

docs/Extension-settings.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ Settings:
1313
- **Fastiot › Device > ssh > Key: Bits** - key length in bits. Default value: `256`.
1414
- **Fastiot › Device > ssh > Key: Type** - The name of the algorithm used to generate the key. For more information about key algorithms, see [How To Set Up SSH Keys](https://goteleport.com/blog/how-to-set-up-ssh-keys/). Default value: `ed25519`. If you choose the `rsa` algorithm, then you will need to add the line `PubkeyAcceptedAlgorithms=+ssh-rsa` to the `/etc/ssh/sshd_config` file.
1515
- **Fastiot › Launch: Templatetitle** - template for forming the name of Launch. Variable values can be viewed at [link](Launch-title-template.md "Template for forming the name Launch"). Default value: `Launch on %{device.label} (%{project.name}, %{device.board.name}, %{device.user.debug})`.
16+
- **Fastiot › Template: Isupdate** - enable/disable updating templates from Internet resources.
17+
- **Fastiot › Template: Lastupdate** - last update time. Technical parameter.
18+
- **Fastiot › Template: Loadonstart** - loading templates at extension start. If this option is disabled, templates will only be loaded the first time they are accessed.
19+
- **Fastiot › Template: Updateinterval** - template update interval in hours.

docs/Extension-settings_ru.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
- **Fastiot › Device > ssh > Key: Bits** - длина ключа в битах. Значение по умолчанию: `256`.
1414
- **Fastiot › Device > ssh > Key: Type** - Название используемого алгоритма для генерации ключа. Более подробно об алгоритмах для ключей в публикации [How To Set Up SSH Keys](https://goteleport.com/blog/how-to-set-up-ssh-keys/). Значение по умолчанию: `ed25519`. Если выберете алгоритм `rsa`, то вам потребуется в файл `/etc/ssh/sshd_config` внести строку `PubkeyAcceptedAlgorithms=+ssh-rsa`.
1515
- **Fastiot › Launch: Templatetitle** - шаблон для формирования названия Launch. Значения переменных можно посмотреть по [ссылке](Launch-title-template_ru.md "Template for forming the name Launch"). Значение по умолчанию: `Launch on %{device.label} (%{project.name}, %{device.board.name}, %{device.user.debug})`.
16+
- **Fastiot › Template: Isupdate** - вкл/выкл обновление шаблонов с ресурсов сети Интернет.
17+
- **Fastiot › Template: Lastupdate** - время последнего обновления. Технически параметр.
18+
- **Fastiot › Template: Loadonstart** - загрузка шаблонов при старте расширения. При отключенном параметре шаблоны загрузятся только при первом обращение к ним.
19+
- **Fastiot › Template: Updateinterval** - интервал обновления шаблонов в часах.

docs/Getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ apt-get install -y sudo
1616
```bash
1717
sudo apt-get update
1818
sudo apt-get install -y openssh-server mc
19-
sudo systemctl reload ssh
20-
sudo systemctl status ssh
2119
sudo mcedit /etc/ssh/sshd_config
2220
```
2321

@@ -118,6 +116,8 @@ To run a .NET IoT application and perform remote debugging, you need to install:
118116

119117
Sample projects with added configuration Launch (`/.vscode/launch.json`) and Tasks (`/.vscode/tasks.json`) are located in the [samples](/samples/) folder.
120118

119+
The `template.fastiot.yaml` file will be placed in the project folder. This file is required to determine the template ID when adding Launch. If it is removed, then there will be no exact definition of the template from which the project was formed. From the `template.fastiot.yaml` file, only the template identifier string `id: dotnet-console` is taken.
120+
121121
## Rebuild Launch
122122

123123
Launch (`/.vscode/launch.json`) and Tasks (`/.vscode/tasks.json`) configurations contain absolute paths to binary files that are loaded on the device, for example `/cygdrive/d/Anton/Projects/Tests /DotnetConsoleAppRuntimeInfo/bin/Debug/net5.0/linux-arm/`. In this regard, if you change the path to the `Applicationdatafolder` folder in the settings or rename / move the project folder, then the paths become non-existent. In this case, you need to rebuild (Rebuild) Launch. Select the required Launch and then call the context menu, click on the `Rebuild` menu item.

docs/Getting-started_ru.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ apt-get install -y sudo
1616
```bash
1717
sudo apt-get update
1818
sudo apt-get install -y openssh-server mc
19-
sudo systemctl reload ssh
20-
sudo systemctl status ssh
2119
sudo mcedit /etc/ssh/sshd_config
2220
```
2321

@@ -61,7 +59,7 @@ sudo systemctl status ssh
6159

6260
### Шаг 3 — Установка пакетов
6361

64-
Для запуска .NET IoT приложения и выполнения удаленной отладки необходимо установить:
62+
Для запуска .NET IoT приложении и выполнения удаленной отладки необходимо установить:
6563

6664
- Среду исполнения - .NET Runtime;
6765
- Удаленный отладчик - .NET Debugger (vsdbg).
@@ -118,6 +116,8 @@ sudo systemctl status ssh
118116

119117
Примеры проектов с добавленной конфигурацией Launch (`/.vscode/launch.json`) и Tasks (`/.vscode/tasks.json`) располагаются в папке [samples](/samples/).
120118

119+
В папке с проектом будет размещен файл `template.fastiot.yaml`. Этот файл необходим для определения идентификатора шаблона при добавлении Launch. Если его удалить, то не будет точного определения шаблона из которого был сформирован проект. Из файла `template.fastiot.yaml` берется только строка идентификатор шаблона `id: dotnet-console`.
120+
121121
## Перестройка (Rebuild) Launch
122122

123123
Конфигурации Launch (`/.vscode/launch.json`) и Tasks (`/.vscode/tasks.json`) содержат абсолютные пути к бинарным файлам, которые загружаются на устройство, например `/cygdrive/d/Anton/Projects/Tests/DotnetConsoleAppRuntimeInfo/bin/Debug/net5.0/linux-arm/`. В связи с этим, если вы изменяете путь к папке `Applicationdatafolder` в настройках или переименовываете/перемещаете папку с проектом, то пути становятся несуществующими. В этом случае необходимо перестроить (Rebuild) Launch. Выбрать необходимый Launch и затем вызвать контекстное меню, нажать на пункт меню `Rebuild`.

docs/Launch-title-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ Default value: `Launch on %{device.label} (%{project.name}, %{device.board.name}
44

55
Merging example: `Launch on cubieboard (DotnetConsoleBlinkLEDApplication, Cubieboard, debugvscode)`.
66

7-
Variables for creating the name of the Launch configuration and their values can be viewed on the [Project Templates](Project-templates.md "Project Templates") page.
7+
See the [Project Templates](Project-templates.md "Project Templates") page for the variables to create the Launch configuration name and their values.
88

99
If you need additional variables, please create an [ISSUE](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/issues "ISSUE").

docs/Launch-title-template_ru.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
Пример слияния: `Launch on cubieboard (DotnetConsoleBlinkLEDApplication, Cubieboard, debugvscode)`.
66

7-
Переменные для создания названия конфигурации Launch и их значения можете посмотреть на странице [Project Templates](Project-templates_ru.md "Project Templates").
7+
Переменные для создания названия конфигурации Launch и их значения смотрите на странице [Project Templates](Project-templates_ru.md "Project Templates").
88

99
Если вам нужны дополнительные переменные, создайте [ISSUE](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/issues "ISSUE").

0 commit comments

Comments
 (0)