( scope: PluginScope, )
| 102 | * @throws Error if scope is 'managed' (cannot install plugins to managed scope) |
| 103 | */ |
| 104 | export function scopeToSettingSource( |
| 105 | scope: PluginScope, |
| 106 | ): EditableSettingSource { |
| 107 | if (scope === 'managed') { |
| 108 | throw new Error('Cannot install plugins to managed scope') |
| 109 | } |
| 110 | return SCOPE_TO_EDITABLE_SOURCE[scope] |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * Convert an editable setting source to its corresponding plugin scope. |
no outgoing calls
no test coverage detected