( name: string, marketplace: string | undefined, managedNames: Set<string> | null, )
| 70 | | 'default-bundle' |
| 71 | |
| 72 | export function getTelemetryPluginScope( |
| 73 | name: string, |
| 74 | marketplace: string | undefined, |
| 75 | managedNames: Set<string> | null, |
| 76 | ): TelemetryPluginScope { |
| 77 | if (marketplace === BUILTIN_MARKETPLACE_NAME) return 'default-bundle' |
| 78 | if (isOfficialMarketplaceName(marketplace)) return 'official' |
| 79 | if (managedNames?.has(name)) return 'org' |
| 80 | return 'user-local' |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * How a plugin arrived in the session. Splits self-selected from org-pushed |
no test coverage detected