Skip to content

Commit 53526e5

Browse files
committed
Add open in explorer for dev container and wsl
1 parent c3cf445 commit 53526e5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

WorkspaceLauncherForVSCode/Workspaces/WorkspaceItemFactory.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ public static ListItem Create(
125125
switch (workspace.VisualStudioCodeRemoteUri.Type)
126126
{
127127
case VisualStudioCodeRemoteType.Codespaces:
128-
moreCommands.Add(new CommandContextItem(new Commands.OpenUrlCommand( $"https://{workspace.VisualStudioCodeRemoteUri.InfoRaw}.github.dev/", "Open in Browser", Classes.Icon.GitHub)));
128+
moreCommands.Add(new CommandContextItem(new Commands.OpenUrlCommand(workspace.WindowsPath, "Open in Browser", Classes.Icon.GitHub)));
129+
break;
130+
case VisualStudioCodeRemoteType.WSL:
131+
case VisualStudioCodeRemoteType.DevContainer:
132+
moreCommands.Add(new CommandContextItem(new OpenInExplorerCommand(workspace.WindowsPath, workspace)));
129133
break;
130134
default:
131135
break;

0 commit comments

Comments
 (0)