Skip to content

Commit c0769f9

Browse files
Fix problem with loading SSH private keys (#61)
* Upgrade to SSH.NET 2025.0.0, fixed spelling * Disable VS 2022 Spell Checker
1 parent cc22777 commit c0769f9

File tree

14 files changed

+35
-46
lines changed

14 files changed

+35
-46
lines changed

.editorconfig

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,24 +1213,7 @@ dotnet_diagnostic.ISB001.severity = error
12131213
dotnet_diagnostic.ISB002.severity = warning
12141214
dotnet_diagnostic.MsgPack001.severity = warning
12151215
dotnet_diagnostic.MsgPack002.severity = warning
1216-
dotnet_style_operator_placement_when_wrapping = beginning_of_line
1217-
tab_width = 3
1218-
indent_size = 3
1219-
end_of_line = crlf
1220-
dotnet_style_coalesce_expression = true:suggestion
1221-
dotnet_style_null_propagation = true:suggestion
1222-
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
1223-
dotnet_style_prefer_auto_properties = true:silent
1224-
dotnet_style_object_initializer = true:suggestion
1225-
dotnet_style_collection_initializer = true:suggestion
1226-
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
1227-
dotnet_style_prefer_conditional_expression_over_assignment = true:silent
1228-
dotnet_style_prefer_conditional_expression_over_return = true:silent
1229-
dotnet_style_explicit_tuple_names = true:suggestion
1230-
dotnet_style_prefer_inferred_tuple_names = true:suggestion
1231-
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
1232-
dotnet_style_prefer_compound_assignment = true:suggestion
1233-
dotnet_style_prefer_simplified_interpolation = true:suggestion
1234-
dotnet_style_namespace_match_folder = true:suggestion
1235-
indent_style = space
12361216

1217+
# Disable the VS Spell Checker for now until the problem with the exclusion dictionary is fixed
1218+
spelling_checkable_types = none
1219+
spelling_error_severity = none

RemoteDebuggerLauncherExtension.sln.GhostDoc.user.dic

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ github
88
https
99
joinable
1010
json
11+
Koster
1112
launchjson
1213
launchsettings
1314
localappdata
@@ -16,14 +17,19 @@ mkdir
1617
msedge
1718
omnisharp
1819
pkgdef
20+
plugin
1921
runspace
2022
staticwebassets
23+
Statusbar
2124
stdin
2225
uname
2326
unconfigured
27+
Username
2428
userprofile
2529
vscode
2630
vsct
2731
vsdbg
2832
vsixmanifest
33+
vsui
34+
webtools
2935
wwwroot

src/Extension/RemoteDebuggerLauncher/PackageConstants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace RemoteDebuggerLauncher
1515
internal static class PackageConstants
1616
{
1717
/// <summary>
18-
/// Common Project System relalated constants
18+
/// Common Project System related constants
1919
/// </summary>
2020
public static class CPS
2121
{

src/Extension/RemoteDebuggerLauncher/ProjectSystem/Build/DotnetPublishService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public async Task StartAsync()
7676
case PublishMode.FrameworkDependant:
7777
arguments += " --no-build";
7878

79-
if (await SupportsFrameworkDependantAsync())
79+
if (await SupportsFrameworkDependentAsync())
8080
{
8181
arguments += " --no-self-contained";
8282
}
@@ -176,14 +176,14 @@ private async Task<string> GetPublishedOutputDirectoryPathAsync()
176176
// Append the deploy/publish base
177177
var publishPath = PathHelper.Combine(baseOutputPath, PackageConstants.Publish.OutDir);
178178

179-
// append the $(Configuration)/$(TargetFramework) dirs
179+
// append the $(Configuration)/$(TargetFramework) directories
180180
publishPath = PathHelper.Combine(publishPath, configuration);
181181
publishPath = PathHelper.Combine(publishPath, targetFramework);
182182

183183
return publishPath;
184184
}
185185

186-
private async Task<bool> SupportsFrameworkDependantAsync()
186+
private async Task<bool> SupportsFrameworkDependentAsync()
187187
{
188188
// Web Assembly Publish operations require self contained
189189
var isWasm = configuredProject.Services.Capabilities.AppliesTo("WebAssembly");
@@ -196,7 +196,7 @@ private async Task<bool> SupportsFrameworkDependantAsync()
196196
isWasm |= project != null && project.Services.Capabilities.AppliesTo("WebAssembly");
197197
}
198198

199-
// every other project type is fine with framework dependant
199+
// every other project type is fine with framework dependent
200200
return !isWasm;
201201
}
202202
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private async Task AddSshLaunchTargetAsync(List<IDebugLaunchSettings> debugLaunc
165165
}
166166
else
167167
{
168-
// in all otger cases, debug as framwork dependant
168+
// in all other cases, debug as framework dependent
169169
launchSettings.Options = await AdapterLaunchConfiguration.CreateFrameworkDependantAsync(factory.Configuration, configuredProject, factory.OutputPane, remoteOperations);
170170
}
171171

src/Extension/RemoteDebuggerLauncher/ProjectSystem/IPackageServiceFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal interface IPackageServiceFactory
2626
ConfigurationAggregator Configuration { get; }
2727

2828
/// <summary>
29-
/// Gets the configured VS ouput pane writer.
29+
/// Gets the configured VS output pane writer.
3030
/// </summary>
3131
IOutputPaneWriterService OutputPane { get; }
3232

src/Extension/RemoteDebuggerLauncher/ProjectSystem/PackageServiceFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public async Task<ISecureShellRemoteOperationsService> GetSecureShellRemoteOpera
8686
/// </summary>
8787
/// <param name="configurationAggregator">The configuration object.</param>
8888
/// <param name="outputPaneWriter">The VS output pane writer.</param>
89-
/// <param name="configuredProject">The configired project</param>
89+
/// <param name="configuredProject">The configured project</param>
9090
/// <returns></returns>
9191
protected bool Configure(ConfigurationAggregator configurationAggregator, IOutputPaneWriterService outputPaneWriter, ConfiguredProject configuredProject)
9292
{

src/Extension/RemoteDebuggerLauncher/RemoteDebuggerLauncher.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
<PackageReference Include="Microsoft.VisualStudio.LanguageServices" Version="4.4.0" ExcludeAssets="runtime" />
244244
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
245245
<PackageReference Include="NuGet.VisualStudio" Version="17.4.0" ExcludeAssets="runtime" />
246-
<PackageReference Include="SSH.NET" Version="2020.0.2" />
246+
<PackageReference Include="SSH.NET" Version="2025.0.0" />
247247
</ItemGroup>
248248
<ItemGroup>
249249
<ProjectReference Include="..\..\Tools\SourceGenerators\SourceGenerators.csproj" OutputItemType="Analyzer" PrivateAssets="all" ReferenceOutputAssembly="false">

src/Extension/RemoteDebuggerLauncher/SecureShell/SecureShellRemoteOperationsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public Task TryInstallDotNetOfflineAsync(DotnetInstallationKind kind, string cha
342342
/// <inheritdoc />
343343
public async Task SetupAspNetDeveloperCertificateAsync(SetupMode mode, byte[] certificate, string password)
344344
{
345-
// Path for the 'donet' executable
345+
// Path for the 'dotnet' executable
346346
string dotnetExecutable = UnixPath.Combine(configurationAggregator.QueryDotNetInstallFolderPath(), "dotnet");
347347

348348
//Check if ASP.NET runtime is installed

src/Extension/RemoteDebuggerLauncher/SecureShell/SecureShellSessionCommandingService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public Task<string> ExecuteCommandAsync(string commandText)
4444

4545
using (var command = client.RunCommand(commandText))
4646
{
47-
if (command.ExitStatus != 0)
47+
if (command.ExitStatus.HasValue && command.ExitStatus.Value != 0)
4848
{
49-
throw new SecureShellSessionException(command.Error, command.ExitStatus);
49+
throw new SecureShellSessionException(command.Error, command.ExitStatus.Value);
5050
}
5151

5252
return command.Result;
@@ -76,7 +76,7 @@ public Task<string> ExecuteCommandAsync(string commandText)
7676

7777
using (var command = client.RunCommand(commandText))
7878
{
79-
return (command.ExitStatus, command.Result, command.Error);
79+
return (command.ExitStatus ?? 0, command.Result, command.Error);
8080
}
8181
}
8282
catch (SshException e)

0 commit comments

Comments
 (0)