Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fcfad50

Browse files
committed
rename icon
1 parent 5b20a29 commit fcfad50

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

Coder-Desktop/Coder-Desktop/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<key>CFBundleTypeRole</key>
99
<string>Editor</string>
1010
<key>CFBundleURLIconFile</key>
11-
<string>1024</string>
11+
<string>1024Icon</string>
1212
<key>CFBundleURLName</key>
1313
<string>com.coder.Coder-Desktop</string>
1414
<key>CFBundleURLSchemes</key>

Coder-Desktop/VPNLib/CoderRouter.swift

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public struct CoderRouter: ParserPrinter {
77

88
public var body: some ParserPrinter<URLRequestData, CoderRoute> {
99
Route(.case(CoderRoute.open(workspace:agent:route:))) {
10+
Scheme("coder")
1011
// v0/open/ws/<workspace>/agent/<agent>/<openType>
1112
Path { "v0"; "open"; "ws"; Parse(.string); "agent"; Parse(.string) }
1213
openRouter

Coder-Desktop/VPNLibTests/CoderRouterTests.swift

+5
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ struct CoderRouterTests {
8787
expectedRoute: nil,
8888
description: "Missing agent segment"
8989
),
90+
RouteTestCase(
91+
urlString: "http://coder.example.com/v0/open/ws/workspace-123/agent/agent-456",
92+
expectedRoute: nil,
93+
description: "Wrong scheme"
94+
),
9095
])
9196
func testRdpRoutes(testCase: RouteTestCase) throws {
9297
let url = URL(string: testCase.urlString)!

0 commit comments

Comments
 (0)