Function
getInheritedOption
(options: any, key: string)
Source from the content-addressed store, hash-verified
| 48 | * first instance of the provided key. |
| 49 | */ |
| 50 | export function getInheritedOption(options: any, key: string): any { |
| 51 | let target = options; |
| 52 | while (target) { |
| 53 | if (target[key] !== undefined) { |
| 54 | return target[key]; |
| 55 | } |
| 56 | target = target.parent; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Sets the VSCode environment variables to be used by the CLI when called by VSCode |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…