* Initialize the MDM service by loading configuration
()
| 30 | * Initialize the MDM service by loading configuration |
| 31 | */ |
| 32 | public async initialize(): Promise<void> { |
| 33 | try { |
| 34 | this.mdmConfig = await this.loadMdmConfig() |
| 35 | |
| 36 | if (this.mdmConfig) { |
| 37 | this.log(`[MDM] Loaded MDM configuration: ${JSON.stringify(this.mdmConfig)}`) |
| 38 | } |
| 39 | } catch (error) { |
| 40 | this.log(`[MDM] Error loading MDM configuration: ${error instanceof Error ? error.message : String(error)}`) |
| 41 | // Don't throw - extension should work without MDM config. |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Check if cloud authentication is required by MDM policy |
nothing calls this directly
no test coverage detected