Skip to content

Commit 34c0bee

Browse files
committed
typo
1 parent e96fc49 commit 34c0bee

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Coder-Desktop/Coder-Desktop/Views/VPN/WorkspaceAppIcon.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ struct WorkspaceApp {
8989
throw .isCommandApp
9090
}
9191

92-
// We don't want to show buttons for any websites, like internal wikies
92+
// We don't want to show buttons for any websites, like internal wikis
9393
// or portals. Those *should* have 'external' set, but if they don't:
9494
guard originalUrl.scheme != "https", originalUrl.scheme != "http" else {
9595
throw .isWebApp
@@ -190,7 +190,7 @@ func vscodeDisplayApp(hostname: String, baseIconURL: URL, path: String? = nil) -
190190
// slugs as SwiftUI IDs
191191
slug: "-vscode",
192192
displayName: "VS Code Desktop",
193-
url: URL(string: "vscode://vscode-remote/ssh-remote+\(hostname)\(path ?? "")")!,
193+
url: URL(string: "vscode://vscode-remote/ssh-remote+\(hostname)/\(path ?? "")")!,
194194
icon: icon
195195
)
196196
}
@@ -200,7 +200,7 @@ func vscodeInsidersDisplayApp(hostname: String, baseIconURL: URL, path: String?
200200
return WorkspaceApp(
201201
slug: "-vscode-insiders",
202202
displayName: "VS Code Insiders Desktop",
203-
url: URL(string: "vscode-insiders://vscode-remote/ssh-remote+\(hostname)\(path ?? "")")!,
203+
url: URL(string: "vscode-insiders://vscode-remote/ssh-remote+\(hostname)/\(path ?? "")")!,
204204
icon: icon
205205
)
206206
}

Coder-Desktop/Coder-DesktopTests/WorkspaceAppTests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct WorkspaceAppTests {
117117
#expect(apps.count == 1)
118118
#expect(apps[0].slug == "-vscode")
119119
#expect(apps[0].displayName == "VS Code Desktop")
120-
#expect(apps[0].url.absoluteString == "vscode://vscode-remote/ssh-remote+test-workspace.coder.test/home/user")
120+
#expect(apps[0].url.absoluteString == "vscode://vscode-remote/ssh-remote+test-workspace.coder.test//home/user")
121121
#expect(apps[0].icon?.absoluteString == "https://coder.example.com/icon/code.svg")
122122
}
123123

@@ -140,7 +140,7 @@ struct WorkspaceAppTests {
140140
#expect(apps[0].icon?.absoluteString == "https://coder.example.com/icon/code.svg")
141141
#expect(
142142
apps[0].url.absoluteString == """
143-
vscode-insiders://vscode-remote/ssh-remote+test-workspace.coder.test/home/user
143+
vscode-insiders://vscode-remote/ssh-remote+test-workspace.coder.test//home/user
144144
"""
145145
)
146146
}

0 commit comments

Comments
 (0)