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

Method constructor

src/extension/commands/flutter.ts:35–50  ·  view source on GitHub ↗
(logger: Logger, context: Context, workspace: DartWorkspaceContext, private readonly sdkUtils: SdkUtils, dartCapabilities: DartCapabilities, private readonly flutterCapabilities: FlutterCapabilities, private readonly deviceManager: FlutterDeviceManager | undefined, private readonly analytics: Analytics)

Source from the content-addressed store, hash-verified

33 private flutterScreenshotPath?: string;
34
35 constructor(logger: Logger, context: Context, workspace: DartWorkspaceContext, private readonly sdkUtils: SdkUtils, dartCapabilities: DartCapabilities, private readonly flutterCapabilities: FlutterCapabilities, private readonly deviceManager: FlutterDeviceManager | undefined, private readonly analytics: Analytics) {
36 super(logger, context, workspace, dartCapabilities);
37
38 this.disposables.push(vs.commands.registerCommand("flutter.clean", this.flutterClean.bind(this)));
39 this.disposables.push(vs.commands.registerCommand("flutter.clean.all", this.flutterCleanAllProjects.bind(this)));
40 this.disposables.push(vs.commands.registerCommand("_flutter.screenshot.touchBar", (args: any) => vs.commands.executeCommand("flutter.screenshot", args)));
41 this.disposables.push(vs.commands.registerCommand("flutter.screenshot", this.flutterScreenshot.bind(this)));
42 this.disposables.push(vs.commands.registerCommand("flutter.doctor", this.flutterDoctor.bind(this)));
43 this.disposables.push(vs.commands.registerCommand("flutter.doctor.sidebar", () => this.flutterDoctor({ commandSource: CommandSource.sidebarTitle })));
44 this.disposables.push(vs.commands.registerCommand("flutter.upgrade", this.flutterUpgrade.bind(this)));
45 this.disposables.push(vs.commands.registerCommand("flutter.createProject", this.createFlutterProject.bind(this)));
46 this.disposables.push(vs.commands.registerCommand("flutter.createProject.sidebar", () => this.createFlutterProject({ commandSource: CommandSource.sidebarTitle })));
47 this.disposables.push(vs.commands.registerCommand("_dart.flutter.createSampleProject", this.createFlutterSampleProject.bind(this)));
48 this.disposables.push(vs.commands.registerCommand("_flutter.create", this.flutterCreate.bind(this)));
49 this.disposables.push(vs.commands.registerCommand("_flutter.clean", this.flutterClean.bind(this)));
50 }
51
52 private async flutterClean(
53 uri: vs.Uri | vs.Uri[] | undefined,

Callers

nothing calls this directly

Calls 3

flutterDoctorMethod · 0.95
createFlutterProjectMethod · 0.95
executeCommandMethod · 0.65

Tested by

no test coverage detected