(section: string, key: string, isResourceScoped = true)
| 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 | |
| 269 | export class ResourceConfig { |
no test coverage detected