mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[Chore] Run solution code cleanup (#20584)
This commit is contained in:
@@ -47,8 +47,8 @@ namespace Community.PowerToys.Run.Plugin.VSCodeWorkspaces.RemoteMachinesHelper
|
||||
var machine = new VSCodeRemoteMachine();
|
||||
machine.Host = h.Host;
|
||||
machine.VSCodeInstance = vscodeInstance;
|
||||
machine.HostName = h.HostName != null ? h.HostName : string.Empty;
|
||||
machine.User = h.User != null ? h.User : string.Empty;
|
||||
machine.HostName = h.HostName ?? string.Empty;
|
||||
machine.User = h.User ?? string.Empty;
|
||||
|
||||
results.Add(machine);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System.Globalization;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Community.PowerToys.Run.Plugin.VSCodeWorkspaces
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace Community.PowerToys.Run.Plugin.VSCodeWorkspaces.VSCodeHelper
|
||||
Instances = new List<VSCodeInstance>();
|
||||
|
||||
paths = paths.Where(x =>
|
||||
x.Contains("VS Code", StringComparison.OrdinalIgnoreCase) ||
|
||||
x.Contains("VS Code", StringComparison.OrdinalIgnoreCase) ||
|
||||
x.Contains("VSCodium", StringComparison.OrdinalIgnoreCase) ||
|
||||
x.Contains("vscode", StringComparison.OrdinalIgnoreCase)).ToList();
|
||||
foreach (var path in paths)
|
||||
|
||||
Reference in New Issue
Block a user