Skip to content

Commit 147ba57

Browse files
author
Michael Koster
committed
Added launch profile option
1 parent f9b6e56 commit 147ba57

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/Extension/RemoteDebuggerLauncher/ProjectSystem/Debugger/ConfigurationAggregator.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@ public bool QueryForceIPv4()
141141
return optionsPageAccessor.QueryForceIPv4();
142142
}
143143

144+
public bool QueryDisableHostKeyChecking()
145+
{
146+
if (launchProfile.OtherSettings.TryGetValue(SecureShellRemoteLaunchProfile.disableHostKeyCheckingProperty, out var settingsValue))
147+
{
148+
// Launch profile has a host port specified => use it
149+
return settingsValue is bool profileDisableHostKeyChecking && profileDisableHostKeyChecking;
150+
}
151+
152+
// use options value or default
153+
return optionsPageAccessor.QueryDisableHostKeyChecking();
154+
}
144155

145156
/// <summary>
146157
/// Queries the transport mode on how to transfer assets to the remote device.

src/Extension/RemoteDebuggerLauncher/ProjectSystem/Debugger/SecureShellRemoteLaunchProfile.xaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<Rule Name="SecureShellRemoteLaunchProfile"
33
Description="Properties associated with launching and debugging a custom debug target."
44
DisplayName="SSH Remote Launch"
@@ -59,6 +59,11 @@
5959
Subcategory="Credentials"
6060
Default="%userprofile%\\.ssh\\id_rsa" />
6161

62+
<BoolProperty Name="disableHostKeyChecking"
63+
DisplayName="Disable Host Key Checking"
64+
Description="Indicates whether to disable host key checking."
65+
Subcategory="Remote Device" />
66+
6267
<StringProperty Name="EnvironmentVariables"
6368
DisplayName="Environment variables"
6469
Description="The environment variables to set prior to running the process."

0 commit comments

Comments
 (0)