| 333 | } |
| 334 | |
| 335 | private getDefaultPage(): DevToolsPage { |
| 336 | // use true for hasSession here, because this page is available with or without if it |
| 337 | // meets the version requirements. |
| 338 | return this.isPageAvailable(true, devToolsHomePage) |
| 339 | ? devToolsHomePage |
| 340 | : isInFlutterDebugModeDebugSession |
| 341 | ? widgetInspectorPage |
| 342 | : isInFlutterProfileModeDebugSession |
| 343 | ? performancePage |
| 344 | : cpuProfilerPage; |
| 345 | } |
| 346 | |
| 347 | private async launch(allowLaunchThroughService: boolean, session: DartDebugSessionInformation & { vmServiceUri: string } | undefined, options: DevToolsOptions, forceShow: boolean) { |
| 348 | const url = await this.devtoolsUrl; |