MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / getDefaultPage

Method getDefaultPage

src/extension/sdk/dev_tools/manager.ts:335–345  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

launchMethod · 0.95

Calls 1

isPageAvailableMethod · 0.95

Tested by

no test coverage detected