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

Method getConfig

src/extension/config.ts:278–280  ·  view source on GitHub ↗
(key: string, defaultValue: T)

Source from the content-addressed store, hash-verified

276 }
277
278 private getConfig<T>(key: string, defaultValue: T): NullAsUndefined<T> {
279 return nullToUndefined(this.config.get<T>(key, defaultValue));
280 }
281
282 get analysisExcludedFolders(): string[] { return this.getConfig<string[]>("analysisExcludedFolders", []); }
283 get analyzerInstrumentationLogFile(): undefined | string { return createFolderForFile(insertWorkspaceName(resolvePaths(this.getConfig<null | string>("analyzerInstrumentationLogFile", null)))); }

Callers 15

analyzerLogFileMethod · 0.95
analyzerPathMethod · 0.95
cliAdditionalArgsMethod · 0.95
completeFunctionCallsMethod · 0.95
customDartDapPathMethod · 0.95
customDevToolsMethod · 0.95
customFlutterDapPathMethod · 0.95
daemonPortMethod · 0.95
dapLogFileMethod · 0.95
devToolsLogFileMethod · 0.95

Calls 2

nullToUndefinedFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected