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

Method openSettingsFile

src/extension/sdk/utils.ts:621–628  ·  view source on GitHub ↗
(sdkConfigName: string, isWorkspaceSetting: boolean)

Source from the content-addressed store, hash-verified

619 }
620
621 private async openSettingsFile(sdkConfigName: string, isWorkspaceSetting: boolean) {
622 await commands.executeCommand(
623 isWorkspaceSetting ? "workbench.action.openWorkspaceSettingsFile" : "workbench.action.openSettingsJson",
624 {
625 revealSetting: { key: sdkConfigName },
626 }
627 );
628 }
629
630 private findDartSdk(folders: string[]): SdkSearchResults {
631 return this.searchPaths(folders, executableNames.dart, (p) => this.containsFile(p, dartVMPath) && this.containsFile(p, analyzerSnapshotPath));

Callers 2

warnIfBadConfigSdkMethod · 0.95

Calls 1

executeCommandMethod · 0.65

Tested by

no test coverage detected