( settingSource: EditableSettingSource, )
| 273 | * closure and the settings write would clobber the constraint with `true`. |
| 274 | */ |
| 275 | export function getEnabledPluginIdsForScope( |
| 276 | settingSource: EditableSettingSource, |
| 277 | ): Set<PluginId> { |
| 278 | return new Set( |
| 279 | Object.entries(getSettingsForSource(settingSource)?.enabledPlugins ?? {}) |
| 280 | .filter(([, v]) => v === true || Array.isArray(v)) |
| 281 | .map(([k]) => k), |
| 282 | ) |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * Format the "(+ N dependencies)" suffix for install success messages. |
no test coverage detected