(context: vscode.ExtensionContext)
| 25 | |
| 26 | // eslint-disable-next-line jsdoc/require-jsdoc |
| 27 | export async function activate(context: vscode.ExtensionContext) { |
| 28 | // set the global context for convenient |
| 29 | setExtensionContext(context); |
| 30 | |
| 31 | // register platform adapters |
| 32 | await registerAdapters(); |
| 33 | |
| 34 | // Ensure the router has been initialized |
| 35 | await router.initialize(browserUrlManager); |
| 36 | |
| 37 | // do follow-up works in parallel |
| 38 | await Promise.all([ |
| 39 | registerVSCodeProviders(), |
| 40 | registerEventListeners(), |
| 41 | registerGitHub1sCommands(), |
| 42 | registerCustomViews(), |
| 43 | updateSourceControlChanges(), |
| 44 | decorateStatusBar(), |
| 45 | ]); |
| 46 | |
| 47 | initialVSCodeState(); |
| 48 | } |
| 49 | |
| 50 | // initialize the VSCode's state according to the router url |
| 51 | const initialVSCodeState = async () => { |
nothing calls this directly
no test coverage detected