mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 09:46:54 +02:00
[PTRun][VSCode]Detect portable installations of VS Code (#17749)
* Make launcher detect portable installations of VS Code in system PATH This should fix #13362 * Move closing parenthesis * remove trailing whitespace characters
This commit is contained in:
@@ -74,7 +74,10 @@ namespace Community.PowerToys.Run.Plugin.VSCodeWorkspaces.VSCodeHelper
|
|||||||
{
|
{
|
||||||
Instances = new List<VSCodeInstance>();
|
Instances = new List<VSCodeInstance>();
|
||||||
|
|
||||||
paths = paths.Where(x => x.Contains("VS Code") || x.Contains("VSCodium")).ToList();
|
paths = paths.Where(x =>
|
||||||
|
x.Contains("VS Code", StringComparison.OrdinalIgnoreCase) ||
|
||||||
|
x.Contains("VSCodium", StringComparison.OrdinalIgnoreCase) ||
|
||||||
|
x.Contains("vscode", StringComparison.OrdinalIgnoreCase)).ToList();
|
||||||
foreach (var path in paths)
|
foreach (var path in paths)
|
||||||
{
|
{
|
||||||
if (Directory.Exists(path))
|
if (Directory.Exists(path))
|
||||||
|
|||||||
Reference in New Issue
Block a user