Skip to content

Commit db0d243

Browse files
committed
Update docs
1 parent 98314f9 commit db0d243

5 files changed

Lines changed: 38 additions & 12 deletions

File tree

docs/Extension-settings.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ To change the extension settings, open the menu item `File > Preferences > Setti
66

77
Settings:
88

9-
- **Fastiot › Device › Account: Groups** - Linux user group on a remote device (eg Raspberry Pi) to which an account (`debugvscode`) will be added to manage the device. This group must have Administrator rights. Default value: `sudo`.
9+
- **Fastiot: Debug** - debug entities such as templates. When enabled, saves additional debugging information.
10+
- **Fastiot › Device › Account: Group** - group of users in Linux on a remote device (for example, Raspberry Pi), to which an account (`debugvscode`) will be added to manage the device. This group must have Administrator rights. Default value: `sudo`.
1011
- **Fastiot › Device › Account: Username** - account name, created on the remote device. Used to control the device and perform remote debugging. Default value: `debugvscode`.
1112
- **Fastiot › Device › All: JSON** - device settings in JSON format, it is not recommended to change them manually. Due to incorrect changes, the device list may not load.
1213
- **Fastiot › Device: Applicationdatafolder** - a shared folder for storing access keys to devices (for example, Raspberry Pi), templates, extension settings. Default value: `%userprofile%\fastiot`. Example: `C:\Users\Anton\fastiot`.
13-
- **Fastiot › Device > ssh > Key: Bits** - key length in bits. Default value: `256`.
14-
- **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.
15-
- **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.
14+
- **Fastiot › Device › Ssh › Key: Custombits** - custom key length value in bits. Overrides the setting: `Fastiot › Device › Ssh: Keytype`. Example: `256`.
15+
- **Fastiot › Device › Ssh › Key: Customtype** - the name of the custom algorithm used to generate the key. Overrides the setting: `Fastiot › Device › Ssh: Keytype`. Example: `ed25519`.
16+
- **Fastiot › Device › Ssh: Keytype** - the name of the algorithm, the length of the key, to generate the key, used to enter the remote device. If you choose the `rsa` algorithm, then you will need to add the line `PubkeyAcceptedAlgorithms=+ssh-rsa` to the `/etc/ssh/sshd_config` file. 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-256`.
17+
- **Fastiot: Isupdate** - enable/disable updating of entities, such as templates, from Internet resources. Default value: `true`.
18+
- **Fastiot › Launch: Templatetitle** - template for forming the name of Launch. Variable values can be viewed at [link](Launch-title-template_ru.md "Template for forming the name Launch"). Default value: `Launch on %{device.label} (%{project.name}, %{device.board.name}, %{device.user.debug})`.
19+
- **Fastiot: Loglevel** - event logging level. The `Information` value displays only the main events, the `Debug` value displays detailed information about the events. Default value: `Information`.
20+
- **Fastiot › Template › Community: Updatesource** - update source for community templates. Adds the ability to download templates from third-party resources. Example: `htts://url1/list.yaml;htts://url2/list.yaml`. The structure of the `list.yaml` file in YAML format must match the structure of the file [templatelist.fastiot.yaml](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/blob/master/templates/system/templatelist. fastiot.yaml). Template files in zip archive format must be placed in the directory along with the `list.yaml` file.
21+
- **Fastiot › Template: Defaultprojectfolder** - `Projects` folder to select the default project location. Example: `C:\Users\Anton\Documents\Projects`.
22+
- **Fastiot › Template: Loadonstart** - loading templates at extension start. If this option is disabled, templates will only be loaded the first time they are accessed. Default value: `true`.
23+
- **Fastiot: Updateinterval** - template update interval in hours. Default value: `1 day`.

docs/Extension-settings_ru.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
![VSCode dotnet FastIoT](vscode-dotnet-fastiot-settings-1.png)
66

