File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 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 >
File renamed without changes.
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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) !
You can’t perform that action at this time.
0 commit comments