File tree 4 files changed +7
-1
lines changed
4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 8
8
<key >CFBundleTypeRole </key >
9
9
<string >Editor </string >
10
10
<key >CFBundleURLIconFile </key >
11
- <string >1024 </string >
11
+ <string >1024Icon </string >
12
12
<key >CFBundleURLName </key >
13
13
<string >com.coder.Coder-Desktop </string >
14
14
<key >CFBundleURLSchemes </key >
File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ public struct CoderRouter: ParserPrinter {
7
7
8
8
public var body : some ParserPrinter < URLRequestData , CoderRoute > {
9
9
Route ( . case( CoderRoute . open ( workspace: agent: route: ) ) ) {
10
+ Scheme ( " coder " )
10
11
// v0/open/ws/<workspace>/agent/<agent>/<openType>
11
12
Path { " v0 " ; " open " ; " ws " ; Parse ( . string) ; " agent " ; Parse ( . string) }
12
13
openRouter
Original file line number Diff line number Diff line change @@ -87,6 +87,11 @@ struct CoderRouterTests {
87
87
expectedRoute: nil ,
88
88
description: " Missing agent segment "
89
89
) ,
90
+ RouteTestCase (
91
+ urlString: " http://coder.example.com/v0/open/ws/workspace-123/agent/agent-456 " ,
92
+ expectedRoute: nil ,
93
+ description: " Wrong scheme "
94
+ ) ,
90
95
] )
91
96
func testRdpRoutes( testCase: RouteTestCase ) throws {
92
97
let url = URL ( string: testCase. urlString) !
You can’t perform that action at this time.
0 commit comments