77
Настройки:
8+
89
- **Fastiot: Debug** - отладка сущностей, таких как шаблоны. При включенном значении сохраняет дополнительную отладочную информацию.
910
- **Fastiot › Device › Account: Group** - группа пользователей в Linux на удаленном устройстве (например, Raspberry Pi), в которую будет добавлена учетная запись (`debugvscode`) для управления устройством. Данная группа должна обладать правами Администратора. Значение по умолчанию: `sudo`.
1011
- **Fastiot › Device › Account: Username** - название учетной записи, создается на удаленном устройстве. Используется для управления устройством и выполнения удаленной отладки. Значение по умолчанию: `debugvscode`.

docs/Getting-started.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,10 @@ Launch (`/.vscode/launch.json`) and Tasks (`/.vscode/tasks.json`) configurations
125125
*Invoking the Rebuild command*
126126

127127
![.NET FastIoT Launch Rebuild"](vscode-dotnet-fastiot-rebuild.png "Launch Rebuild")
128+
129+
## Launch Options
130+
131+
Some Launch options can be changed from the LAUCHS window. The following options are changed:
132+
133+
- **Console (terminal)** - controls what console (terminal) window the target app is launched into. Default value: `internalConsole`. More details [Console (terminal) window](https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window);
134+
- **Just My Code** - debug just my code. Default value: `true`. Learn more [How to disable the “Just My Code” setting on the VS Code debugger](https://medium.com/@thiagoalves/how-to-disable-the-just-my-code-setting-on-the -vs-code-debugger-f5fd774e0af8);

docs/Project-templates.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,15 @@
1212

1313
## Template concept
1414

15-
Templates are used to create projects and add `launch.json` and `tasks.json` files to an existing project. They are located along the path `%userprofile%\fastiot\templates`, for example `C:\Users\Anton\fastiot\templates\`. Templates are divided into two types, these are system - `system` and user - `user`. If the system template does not pass the check, it will be automatically deleted and replaced with a valid one. If the system template is deleted, it will also be automatically restored. System templates are automatically updated when you run an extension from [Github devdotnetorg/vscode-extension-dotnet-fastiot/tree/master/templates/system](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/tree/master/templates/system). Further, everything will be discussed using the example of the template [dotnet-console-runtime-info](/templates/system/dotnet-console-runtime-info).
15+
Templates are used to create projects and add `launch.json` and `tasks.json` files to an existing project. They are located along the path `%userprofile%\fastiot\templates`, for example `C:\Users\Anton\fastiot\templates\`. Templates are divided into the following types:
16+
17+
- `system` - system;
18+
- `community` - communities. Downloaded from third party resources;
19+
- `user` - user. The user can independently create his own custom template.
20+
21+
Templates are listed in load order in the extension. For example, if a template of type `user` has the same identifier `id` of the template with type `system`, then the template of type `user` will be ignored because the template of type `system` is already loaded.
22+
23+
If the system template does not pass the check, it will be automatically deleted and replaced with a valid one. If the system template is deleted, it will also be automatically restored. System templates are automatically updated when you run an extension from [Github devdotnetorg/vscode-extension-dotnet-fastiot/tree/master/templates/system](https://github.com/devdotnetorg/vscode-extension-dotnet-fastiot/tree/ master/templates/system). Further, everything will be discussed using the example of the template [dotnet-console-runtime-info](/templates/system/dotnet-console-runtime-info).
1624

1725
## Template structure
1826

@@ -84,6 +92,8 @@ If the value of the `name` key, e.g. `Launch on cubieboard (DotnetApp, Cubieboar
8492

8593
Additional keys have been added to Launch, prefixed with `fastiotId*`, keys: `fastiotIdLaunch`, `fastiotIdDevice`, `fastiotProject`, `fastiotIdTemplate`. It is not recommended to change them. some extension functions may not be available because of this.
8694

95+
Starting from version v0.3.3, the above keys are added automatically if they are not present in the template. Those. these keys for the project template are now optional.
96+
8797
Keys:
8898
- `fastiotIdLaunch` - unique Launch identifier;
8999
- `fastiotIdDevice` - unique device identifier;
@@ -198,7 +208,7 @@ Variables:
198208
21. "%{project.dotnet.namespace}" => "DotnetConsoleAppRuntimeInfo".
199209
22. "%{device.dotnet.rid}" => "linux-arm".
200210
23. "%{launch.label}" => "Launch on cubieboard (DotnetConsoleAppRuntimeInfo, Cubieboard, debugvscode)".
201-
24. "%{extension.apps.builtin.aswindows}" => "d:\\\\Anton\\\\GitHub\\\\vscode-extension-dotnet-fastiot\\\\windows\\\\apps\\\\cwrsync\\\\ssh.exe".
211+
24. "%{extension.apps.builtin.aswindows}" => "d:\\\\Anton\\\\GitHub\\\\vscode-extension-dotnet-fastiot\\\\windows\\\\apps".
202212
25. "%{os.userinfo.username}" => "Anton".
203213

204214
**Values when there are directories in the path**
@@ -222,3 +232,7 @@ If you need additional variables, please create an [ISSUE](https://github.com/de
222232
All errors related to template validation will be displayed in the OUTPUT window.
223233

224234
If a JSON structure validation error occurs, the OUTPUT window will display the position in the file that caused the error. In this case, the original file will remain unchanged and a new one named `debug_launch_json.txt` or `debug_tasks_json.txt` will be created in the project directory.
235+
236+
The **Fastiot: Debug** parameter in the extension settings enables template debugging mode. This mode displays and saves additional information when creating a project from a template or adding Launch to an existing project. This saves the following information:
237+
238+
- Text files containing the values of the variables to be merged are saved in the project folder. Merging with a template is done in several steps. For example, the first step of a merge saves a file called `Step1CopyValues`. This file contains the values of variables obtained during interactive interaction with the user, in the question-answer mode. Only 5 steps: `Step1CopyValues`, `Step2AddDeviceInfo`, `Step3DependencyProjectType`, `Step4Additional`, `Step5DefinePathToProject`.

docs/Project-templates_ru.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,6 @@
234234

235235
Если возникнет ошибка валидации структуры JSON, то в окне OUTPUT отобразится позиция в файле, которая вызвала ошибку. В этом случае исходный файл останется неизменным, и будет создан новый с именем `debug_launch_json.txt` или `debug_tasks_json.txt` в каталоге проекта.
236236

237-
Параметр **Fastiot: Debug** в настройках расширения включает режим отладки шаблона. В этом режим выводится и сохраняется дополнительная информация при создании проекта из шаблона или добавление Launch к существующему проекту. Так сохраняется следующая информация:
237+
Параметр **Fastiot: Debug** в настройках расширения включает режим отладки шаблона. В этом режим выводится и сохраняется дополнительная информация при создание проекта из шаблона или добавление Launch к существующему проекту. Так сохраняется следующая информация:
238238

239-
- в папке проекта сохраняются текстовые файлы с полным содержанием всех значений переменных для слияния. Слияние с шаблоном выполняется в несколько шагов. Например, на первом шаге сохраняется файл с названием `Step1CopyValues`. В файле содержатся все значения переменных полученных при интерактивном взаимодействии с пользователем в режим вопрос-ответ. Всего 5 шагов: `Step1CopyValues`, `Step2AddDeviceInfo`, `Step3DependencyProjectType`, `Step4Additional`, `Step5DefinePathToProject`.
239+
- В папке проекта сохраняются текстовые файлы с содержанием значений переменных для слияния. Слияние с шаблоном выполняется в несколько шагов. Например на первом шаге выполнения слияния сохраняется файл с названием `Step1CopyValues`. Данный файл содержит значения переменных полученые при интерактивном взаимодействии с пользователем, в режиме вопрос-ответ. Всего 5 шагов: `Step1CopyValues`, `Step2AddDeviceInfo`, `Step3DependencyProjectType`, `Step4Additional`, `Step5DefinePathToProject`.

0 commit comments

Comments
 (0)