Skip to content

Commit 5448941

Browse files
committed
Fix condition, duh
1 parent 04cef95 commit 5448941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Packages/com.unity.ide.visualstudio/Editor/VisualStudioCodeInstallation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ public override bool Open(string path, int line, int column, string solution)
524524
private static string TryFindWorkspace(string directory)
525525
{
526526
var files = Directory.GetFiles(directory, "*.code-workspace", SearchOption.TopDirectoryOnly);
527-
if (files.Length == 0 && files.Length > 1)
527+
if (files.Length == 0 || files.Length > 1)
528528
return null;
529529

530530
return files[0];

0 commit comments

Comments
 (0)