Skip to content

Commit 5bd68f7

Browse files
committed
Fix workspace location when opening in vscode desktop
1 parent 2c84013 commit 5bd68f7

File tree

1 file changed

+6
-1
lines changed
  • components/ide/code-desktop/status

1 file changed

+6
-1
lines changed

components/ide/code-desktop/status/main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,15 @@ func main() {
6363
}
6464
queryString := string(b)
6565

66+
workspaceLocation := wsInfo.GetWorkspaceLocationFile()
67+
if workspaceLocation == "" {
68+
workspaceLocation = wsInfo.GetWorkspaceLocationFolder()
69+
}
70+
6671
link := url.URL{
6772
Scheme: schema,
6873
Host: "gitpod.gitpod-desktop",
69-
Path: wsInfo.CheckoutLocation,
74+
Path: workspaceLocation,
7075
RawQuery: url.QueryEscape(queryString),
7176
}
7277

0 commit comments

Comments
 (0)