File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
src/Extension/RemoteDebuggerLauncher/ProjectSystem/Debugger Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 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"
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."
You can’t perform that action at this time.
0 commit comments