Skip to content

Commit 8d422b4

Browse files
committed
Fix
1 parent db0d243 commit 8d422b4

File tree

8 files changed

+14
-13
lines changed

8 files changed

+14
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## v0.3.3 (24-04-2023)
3+
## v0.3.3 (28-04-2023)
44

55
- Added parameter `fastiot.template.community.updatesource`, update source for community project templates. Adds the ability to download templates from third-party resources.
66
- Added the default selection of the "Projects" folder for placing projects, the parameter `fastiot.template.defaultprojectfolder`.

CHANGELOG_ru.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Список изменений
22

3-
## v0.3.3 (24-04-2023)
3+
## v0.3.3 (28-04-2023)
44

55
- Добавлен параметр `fastiot.template.community.updatesource`, источник обновления для community шаблонов проектов. Добавляет возможность загружать шаблоны со сторонних ресурсов.
66
- Добавлен по умолчанию выбор папки "Projects" для размещения проектов, параметр `fastiot.template.defaultprojectfolder`.

docs/Project-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Variables:
208208
21. "%{project.dotnet.namespace}" => "DotnetConsoleAppRuntimeInfo".
209209
22. "%{device.dotnet.rid}" => "linux-arm".
210210
23. "%{launch.label}" => "Launch on cubieboard (DotnetConsoleAppRuntimeInfo, Cubieboard, debugvscode)".
211-
24. "%{extension.apps.builtin.aswindows}" => "d:\\\\Anton\\\\GitHub\\\\vscode-extension-dotnet-fastiot\\\\windows\\\\apps".
211+
24. "%{extension.apps.builtin.aswindows}" => "c:\\\\Users\\\\Anton\\\\.vscode\\\\extensions\\\\devdotnetorg.vscode-extension-dotnet-fastiot-0.3.3\\\\windows\\\\apps".
212212
25. "%{os.userinfo.username}" => "Anton".
213213

214214
**Values when there are directories in the path**

docs/Project-templates_ru.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
21. "%{project.dotnet.namespace}" => "DotnetConsoleAppRuntimeInfo".
210210
22. "%{device.dotnet.rid}" => "linux-arm".
211211
23. "%{launch.label}" => "Launch on cubieboard (DotnetConsoleAppRuntimeInfo, Cubieboard, debugvscode)".
212-
24. "%{extension.apps.builtin.aswindows}" => "d:\\\\Anton\\\\GitHub\\\\vscode-extension-dotnet-fastiot\\\\windows\\\\apps".
212+
24. "%{extension.apps.builtin.aswindows}" => "c:\\\\Users\\\\Anton\\\\.vscode\\\\extensions\\\\devdotnetorg.vscode-extension-dotnet-fastiot-0.3.3\\\\windows\\\\apps".
213213
25. "%{os.userinfo.username}" => "Anton".
214214

215215
**Значения при наличии каталогов в пути**

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
"ecdsa-256",
8787
"ecdsa-384",
8888
"ecdsa-521",
89-
"dsa-1024",
9089
"rsa-1024",
9190
"rsa-2048",
9291
"rsa-3072",

src/Entity/EntityCollection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export abstract class EntityCollection <A extends EntityBaseAttribute, T extends
207207
if((this.Count-entitysCountBegin)>0) {
208208
result= new IotResult(StatusResult.Ok,`Loading ${type} ${this._entityIntLabel}s from ${pathFolder} folder successfully completed`);
209209
}else{
210-
result= new IotResult(StatusResult.None,`No ${type} ${this._entityIntLabel} was loaded from the ${pathFolder} folder`);
210+
result= new IotResult(StatusResult.Ok,`No ${type} ${this._entityIntLabel} was loaded from the ${pathFolder} folder`);
211211
}
212212
return Promise.resolve(result);
213213
}

src/IotDevice.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ export class IotDevice extends BaseTreeItem {
313313
};
314314
}else{
315315
sshconfig=this.Account.SshConfig;
316+
if(this.Account.SshConfig.port)
317+
port=this.Account.SshConfig.port;
316318
}
317319
//Trubleshooting text
318320
const trubleshootingText=
@@ -327,7 +329,7 @@ export class IotDevice extends BaseTreeItem {
327329
`Checklist:\n`+
328330
`❌ IP-Address defined;\n`+
329331
`❌ Host availability. Command: "ping";\n`+
330-
`❌ Port 22 availability;\n`+
332+
`❌ Port ${port} availability;\n`+
331333
`❌ Authorization via ssh protocol.\n`+
332334
`${trubleshootingText}`);
333335
return Promise.resolve(result);}
@@ -339,18 +341,18 @@ export class IotDevice extends BaseTreeItem {
339341
`Checklist:\n`+
340342
`✔️ IP-Address defined;\n`+
341343
`❌ Host availability. Command: "ping";\n`+
342-
`❌ Port 22 availability;\n`+
344+
`❌ Port ${port} availability;\n`+
343345
`❌ Authorization via ssh protocol.\n`+
344346
`${trubleshootingText}`);
345347
return Promise.resolve(result);}
346348
//Check port
347-
result=await networkHelper.CheckTcpPortUsed(ipAddress,sshconfig.port ?? 22);
349+
result=await networkHelper.CheckTcpPortUsed(ipAddress,sshconfig.port ?? port);
348350
if(result.Status==StatusResult.Error) {
349351
result.AddMessage(
350352
`Checklist:\n`+
351353
`✔️ IP-Address defined;\n`+
352354
`✔️ Host availability. Command: "ping";\n`+
353-
`❌ Port 22 availability;\n`+
355+
`❌ Port ${port} availability;\n`+
354356
`❌ Authorization via ssh protocol.\n`+
355357
`${trubleshootingText}`);
356358
return Promise.resolve(result);}
@@ -362,7 +364,7 @@ export class IotDevice extends BaseTreeItem {
362364
`Checklist:\n`+
363365
`✔️ IP-Address defined;\n`+
364366
`✔️ Host availability. Command: "ping";\n`+
365-
`✔️ Port 22 availability;\n`+
367+
`✔️ Port ${port} availability;\n`+
366368
`❌ Authorization via ssh protocol.\n`+
367369
`${trubleshootingText}`);
368370
} else {
@@ -371,7 +373,7 @@ export class IotDevice extends BaseTreeItem {
371373
`Checklist:\n`+
372374
`✔️ IP-Address defined;\n`+
373375
`✔️ Host availability. Command: "ping";\n`+
374-
`✔️ Port 22 availability;\n`+
376+
`✔️ Port ${port} availability;\n`+
375377
`✔️ Authorization via ssh protocol.`);
376378
}
377379
return Promise.resolve(result);

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ export async function activate(context: vscode.ExtensionContext) {
288288
});
289289
//Reload templates
290290
let commandReloadTemplates = vscode.commands.registerCommand('viewTemplates.ReloadTemplates', () => {
291-
loadTemplates(app);
291+
loadTemplates(app,true);
292292
});
293293
//Open template folder
294294
let commandOpenTemplateFolder = vscode.commands.registerCommand('viewTemplates.OpenTemplateFolder', () => {

0 commit comments

Comments
 (0)