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

Method getAppliedConfig

src/extension/config.ts:261–266  ·  view source on GitHub ↗
(section: string, key: string, isResourceScoped = true)

Source from the content-addressed store, hash-verified

259 private readonly dartConfig = workspace.getConfiguration("", this.dummyDartFile).get("[dart]") as any;
260
261 public getAppliedConfig<T>(section: string, key: string, isResourceScoped = true): T | undefined {
262 const dartValue = this.dartConfig ? this.dartConfig[`${section}.${key}`] : undefined;
263 return dartValue !== undefined && dartValue !== null
264 ? dartValue as T
265 : workspace.getConfiguration(section, isResourceScoped ? this.dummyDartFile : undefined).get(key);
266 }
267}
268
269export class ResourceConfig {

Callers 1

getFormatterSettingMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected