example:
import Vapor struct MainController: RouteCollection { func boot(routes: RoutesBuilder) throws { routes.get(use: index(req:)) // ↑ there // if i typing `index` and chosen from selection picker, it will display `index(req: <#Request#>)` not `index(req:)` // but when i typing `self.index` and chosen from selection picker, it will work normal } } private extension MainController { func index(req: Request) throws -> EventLoopFuture<View> { req.view.render("index", ["title": "Hi guys~", "md_file": "/index.md"]) } }
Environment:
-
Xcode 13.3 beta 2
-
Intel chip, MacBook Pro (16-inch, 2019), macOS monterey 12.2.1 (21D62)