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

Method warnIfBadSDKCommandOutput

src/extension/sdk/utils.ts:614–619  ·  view source on GitHub ↗
(error: any, workDir: string, sdkConfigName: "dart.getDartSdkCommand" | "dart.getFlutterSdkCommand", isWorkspaceSetting: boolean)

Source from the content-addressed store, hash-verified

612 }
613
614 private async warnIfBadSDKCommandOutput(error: any, workDir: string, sdkConfigName: "dart.getDartSdkCommand" | "dart.getFlutterSdkCommand", isWorkspaceSetting: boolean) {
615 const action = await window.showWarningMessage(`Failed to obtain the SDK from the command: ${error}. Working directory: ${workDir}.`, openSettingsAction);
616 if (openSettingsAction === action) {
617 await this.openSettingsFile(sdkConfigName, isWorkspaceSetting);
618 }
619 }
620
621 private async openSettingsFile(sdkConfigName: string, isWorkspaceSetting: boolean) {
622 await commands.executeCommand(

Callers 1

Calls 1

openSettingsFileMethod · 0.95

Tested by

no test coverage detected