You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Extension-settings.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,18 @@ To change the extension settings, open the menu item `File > Preferences > Setti
6
6
7
7
Settings:
8
8
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`.
10
11
-**Fastiot › Device › Account: Username** - account name, created on the remote device. Used to control the device and perform remote debugging. Default value: `debugvscode`.
11
12
-**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.
12
13
-**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`.
-**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`.
-**Fastiot: Debug** - отладка сущностей, таких как шаблоны. При включенном значении сохраняет дополнительную отладочную информацию.
9
10
-**Fastiot › Device › Account: Group** - группа пользователей в Linux на удаленном устройстве (например, Raspberry Pi), в которую будет добавлена учетная запись (`debugvscode`) для управления устройством. Данная группа должна обладать правами Администратора. Значение по умолчанию: `sudo`.
10
11
-**Fastiot › Device › Account: Username** - название учетной записи, создается на удаленном устройстве. Используется для управления устройством и выполнения удаленной отладки. Значение по умолчанию: `debugvscode`.
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);
Copy file name to clipboardExpand all lines: docs/Project-templates.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,15 @@
12
12
13
13
## Template concept
14
14
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).
16
24
17
25
## Template structure
18
26
@@ -84,6 +92,8 @@ If the value of the `name` key, e.g. `Launch on cubieboard (DotnetApp, Cubieboar
84
92
85
93
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.
86
94
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.
@@ -222,3 +232,7 @@ If you need additional variables, please create an [ISSUE](https://github.com/de
222
232
All errors related to template validation will be displayed in the OUTPUT window.
223
233
224
234
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`.
Copy file name to clipboardExpand all lines: docs/Project-templates_ru.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,6 +234,6 @@
234
234
235
235
Если возникнет ошибка валидации структуры JSON, то в окне OUTPUT отобразится позиция в файле, которая вызвала ошибку. В этом случае исходный файл останется неизменным, и будет создан новый с именем `debug_launch_json.txt` или `debug_tasks_json.txt` в каталоге проекта.
236
236
237
-
Параметр **Fastiot: Debug** в настройках расширения включает режим отладки шаблона. В этом режим выводится и сохраняется дополнительная информация при создании проекта из шаблона или добавление Launch к существующему проекту. Так сохраняется следующая информация:
237
+
Параметр **Fastiot: Debug** в настройках расширения включает режим отладки шаблона. В этом режим выводится и сохраняется дополнительная информация при создание проекта из шаблона или добавление Launch к существующему проекту. Так сохраняется следующая информация:
238
238
239
-
-в папке проекта сохраняются текстовые файлы с полным содержанием всех значений переменных для слияния. Слияние с шаблоном выполняется в несколько шагов. Например, на первом шаге сохраняется файл с названием `Step1CopyValues`. В файле содержатся все значения переменных полученных при интерактивном взаимодействии с пользователем в режим вопрос-ответ. Всего 5 шагов: `Step1CopyValues`, `Step2AddDeviceInfo`, `Step3DependencyProjectType`, `Step4Additional`, `Step5DefinePathToProject`.
239
+
-В папке проекта сохраняются текстовые файлы с содержанием значений переменных для слияния. Слияние с шаблоном выполняется в несколько шагов. Например на первом шаге выполнения слияния сохраняется файл с названием `Step1CopyValues`. Данный файл содержит значения переменных полученые при интерактивном взаимодействии с пользователем, в режиме вопрос-ответ. Всего 5 шагов: `Step1CopyValues`, `Step2AddDeviceInfo`, `Step3DependencyProjectType`, `Step4Additional`, `Step5DefinePathToProject`.
0 commit comments