Skip to content

Commit 6825b41

Browse files
committed
fix: WSL and Remote VS Code (#2)
1 parent 9288c44 commit 6825b41

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

WorkspaceLauncherForVSCode/Commands/OpenVisualStudioCodeCommand.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,13 @@ public override CommandResult Invoke()
5555
return CommandResult.Confirm(new ConfirmationArgs { Title = "Error", Description = "Workspace path, or instance is null. Cannot open." });
5656
}
5757

58-
var pathNotFoundResult = CommandHelpers.IsPathNotFound(Workspace.WindowsPath);
59-
if (pathNotFoundResult != null)
58+
if (Workspace.VSTypeString != "WSL" && Workspace.VSTypeString != "Remote")
6059
{
61-
return pathNotFoundResult;
60+
var pathNotFoundResult = CommandHelpers.IsPathNotFound(Workspace.WindowsPath);
61+
if (pathNotFoundResult != null)
62+
{
63+
return pathNotFoundResult;
64+
}
6265
}
6366

6467
string? arguments;

0 commit comments

Comments
 (0)